ID3DInclude::Close Method
A user-implemented method for closing a shader #include file.
Syntax
HRESULT Close(
[in] LPCVOID pData
);
Parameter
pData [in]
Typ: LPCVOIDPointer to the buffer that contains the include directives. This is the pointer that was returned by the corresponding ID3DInclude::Open call.
Rückgabewert
Typ: HRESULT
The user-implemented Close method should return S_OK. If Close fails when it closes the #include file, the application programming interface (API) that caused Close to be called fails. This failure can occur in one of the following situations:
- The high-level shader language (HLSL) shader fails one of the D3D10CompileShader*** functions.
- The effect fails one of the D3D10CreateEffect*** functions.
Hinweise
If ID3DInclude::Open was successful, Close is guaranteed to be called before the API using the ID3DInclude interface returns.
Anforderungen
Header |
D3DCommon.h |
Bibliothek |
D3dcompiler.lib or D3dcompiler_nn.dll |