Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

D3D11_SHADER_BUFFER_DESC structure (d3d11shader.h)

Describes a shader constant-buffer.

Syntax

typedef struct _D3D11_SHADER_BUFFER_DESC {
 LPCSTR Name;
 D3D_CBUFFER_TYPE Type;
 UINT Variables;
 UINT Size;
 UINT uFlags;
} D3D11_SHADER_BUFFER_DESC;

Members

Name

Type: LPCSTR

The name of the buffer.

Type

Type: D3D_CBUFFER_TYPE

A D3D_CBUFFER_TYPE-typed value that indicates the intended use of the constant data.

Variables

Type: UINT

The number of unique variables.

Size

Type: UINT

Buffer size (in bytes).

uFlags

Type: UINT

A combination of D3D_SHADER_CBUFFER_FLAGS-typed values that are combined by using a bitwise OR operation. The resulting value specifies properties for the shader constant-buffer.

Remarks

Constants are supplied to shaders in a shader-constant buffer. Get the description of a shader-constant-buffer by calling ID3D11ShaderReflectionConstantBuffer::GetDesc.

Requirements

Requirement Value
Header d3d11shader.h

See also

Shader Structures


Feedback

Was this page helpful?

Additional resources