Skip to main content
Modifies the behavior of caches used internally by Direct3D or by the driver. ShaderCacheControl may be used only in developer mode.

Syntax

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.

Return value

Type: HRESULT

Remarks

Requirements

Header: d3d12_xs.h
Library: d3d12_xs.lib
Supported Platforms: XBOX Series consoles

See Also

Last modified on August 20, 2026