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.
Creates an object that grants access to a shader cache, potentially opening an existing cache or creating a new one.
Syntax
HRESULT CreateShaderCacheSession(
const D3D12_SHADER_CACHE_SESSION_DESC *pDesc,
REFIID riid,
void **ppvSession
);
Parameters
pDesc
Type: _In_ const D3D12_SHADER_CACHE_SESSION_DESC*
A D3D12_SHADER_CACHE_SESSION_DESC structure describing the shader cache session to create.
riid
Type: REFIID
The globally unique identifier (GUID) for the shader cache session interface.
ppvSession
Type: _COM_Outptr_opt_ 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.
Return value | Description |
---|---|
DXGI_ERROR_ALREADY_EXISTS | You tried to create a cache with an existing identifier. See D3D12_SHADER_CACHE_SESSION_DESC::Identifier. |
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 |