ID3DInclude::Close Method

A user-implemented method for closing a shader #include file.

Syntax

public:
HRESULT Close(
         LPCVOID pData
)  

Parameters

pData
Type: LPCVOID 

Pointer to the buffer that contains the include directives. This is the pointer that was returned by the corresponding ID3DInclude::Open call.

Return value

Type: 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:

Remarks

If ID3DInclude::Open was successful, Close is guaranteed to be called before the API using the ID3DInclude interface returns.

Requirements

Header: Declared in d3d11_x.h (d3dcommon.h on other Windows platforms).

Library: Use d3d11_x.lib (d3d11.lib on other Windows platforms).

See also

ID3DInclude

ID3DInclude Members