mirror of
https://github.com/fumiama/gozel.git
synced 2026-06-05 00:10:24 +08:00
54 lines
2.5 KiB
Go
54 lines
2.5 KiB
Go
// Code generated by cmd/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 gozel
|
|
|
|
import (
|
|
"unsafe"
|
|
)
|
|
|
|
// ZE_DEVICE_LUID_EXT_NAME Device Local Identifier (LUID) Extension Name
|
|
const ZE_DEVICE_LUID_EXT_NAME = "ZE_extension_device_luid"
|
|
|
|
// ZeDeviceLuidExtVersion (ze_device_luid_ext_version_t) Device Local Identifier (LUID) Extension Version(s)
|
|
type ZeDeviceLuidExtVersion uintptr
|
|
|
|
const (
|
|
ZE_DEVICE_LUID_EXT_VERSION_1_0 ZeDeviceLuidExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_LUID_EXT_VERSION_1_0 version 1.0
|
|
ZE_DEVICE_LUID_EXT_VERSION_CURRENT ZeDeviceLuidExtVersion = /* ZE_MAKE_VERSION( 1, 0 ) */ ((1 << 16) | (0 & 0x0000ffff)) // ZE_DEVICE_LUID_EXT_VERSION_CURRENT latest known version
|
|
ZE_DEVICE_LUID_EXT_VERSION_FORCE_UINT32 ZeDeviceLuidExtVersion = 0x7fffffff // ZE_DEVICE_LUID_EXT_VERSION_FORCE_UINT32 Value marking end of ZE_DEVICE_LUID_EXT_VERSION_* ENUMs
|
|
|
|
)
|
|
|
|
// ZE_MAX_DEVICE_LUID_SIZE_EXT Maximum device local identifier (LUID) size in bytes
|
|
const ZE_MAX_DEVICE_LUID_SIZE_EXT = 8
|
|
|
|
// ZeDeviceLuidExt (ze_device_luid_ext_t) Device local identifier (LUID)
|
|
type ZeDeviceLuidExt struct {
|
|
Id [ZE_MAX_DEVICE_LUID_SIZE_EXT]uint8 // Id [out] opaque data representing a device LUID
|
|
|
|
}
|
|
|
|
// ZeDeviceLuidExtProperties (ze_device_luid_ext_properties_t) Device LUID properties queried using ::zeDeviceGetProperties
|
|
// /
|
|
// / @details
|
|
// / - This structure may be returned from ::zeDeviceGetProperties, via the
|
|
// / `pNext` member of ::ze_device_properties_t.
|
|
type ZeDeviceLuidExtProperties 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).
|
|
Luid ZeDeviceLuidExt // Luid [out] locally unique identifier (LUID). The returned LUID can be cast to a LUID object and must be equal to the locally unique identifier of an IDXGIAdapter1 object that corresponds to the device.
|
|
Nodemask uint32 // Nodemask [out] node mask. The returned node mask must contain exactly one bit. If the device is running on an operating system that supports the Direct3D 12 API and the device corresponds to an individual device in a linked device adapter, the returned node mask identifies the Direct3D 12 node corresponding to the device. Otherwise, the returned node mask must be 1.
|
|
|
|
}
|