mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-12 04:20:28 +08:00
feat(gen): finish core/common
This commit is contained in:
@@ -13,6 +13,10 @@
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// ZE_MAKE_VERSION Generates generic 'oneAPI' API versions
|
||||
func ZE_MAKE_VERSION[T ~int| ~uint32 | ~uint64 | ~uintptr](_major T, _minor T) T {
|
||||
return (( _major << 16 )|( _minor & 0x0000ffff))
|
||||
@@ -373,3 +377,30 @@ type ZeUuid struct {
|
||||
|
||||
}
|
||||
|
||||
// ZeBaseCbParams (ze_base_cb_params_t) Base for all callback function parameter types
|
||||
type ZeBaseCbParams struct {
|
||||
Stype ZeStructureType // Stype [in] type of this structure
|
||||
Pnext unsafe.Pointer // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
|
||||
|
||||
}
|
||||
|
||||
// ZeBaseProperties (ze_base_properties_t) Base for all properties types
|
||||
type ZeBaseProperties struct {
|
||||
Stype ZeStructureType // Stype [in] type of this structure
|
||||
Pnext unsafe.Pointer // Pnext [in,out][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
|
||||
|
||||
}
|
||||
|
||||
// ZeBaseDesc (ze_base_desc_t) Base for all descriptor types
|
||||
type ZeBaseDesc struct {
|
||||
Stype ZeStructureType // Stype [in] type of this structure
|
||||
Pnext unsafe.Pointer // Pnext [in][optional] must be null or a pointer to an extension-specific structure (i.e. contains stype and pNext).
|
||||
|
||||
}
|
||||
|
||||
// ZeIpcEventCounterBasedHandle (ze_ipc_event_counter_based_handle_t) IPC handle to counter based event
|
||||
type ZeIpcEventCounterBasedHandle struct {
|
||||
Data [ZE_MAX_IPC_HANDLE_SIZE]byte // Data [out] Opaque data representing an IPC handle
|
||||
|
||||
}
|
||||
|
||||
|
||||
28
core/driver.go
Normal file
28
core/driver.go
Normal file
@@ -0,0 +1,28 @@
|
||||
// Code generated by gen. DO NOT EDIT.
|
||||
|
||||
/*
|
||||
*
|
||||
* Copyright (C) 2019-2025 Intel Corporation
|
||||
*
|
||||
* SPDX-License-Identifier: MIT
|
||||
*
|
||||
* @file ze_api.h
|
||||
* @version v1.15-r1.15.31
|
||||
*
|
||||
*/
|
||||
|
||||
package core
|
||||
|
||||
import (
|
||||
"unsafe"
|
||||
)
|
||||
|
||||
// ZeInitFlags (ze_init_flags_t) Supported initialization flags
|
||||
type ZeInitFlags uint32
|
||||
const (
|
||||
ZE_INIT_FLAG_GPU_ONLY ZeInitFlags = /* ZE_BIT(0) */(( 1 << 0 )) // ZE_INIT_FLAG_GPU_ONLY only initialize GPU drivers
|
||||
ZE_INIT_FLAG_VPU_ONLY ZeInitFlags = /* ZE_BIT(1) */(( 1 << 1 )) // ZE_INIT_FLAG_VPU_ONLY only initialize VPU drivers
|
||||
ZE_INIT_FLAG_FORCE_UINT32 ZeInitFlags = 0x7fffffff // ZE_INIT_FLAG_FORCE_UINT32 Value marking end of ZE_INIT_FLAG_* ENUMs
|
||||
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user