D3D12_SHADER_BUFFER_DESC structure (d3d12shader.h)

Describes a shader constant-buffer.

Syntax

typedef struct _D3D12_SHADER_BUFFER_DESC {
  LPCSTR           Name;
  D3D_CBUFFER_TYPE Type;
  UINT             Variables;
  UINT             Size;
  UINT             uFlags;
} D3D12_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

The size of the buffer, 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 ID3D12ShaderReflectionConstantBuffer::GetDesc.

Requirements

Requirement Value
Header d3d12shader.h

See also

Shader Structures