D3D12_SHADER_CACHE_SUPPORT_FLAGS enumeration (d3d12.h)

Describes the level of support for shader caching in the current graphics driver.

Syntax

typedef enum D3D12_SHADER_CACHE_SUPPORT_FLAGS {
  D3D12_SHADER_CACHE_SUPPORT_NONE = 0,
  D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO = 0x1,
  D3D12_SHADER_CACHE_SUPPORT_LIBRARY = 0x2,
  D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE = 0x4,
  D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE = 0x8,
  D3D12_SHADER_CACHE_SUPPORT_DRIVER_MANAGED_CACHE,
  D3D12_SHADER_CACHE_SUPPORT_SHADER_CONTROL_CLEAR,
  D3D12_SHADER_CACHE_SUPPORT_SHADER_SESSION_DELETE
} ;

Constants

 
D3D12_SHADER_CACHE_SUPPORT_NONE
Value: 0
Indicates that the driver does not support shader caching.
D3D12_SHADER_CACHE_SUPPORT_SINGLE_PSO
Value: 0x1
Indicates that the driver supports the CachedPSO member of the D3D12_GRAPHICS_PIPELINE_STATE_DESC and D3D12_COMPUTE_PIPELINE_STATE_DESC structures. This is always supported.
D3D12_SHADER_CACHE_SUPPORT_LIBRARY
Value: 0x2
Indicates that the driver supports the ID3D12PipelineLibrary interface, which provides application-controlled PSO grouping and caching. This is supported by drivers targetting the Windows 10 Anniversary Update.
D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_INPROC_CACHE
Value: 0x4
Indicates that the driver supports an OS-managed shader cache that stores compiled shaders in memory during the current run of the application.
D3D12_SHADER_CACHE_SUPPORT_AUTOMATIC_DISK_CACHE
Value: 0x8
Indicates that the driver supports an OS-managed shader cache that stores compiled shaders on disk to accelerate future runs of the application.

Remarks

This enum is used by the D3D_FEATURE_DATA_SHADER_CACHE structure.

Requirements

Requirement Value
Header d3d12.h

See also

Core Structures