mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-12 20:40:32 +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
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user