Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

ID3D11FunctionReflection::GetConstantBufferByName method

Gets a constant buffer by name for a function.

Syntax


ID3D11ShaderReflectionConstantBuffer* GetConstantBufferByName(
  [in] LPCSTR Name
);

Parameters

Name [in]

Type: LPCSTR

The constant-buffer name.

Return value

Type: ID3D11ShaderReflectionConstantBuffer*

A pointer to a ID3D11ShaderReflectionConstantBuffer interface that represents the constant buffer.

Remarks

A constant buffer supplies either scalar constants or texture constants to a shader. A shader can use one or more constant buffers. For best performance, separate constants into buffers based on the frequency they are updated.

Requirements

Header

D3D11Shader.h

Library

D3DCompiler.lib

DLL

D3DCompiler_47.dll

See also

ID3D11FunctionReflection

 

 

Show:
© 2017 Microsoft