ID3D11ShaderReflection::GetConstantBufferByName Method

Get a constant buffer by name.

Syntax

ID3D11ShaderReflectionConstantBuffer* GetConstantBufferByName(
  [in]  LPCSTR Name
);

Parameter

  • Name [in]
    Typ: LPCSTR

    The constant-buffer name.

Rückgabewert

Typ: ID3D11ShaderReflectionConstantBuffer

A pointer to a constant buffer (see ID3D11ShaderReflectionConstantBuffer Interface).

Hinweise

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.

This method's interface is hosted in the out-of-box DLL D3DCompiler_xx.dll.

Anforderungen

Header

D3D11Shader.h

Bibliothek

D3DCompiler.lib or D3DCompiler_xx.dll

Siehe auch

ID3D11ShaderReflection Interface