struct render::POOLED_STORAGE_BUFFER_DESC

Structure used for describing a pooled storage buffer.

Public

Constructors

POOLED_STORAGE_BUFFER_DESC

POOLED_STORAGE_BUFFER_DESC()

Methods

staticCreateStandard

static POOLED_STORAGE_BUFFER_DESC CreateStandard(GpuBufferFormat format, u32 numElements, GpuBufferFlags flags = GpuBufferFlag::StoreOnGPU | GpuBufferFlag::AllowUnorderedAccessOnTheGPU)

Creates a descriptor for a storage buffer containing primitive data types.

format
Format of individual buffer entries.
numElements
Number of elements in the buffer.
flags
Flags that control the behaviour of the buffer.

staticCreateStructured

static POOLED_STORAGE_BUFFER_DESC CreateStructured(u32 elementSize, u32 numElements, GpuBufferFlags flags = GpuBufferFlag::StoreOnGPU | GpuBufferFlag::AllowUnorderedAccessOnTheGPU)

Creates a descriptor for a storage buffer containing structures.

elementSize
Size of a single structure in the buffer.
numElements
Number of elements in the buffer.
flags
Flags that control the behaviour of the buffer.

Private

Fields

type

format

flags

GpuBufferFlags flags

numElements

u32 numElements

elementSize

u32 elementSize