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

# D3D12_ROOT_CONSTANTS

> 루트 서명에 인라인된 상수를 설명하며, 셰이더에서는 하나의 상수 버퍼로 나타납니다.

루트 서명에 인라인된 상수를 설명하며, 셰이더에서는 하나의 상수 버퍼로 나타납니다.

## 구문

```cpp theme={null}
typedef struct D3D12_ROOT_CONSTANTS
{
    UINT ShaderRegister;
    UINT RegisterSpace;
    UINT Num32BitValues;
} D3D12_ROOT_CONSTANTS
```

### 멤버

*ShaderRegister*\
형식: UINT

셰이더 레지스터입니다.

*RegisterSpace*\
형식: UINT

레지스터 공간입니다.

*Num32BitValues*\
형식: UINT

단일 셰이더 슬롯을 차지하는 상수의 수입니다(이 상수는 단일 상수 버퍼처럼 나타납니다).
모든 상수는 단일 루트 서명 바인딩 슬롯을 차지합니다.

## 설명

셰이더 레지스터 및 공간에 대한 자세한 내용은 [HLSL의 리소스 바인딩](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/resource-binding-in-hlsl)을 참조하세요.

**D3D12\_ROOT\_CONSTANTS**는 [D3D12\_ROOT\_PARAMETER](/reference/graphics/d3d12/structs/d3d12_root_parameter_public)의 **Constants** 멤버의 데이터 형식입니다.
**D3D12\_ROOT\_PARAMETER**의 **SlotType** 필드를 [D3D12\_ROOT\_PARAMETER\_TYPE](/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public)의 D3D12\_ROOT\_PARAMETER\_TYPE\_32BIT\_CONSTANTS 멤버로 설정할 때 **D3D12\_ROOT\_CONSTANTS**를 사용합니다.

## 요구 사항

**헤더:** d3d12\_xs.h 또는 d3d12\_x.h\
**라이브러리:** d3d12\_xs.lib 또는 d3d12\_x.lib\
**지원 플랫폼**: XBOX Series 콘솔 및 XBOX One 제품군

## 함께 보기

[CD3DX12\_ROOT\_CONSTANTS](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/cd3dx12-root-constants)

[핵심 구조체](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-structures)

[루트 서명 만들기](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/creating-a-root-signature)

[루트 서명에서 직접 상수 사용](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/using-constants-directly-in-the-root-signature)


## Related topics

- [D3D12_ROOT_PARAMETER](/ko/reference/graphics/d3d12/structs/d3d12_root_parameter_public.md)
- [D3D12_ROOT_PARAMETER1](/ko/reference/graphics/d3d12/structs/d3d12_root_parameter1_public.md)
- [D3D12_ROOT_PARAMETER_TYPE](/ko/reference/graphics/d3d12/enums/d3d12_root_parameter_type_public.md)
- [D3D12_ROOT_DESCRIPTOR](/ko/reference/graphics/d3d12/structs/d3d12_root_descriptor_public.md)
- [D3D12_ROOT_DESCRIPTOR1](/ko/reference/graphics/d3d12/structs/d3d12_root_descriptor1_public.md)
