Nuta
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować się zalogować lub zmienić katalog.
Dostęp do tej strony wymaga autoryzacji. Możesz spróbować zmienić katalogi.
A user-implemented method for closing a shader #include file.
Syntax
HRESULT Close(
[in] LPCVOID pData
);
Parameters
-
pData [in]
-
Type: LPCVOID
Pointer to the returned buffer that contains the include directives. This is the pointer that was returned by the corresponding ID3DXInclude::Open call.
Return value
Type: HRESULT
The user-implemented method should return S_OK. If the callback fails when reading the #include file, the API that caused the callback to be called will fail. This is one of the following:
- The HLSL shader will fail one of the D3DXCompileShader*** functions.
- The assembly shader will fail one of the D3DXAssembleShader*** functions.
- The effect will fail one of the D3DXCreateEffect*** or D3DXCreateEffectCompiler*** functions.
Remarks
If ID3DXInclude::Open was successful, ID3DXInclude::Close is guaranteed to be called before the API using this interface returns.
Requirements
| Requirement | Value |
|---|---|
| Header |
|
| Library |
|
See also