D3D12_SHADER_CACHE_CONTROL_FLAGS enumeration (d3d12.h)

Defines constants that specify shader cache control options.

Syntax

typedef enum D3D12_SHADER_CACHE_CONTROL_FLAGS {
  D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE = 0x1,
  D3D12_SHADER_CACHE_CONTROL_FLAG_ENABLE = 0x2,
  D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR = 0x4
} ;

Constants

 
D3D12_SHADER_CACHE_CONTROL_FLAG_DISABLE
Value: 0x1
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
Value: 0x2
Specfies that use of the cache should be resumed.
D3D12_SHADER_CACHE_CONTROL_FLAG_CLEAR
Value: 0x4
Specfies that any existing contents of the cache should be deleted.

Requirements

Requirement Value
Minimum supported client Windows 10 Build 20348
Minimum supported server Windows 10 Build 20348
Header d3d12.h

See also