> ## 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_SHADER_CACHE_CONTROL_FLAGS (XBOX Series consoles)

> Defines constants that specify shader cache control options.

Defines constants that specify shader cache control options.

## Syntax

```cpp theme={null}
typedef enum D3D12_SHADER_CACHE_CONTROL_FLAGS
{
    D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 1,
    D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 2,
    D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 4
} D3D12_SHADER_CACHE_CONTROL_FLAGS
```

## Constants

| Constant                                     | Description                                                                                                                                                                                                    |
| -------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D3D12\_SHADER\_CACHE\_CONTROL\_FLAG\_DISABLE | Specifies that the cache shouldn't be used to look up data, and shouldn't have new data stored in it. Attempts to use/create a cache while it's disabled result in **DXGI\_ERROR\_NOT\_CURRENTLY\_AVAILABLE**. |
| D3D12\_SHADER\_CACHE\_CONTROL\_FLAG\_ENABLE  | Specfies that use of the cache should be resumed.                                                                                                                                                              |
| D3D12\_SHADER\_CACHE\_CONTROL\_FLAG\_CLEAR   | Specfies that any existing contents of the cache should be deleted.                                                                                                                                            |

## Remarks

## Requirements

**Header:** d3d12\_xs.h\
**Library:** d3d12\_xs.lib\
**Supported Platforms**: XBOX Series consoles

## See Also

* [D3D12 shader cache APIs](https://microsoft.github.io/DirectX-Specs/d3d/ShaderCache.html)


## Related topics

- [ShaderCacheControl (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_shadercachecontrol_public.md)
- [D3D12_SHADER_CACHE_KIND_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_shader_cache_kind_flags_public.md)
- [D3D12_SHADER_CACHE_FLAGS](/reference/graphics/d3d12/enums/d3d12_shader_cache_flags_public.md)
- [D3D12_SHADER_CACHE_SUPPORT_FLAGS](/reference/graphics/d3d12/enums/d3d12_shader_cache_support_flags_public.md)
- [D3D12_RAYTRACING_GEOMETRY_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_raytracing_geometry_flags_public.md)
