> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# GetAdapterLuid

> 获取当前设备（适配器）的本地唯一标识符。

获取当前设备（适配器）的本地唯一标识符。

## 语法

```cpp theme={null}
LUID GetAdapterLuid(
)
```

### 参数

### 返回值

类型：LUID

适配器的本地唯一标识符。

## 备注

此方法返回适配器的唯一标识符，该标识符特定于适配器硬件。
应用程序可以使用此标识符定义跨各种 API（Direct3D 12、DXGI）的强健映射。

本地唯一标识符 (LUID) 是一个 64 位值，仅保证在生成它的系统上唯一。
本地唯一标识符 (LUID) 的唯一性仅保证在系统重启之前。

## 要求

**头文件：** d3d12\_xs.h 或 d3d12\_x.h\
**库：** d3d12\_xs.lib 或 d3d12\_x.lib\
**支持的平台**：XBOX Series 主机和 XBOX One 系列

## 另请参阅

[ID3D12Device](/reference/graphics/d3d12_x/interfaces/id3d12device/id3d12device)


## Related topics

- [DXGI_ADAPTER_DESC2 (XBOX Series 主机)](/zh-CN/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [安装 GDK 工具链](/zh-CN/home/setup-install/download-install.md)
- [D3D12_CACHED_PIPELINE_STATE](/zh-CN/reference/graphics/d3d12/structs/d3d12_cached_pipeline_state_public.md)
- [D3D12_QUERY_HEAP_DESC](/zh-CN/reference/graphics/d3d12/structs/d3d12_query_heap_desc_public.md)
- [D3D12_FENCE_FLAGS](/zh-CN/reference/graphics/d3d12/enums/d3d12_fence_flags_public.md)
