Skip to content

ludus::graphics::rhi::ComputeWorkloadBuffer

Ludus Wiki · API overview · Browse API

Struct

One persistent storage allocation. Nonempty InitialBytes must cover Size exactly; empty input creates zeroed storage. Preparation consumes input before returning.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

#include <ludus/graphics/rhi/compute_workload.hpp>
struct ludus::graphics::rhi::ComputeWorkloadBuffer final

Fields

Size

foundation::usize ludus::graphics::rhi::ComputeWorkloadBuffer::Size = 0
Positive byte capacity, independent of viewport size.

Related types: foundation::usize

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

InitialBytes

foundation::BorrowedView<const foundation::uint8> ludus::graphics::rhi::ComputeWorkloadBuffer::InitialBytes
Borrowed upload, or empty for zero fill.

Related types: foundation::BorrowedView · foundation::uint8

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

IsReadOnly

bool ludus::graphics::rhi::ComputeWorkloadBuffer::IsReadOnly = false
Reject every writable binding to this allocation when true.

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp

External

BufferHandle ludus::graphics::rhi::ComputeWorkloadBuffer::External {}
Optional existing storage buffer instead of a new allocation. InitialBytes must be empty; Size bounds usable bytes. Caller keeps its public owner alive until this workload is reset. Workload never destroys this borrowed owner. Same-device readiness, range and role are independently checked by the RHI.

Related types: BufferHandle

Declared in modules/graphics/rhi/include/ludus/graphics/rhi/compute_workload.hpp