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

> Defines constants that specify shader cache flags.

Defines constants that specify shader cache flags.

## Syntax

```cpp theme={null}
typedef enum D3D12_SHADER_CACHE_FLAGS
{
    D3D12_SHADER_CACHE_FLAG_NONE = 0,
    D3D12_SHADER_CACHE_FLAG_DRIVER_VERSIONED = 1,
    D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR = 2
} D3D12_SHADER_CACHE_FLAGS
```

## Constants

| Constant                                      | Description                                                                                                                                                                                                                                                                                                                                                                                                      |
| --------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| D3D12\_SHADER\_CACHE\_FLAG\_NONE              | Specifies no flag.                                                                                                                                                                                                                                                                                                                                                                                               |
| D3D12\_SHADER\_CACHE\_FLAG\_DRIVER\_VERSIONED | Specifies that the cache is implicitly versioned by the driver being used. For multi-GPU systems, a cache created this way is stored side by side for each adapter on which the application runs. The *Version* field in the [D3D12\_SHADER\_CACHE\_SESSION\_DESC](/reference/graphics/d3d12/structs/d3d12_shader_cache_session_desc_public) struct (the cache description) is used as an additional constraint. |
| D3D12\_SHADER\_CACHE\_FLAG\_USE\_WORKING\_DIR | By default, caches are stored in temporary storage, and can be cleared by disk cleanup. This constant (not valid for UWP apps) specifies that the cache is instead stored in the current working directory.                                                                                                                                                                                                      |

## Remarks

## Requirements

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

## See Also

* [D3D12\_SHADER\_CACHE\_SESSION\_DESC](/reference/graphics/d3d12/structs/d3d12_shader_cache_session_desc_public)
* [D3D12 shader cache APIs](https://microsoft.github.io/DirectX-Specs/d3d/ShaderCache.html)


## Related topics

- [D3D12_SHADER_CACHE_SESSION_DESC](/reference/graphics/d3d12/structs/d3d12_shader_cache_session_desc_public.md)
- [D3D12_SHADER_CACHE_SUPPORT_FLAGS](/reference/graphics/d3d12/enums/d3d12_shader_cache_support_flags_public.md)
- [D3D12_SHADER_CACHE_KIND_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_shader_cache_kind_flags_public.md)
- [D3D12_SHADER_CACHE_CONTROL_FLAGS (XBOX Series consoles)](/reference/graphics/d3d12/enums/d3d12_shader_cache_control_flags_public.md)
- [D3D12_FEATURE_DATA_SHADER_CACHE](/reference/graphics/d3d12/structs/d3d12_feature_data_shader_cache_public.md)
