Skip to content

Latest commit

 

History

History
73 lines (59 loc) · 3.01 KB

nf-d3d12-id3d12stateobjectproperties-getshaderidentifier.md

File metadata and controls

73 lines (59 loc) · 3.01 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3d12.ID3D12StateObjectProperties.GetShaderIdentifier
ID3D12StateObjectProperties::GetShaderIdentifier (d3d12.h)
Retrieves the unique identifier for a shader that can be used in a shader record.
GetShaderIdentifier
GetShaderIdentifier method
GetShaderIdentifier method
ID3D12StateObjectProperties interface
ID3D12StateObjectProperties interface
GetShaderIdentifier method
ID3D12StateObjectProperties.GetShaderIdentifier
ID3D12StateObjectProperties::GetShaderIdentifier
d3d12/ID3D12StateObjectProperties::GetShaderIdentifier
direct3d12.id3d12stateobjectproperties_getshaderidentifier
direct3d12\id3d12stateobjectproperties_getshaderidentifier.htm
direct3d12
E93279A1-4238-49C7-8525-EE01999454D9
12/05/2018
GetShaderIdentifier, GetShaderIdentifier method, GetShaderIdentifier method,ID3D12StateObjectProperties interface, ID3D12StateObjectProperties interface,GetShaderIdentifier method, ID3D12StateObjectProperties.GetShaderIdentifier, ID3D12StateObjectProperties::GetShaderIdentifier, d3d12/ID3D12StateObjectProperties::GetShaderIdentifier, direct3d12.id3d12stateobjectproperties_getshaderidentifier
d3d12.h
Windows
D3D12.lib
D3D12.dll
Windows
19H1
ID3D12StateObjectProperties::GetShaderIdentifier
d3d12/ID3D12StateObjectProperties::GetShaderIdentifier
c++
APIRef
kbSyntax
COM
D3D12.dll
ID3D12StateObjectProperties.GetShaderIdentifier

ID3D12StateObjectProperties::GetShaderIdentifier

-description

Retrieves the unique identifier for a shader that can be used in a shader record.

-parameters

-param pExportName

Entrypoint in the state object for which to retrieve an identifier.

-returns

A pointer to the shader identifier.

The data referenced by this pointer is valid as long as the state object it came from is valid. The size of the data returned is D3D12_SHADER_IDENTIFIER_SIZE_IN_BYTES. Applications should copy and cache this data to avoid the cost of searching for it in the state object if it will need to be retrieved many times. The identifier is used in shader records within shader tables in GPU memory, which the app must populate.

The data itself globally identifies the shader, so even if the shader appears in a different state object with same associations, like any root signatures, it will have the same identifier.

If the shader isn’t fully resolved in the state object, the return value is nullptr.

-see-also

ID3D12StateObjectProperties