Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Modifies the behavior of caches used internally by Direct3D or by the driver. ShaderCacheControl may be used only in developer mode.
Syntax
HRESULT ShaderCacheControl(
D3D12_SHADER_CACHE_KIND_FLAGS Kinds,
D3D12_SHADER_CACHE_CONTROL_FLAGS Control
);
Parameters
Kinds
Type: D3D12_SHADER_CACHE_KIND_FLAGS
The caches to modify. Any one of these caches may or may not exist.
Control
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.
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows 10 Build 20348 |
Minimum supported server | Windows 10 Build 20348 |
Header | d3d12.h |
Library | d3d12.lib |
DLL | d3d12.dll |