Skip to main content
Creates an object that grants access to a shader cache, potentially opening an existing cache or creating a new one.

Syntax

Parameters

pDesc
Type: const D3D12_SHADER_CACHE_SESSION_DESC *
A D3D12_SHADER_CACHE_SESSION_DESC structure describing the shader cache session to create. riid
Type: const IID &
The globally unique identifier (GUID) for the shader cache session interface. ppvSession
Type: void **
A pointer to a memory block that receives a pointer to the ID3D12ShaderCacheSession interface for the shader cache session.

Return value

Type: HRESULT If the function succeeds, it returns S_OK. Otherwise, it returns an HRESULT error code.

Remarks

Requirements

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

See Also

Last modified on August 20, 2026