> ## 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

> Gets a locally unique identifier for the current device (adapter).

Gets a locally unique identifier for the current device (adapter).

## Syntax

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

### Parameters

### Return value

Type: LUID

The locally unique identifier for the adapter.

## Remarks

This method returns a unique identifier for the adapter that is specific to the adapter hardware.
Applications can use this identifier to define robust mappings across various APIs (Direct3D 12, DXGI).

A locally unique identifier (LUID) is a 64-bit value that is guaranteed to be unique only on the system on which it was generated.
The uniqueness of a locally unique identifier (LUID) is guaranteed only until the system is restarted.

## Requirements

**Header:** d3d12\_xs.h or d3d12\_x.h\
**Library:** d3d12\_xs.lib or d3d12\_x.lib\
**Supported Platforms**: XBOX Series consoles and XBOX One family

## See Also

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


## Related topics

- [DXGI_ADAPTER_DESC2 (XBOX Series consoles)](/reference/graphics/d3d12_xs/structs/dxgi_adapter_desc2.md)
- [GetCopyableFootprints](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getcopyablefootprints_public.md)
- [GetResourceAllocationInfo](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getresourceallocationinfo_public.md)
- [GetNodeCount](/reference/graphics/d3d12/interfaces/id3d12device/methods/id3d12device_getnodecount_public.md)
- [D3D12_HEAP_TYPE](/reference/graphics/d3d12/enums/d3d12_heap_type_public.md)
