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

# D3D_SHADER_MODEL

> Specifies a shader model.

Specifies a shader model.

## Syntax

```cpp theme={null}
typedef enum D3D_SHADER_MODEL
{
    D3D_SHADER_MODEL_5_1 = 81,
    D3D_SHADER_MODEL_6_0 = 96,
    D3D_SHADER_MODEL_6_1 = 97,
    D3D_SHADER_MODEL_6_2 = 98,
    D3D_SHADER_MODEL_6_3 = 99,
    D3D_SHADER_MODEL_6_4 = 100,
    D3D_SHADER_MODEL_6_5 = 101,
    D3D_SHADER_MODEL_6_6 = 102,
    D3D_SHADER_MODEL_6_7 = 103
} D3D_SHADER_MODEL
```

## Constants

| Constant                 | Description                                                                                                                                                                                                                            |
| ------------------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D3D\_SHADER\_MODEL\_5\_1 | Indicates shader model 5.1.                                                                                                                                                                                                            |
| D3D\_SHADER\_MODEL\_6\_0 | Indicates shader model 6.0. Compiling a shader model 6.0 shader requires using the DXC compiler (see [DirectX Shader Compiler](https://github.com/Microsoft/DirectXShaderCompiler)), and is not supported by legacy **FXC**.           |
| D3D\_SHADER\_MODEL\_6\_1 | Indicates shader model 6.1.                                                                                                                                                                                                            |
| D3D\_SHADER\_MODEL\_6\_2 |                                                                                                                                                                                                                                        |
| D3D\_SHADER\_MODEL\_6\_3 |                                                                                                                                                                                                                                        |
| D3D\_SHADER\_MODEL\_6\_4 | Shader model 6.4 support was added in Windows 10, Version 1903, and is required for DirectX Raytracing (DXR).                                                                                                                          |
| D3D\_SHADER\_MODEL\_6\_5 | Shader model 6.5 support was added in Windows 10, Version 2004, and is required for Direct Machine Learning.                                                                                                                           |
| D3D\_SHADER\_MODEL\_6\_6 | Shader model 6.6 support was added in Windows 11 and the DirectX 12 Agility SDK.                                                                                                                                                       |
| D3D\_SHADER\_MODEL\_6\_7 | Shader model 6.7 support was added in the DirectX 12 Agility SDK v1.6. See [Agility SDK 1.606.3: Shader Model 6.7 is now publicly available!](https://devblogs.microsoft.com/directx/shader-model-6-7/) on the DirectX developer blog. |

## Remarks

This enum is used by the [D3D12\_FEATURE\_DATA\_SHADER\_MODEL](/reference/graphics/d3d12/structs/d3d12_feature_data_shader_model_public) structure.

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

[Core enumerations](https://learn.microsoft.com/en-us/windows/desktop/direct3d12/direct3d-12-enumerations)


## Related topics

- [D3D12_FEATURE_DATA_SHADER_MODEL](/reference/graphics/d3d12/structs/d3d12_feature_data_shader_model_public.md)
- [D3D_SHADER_INPUT_TYPE (XBOX Series consoles)](/reference/graphics/d3d12_xs/enums/d3d_shader_input_type.md)
- [D3D_FEATURE_LEVEL (XBOX Series consoles)](/reference/graphics/d3d12_xs/enums/d3d_feature_level.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS4](/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options4_public.md)
- [D3D12_FEATURE_DATA_D3D12_OPTIONS1](/reference/graphics/d3d12/structs/d3d12_feature_data_d3d12_options1_public.md)
