ID3D11Device::CreateComputeShader Method
Create a compute shader.
Syntax
HRESULT CreateComputeShader(
const void *pShaderBytecode,
SIZE_T BytecodeLength,
ID3D11ClassLinkage *pClassLinkage,
ID3D11ComputeShader **ppComputeShader
);
Parameter
pShaderBytecode
Typ: const void*A pointer to a compiled shader.
BytecodeLength
Typ: SIZE_TSize of the compiled shader in pShaderBytecode.
pClassLinkage
Typ: ID3D11ClassLinkage*A pointer to a ID3D11ClassLinkage, which represents class linkage interface; the value can be NULL.
ppComputeShader
Typ: ID3D11ComputeShader**Address of a pointer to an ID3D11ComputeShader interface. If this is NULL, all other parameters will be validated; if validation passes, CreateComputeShader returns S_FALSE instead of S_OK.
Rückgabewert
Typ: HRESULT
This method returns E_OUTOFMEMORY if there is insufficient memory to create the compute shader. See Direct3D 11 Return Codes for other possible return values.
Hinweise
For an example, see How To: Create a Compute Shader and HDRToneMappingCS11 Sample.
Anforderungen
Header |
D3D11.h |
Bibliothek |
D3D11.lib |