D3D11_SHADER_BUFFER_DESC Structure

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
The name of the buffer.

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

Variables
The number of unique variables.

Size
Buffer size (in bytes).

uFlags
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

Header: Declared in d3d11shader_x.h (d3d11shader.h on other Windows platforms).

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