Skip to content

ludus::content::render_graph_format::StorageBuffer

Ludus Wiki · API overview · Browse API

Struct

Graph-owned, zero-initialized structured storage for one ray job. Contents persist across dispatches and reset with scene/camera/extent/generation replacement. Buffers are private to that job; no host upload, export or implicit ping-pong.

Declared in modules/content/render_graph_format/include/ludus/content/render_graph_format/plan.h

#include <ludus/content/render_graph_format/plan.h>
struct ludus::content::render_graph_format::StorageBuffer final

Fields

Slot

foundation::uint32 ludus::content::render_graph_format::StorageBuffer::Slot
Unique shader slot in [FIRST_STORAGE_SLOT, FIRST_STORAGE_SLOT + MAX_STORAGE_BUFFERS).

Related types: foundation::uint32

Declared in modules/content/render_graph_format/include/ludus/content/render_graph_format/plan.h

Stride

foundation::uint32 ludus::content::render_graph_format::StorageBuffer::Stride
Reflected element bytes, positive multiple of four, at most MAX_STORAGE_STRIDE.

Related types: foundation::uint32

Declared in modules/content/render_graph_format/include/ludus/content/render_graph_format/plan.h

Count

foundation::uint32 ludus::content::render_graph_format::StorageBuffer::Count
Fixed element count; zero means one element per resolved color-target pixel.

Related types: foundation::uint32

Declared in modules/content/render_graph_format/include/ludus/content/render_graph_format/plan.h

IsReadOnly

foundation::uint32 ludus::content::render_graph_format::StorageBuffer::IsReadOnly
One for StructuredBuffer, zero for RWStructuredBuffer.

Related types: foundation::uint32

Declared in modules/content/render_graph_format/include/ludus/content/render_graph_format/plan.h