struct GpuBufferViewInformation

Information that controls how is the buffer viewed when bound to a GPU pipeline.

Public

Constructors

GpuBufferViewInformation

GpuBufferViewInformation() noexcept = default

GpuBufferViewInformation

GpuBufferViewInformation(u32 offset, u32 range)

GpuBufferViewInformation

GpuBufferViewInformation(GpuBufferFormat format)

Fields

Offset

u32 Offset

Offset from which to start reading the buffer.

Not relevant for simple storage buffers.

Range

u32 Range

Range of the buffer which to bind.

In bytes. Not relevant for simple storage buffers.

Format

Format to interpret the buffer contents as.

If not specified, default buffer format will be used. Only relevant for simple storage buffers.