D3D12_SHADER_CACHE_MODE enumeration (d3d12.h)

Defines constants that specify a shader cache's mode.

Syntax

typedef enum D3D12_SHADER_CACHE_MODE {
  D3D12_SHADER_CACHE_MODE_MEMORY = 0,
  D3D12_SHADER_CACHE_MODE_DISK
} ;

Constants

 
D3D12_SHADER_CACHE_MODE_MEMORY
Value: 0
Specifies that there's no backing file for this cache. All stores are discarded when the session object is destroyed.
D3D12_SHADER_CACHE_MODE_DISK
Specifies that the session is backed by files on disk that persist from run to run unless cleared. For ways to clear a disk cache, see ID3D12ShaderCacheSession::SetDeleteOnDestroy.

Requirements

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

See also