Remarks
A disk cache can be cleared in one of the following ways.- Explicitly, by calling SetDeleteOnDestroy on the session object, and then releasing the session.
- Explicitly, in developer mode, by calling ID3D12Device9::ShaderCacheControl with D3D12_SHADER_CACHE_KIND_FLAG_APPLICATION_MANAGED.
- Implicitly, by creating a session object with a version that doesn’t match the version used to create it.
- Externally, by the disk cleanup utility enumerating it and clearing it. This won’t happen for caches created with the D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR flag.
- Manually, by deleting the files (
*.idx,*.val, and*.lock) stored on disk for D3D12_SHADER_CACHE_FLAG_USE_WORKING_DIR caches. Your application shouldn’t attempt to do this for caches stored outside of the working directory.
Requirements
Header: d3d12_xs.h or d3d12_x.hLibrary: d3d12_xs.lib or d3d12_x.lib
Supported Platforms: XBOX Series consoles and XBOX One family
