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

# ShaderCacheControl (XBOX Series consoles)

> Modifies the behavior of caches used internally by Direct3D or by the driver.

Modifies the behavior of caches used internally by Direct3D or by the driver. **ShaderCacheControl** may be used only in developer mode.

## Syntax

```cpp theme={null}
HRESULT ShaderCacheControl(
    D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
    D3D12_SHADER_CACHE_CONTROL_FLAGS Control
)
```

### Parameters

*Kinds*<br />Type: D3D12\_SHADER\_CACHE\_KIND\_FLAGS

The caches to modify. Any one of these caches may or may not exist.

*Control*<br />Type: D3D12\_SHADER\_CACHE\_CONTROL\_FLAGS

The way in which to modify the caches. You can't pass both **DISABLE** and **ENABLE** at the same time; and you must pass at least one flag.

### Return value

Type: HRESULT

## Remarks

## Requirements

**Header:** d3d12\_xs.h<br />**Library:** d3d12\_xs.lib<br />**Supported Platforms**: XBOX Series consoles

## See Also

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


## Related topics

- [D3D12_SHADER_CACHE_CONTROL_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_shader_cache_control_flags_public.md)
- [CreateShaderCacheSession (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12device9/methods/id3d12device9_createshadercachesession_public.md)
- [D3D12_SHADER_CACHE_KIND_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_shader_cache_kind_flags_public.md)
- [GetShaderIdentifier (XBOX Series consoles)](/reference/graphics/d3d12/interfaces/id3d12stateobjectproperties/methods/id3d12stateobjectproperties_getshaderidentifier_public.md)
- [D3D_SHADER_INPUT_TYPE (XBOX Series consoles)](/reference/graphics/d3d12_xs/enums/d3d_shader_input_type.md)
