D3D11_SHADER_DESC structure (d3d11.h)
Describes a shader.
Syntax
typedef struct D3D11_SHADER_DESC {
UINT Version;
UINT Creator;
UINT uavCount;
UINT constantBufferCount;
UINT featureLevel;
UINT cfType;
UINT numInputSignatureEntries;
UINT numOutputSignatureEntries;
ID3D10Blob *pInputSignatureBlob;
ID3D10Blob *pOutputSignatureBlob;
ID3D10Blob *pPatchConstantSignatureBlob;
ID3D10Blob *pHsDomainShader;
ID3D10Blob *pDsDomainShader;
ID3D10Blob *pGsGeometryShader;
} D3D11_SHADER_DESC;
Members
Version
- The shader model version. For example, if the shader model is 4.0, this member is 40.
Creator
- A four-character string that identifies the tool that created the shader.
uavCount
- The number of unordered-access views (UAVs) in the shader.
constantBufferCount
- The number of constant buffers in the shader.
featureLevel
- The shader model feature level.
cfType
- The type of shader.
numInputSignatureEntries
- The number of entries in the input signature.
numOutputSignatureEntries
- The number of entries in the output signature.
pInputSignatureBlob
-
A pointer to an
ID3D10Blob
interface that contains the shader's input signature. pOutputSignatureBlob
-
A pointer to an
ID3D10Blob
interface that contains the shader's output signature. pPatchConstantSignatureBlob
-
A pointer to an
ID3D10Blob
interface that contains the shader's patch-constant signature. pHsDomainShader
-
A pointer to an
ID3D10Blob
interface that contains the hull shader's domain shader. pDsDomainShader
-
A pointer to an
ID3D10Blob
interface that contains the domain shader. pGsGeometryShader
-
A pointer to an
ID3D10Blob
interface that contains the geometry shader.
Remarks
This structure is used by the ID3D11ShaderReflection::GetDesc
method to retrieve a description of a shader.
For example, you can use this structure to get information about the shader's version, creator tool, and the number of constant buffers and input/output signature entries.
Requirements
DirectX SDK | |
---|---|
Minimum supported client | Windows 7 [desktop apps only] |
Minimum supported server | Windows Server 2008 R2 [desktop apps only] |
Header | d3d11.h (include D3d11.h) |
Library | D3d11.lib |
DLL | D3d11.dll, DXGI.dll |