Skip to content

Latest commit

 

History

History
87 lines (67 loc) · 2.86 KB

nf-d3dcommon-id3dinclude-close.md

File metadata and controls

87 lines (67 loc) · 2.86 KB
UID title description helpviewer_keywords old-location tech.root ms.assetid ms.date ms.keywords req.header req.include-header req.target-type req.target-min-winverclnt req.target-min-winversvr req.kmdf-ver req.umdf-ver req.ddi-compliance req.unicode-ansi req.idl req.max-support req.namespace req.assembly req.type-library req.lib req.dll req.irql targetos req.typenames req.redist ms.custom f1_keywords dev_langs topic_type api_type api_location api_name
NF:d3dcommon.ID3DInclude.Close
ID3DInclude::Close (d3dcommon.h)
A user-implemented method for closing a shader
Close
Close method [Direct3D 11]
Close method [Direct3D 11]
ID3DInclude interface
ID3DInclude interface [Direct3D 11]
Close method
ID3DInclude.Close
ID3DInclude::Close
d3dcommon/ID3DInclude::Close
direct3d11.id3dinclude_close
direct3d11\id3dinclude_close.htm
direct3d11
d4513e15-dfe7-4919-a278-d386f25e65e5
12/05/2018
Close, Close method [Direct3D 11], Close method [Direct3D 11],ID3DInclude interface, ID3DInclude interface [Direct3D 11],Close method, ID3DInclude.Close, ID3DInclude::Close, d3dcommon/ID3DInclude::Close, direct3d11.id3dinclude_close
d3dcommon.h
Windows
D3DCompiler.lib
D3DCompiler_47.dll
Windows
19H1
ID3DInclude::Close
d3dcommon/ID3DInclude::Close
c++
APIRef
kbSyntax
COM
D3DCompiler_47.dll
ID3DInclude.Close

ID3DInclude::Close

-description

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

-parameters

-param 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.

-returns

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:

  • The high-level shader language (HLSL) shader fails one of the D3D10CompileShader*** functions.
  • The effect fails one of the D3D10CreateEffect*** functions.

-remarks

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

-see-also

ID3DInclude

ID3DInclude::Open