Donner SVG main
0.8.0 ยท 382bd0190.8.0 main
SVG editor and embeddable C⁠+⁠+⁠20 engine.
Loading...
Searching...
No Matches
donner::gpu::SubmittedCommandBuffer Struct Reference

One command buffer of a submission, as a backend receives it: the slot the buffer occupied before it was consumed, plus its validated commands in recording order. More...

#include "donner/gpu/Device.h"

Public Attributes

uint32_t slotIndex = 0
 Slot the command buffer occupied before consumption.
std::span< const Command > commands
 Validated commands, in recording order.

Detailed Description

One command buffer of a submission, as a backend receives it: the slot the buffer occupied before it was consumed, plus its validated commands in recording order.

commands aliases storage the submitting device owns for the duration of the Device::onSubmit call this struct is handed to, and nothing else keeps it alive. A backend that needs the commands after that call returns copies them; it must not retain the span, or this struct, past the call.

Member Data Documentation

◆ commands

std::span<const Command> donner::gpu::SubmittedCommandBuffer::commands

Validated commands, in recording order.

◆ slotIndex

uint32_t donner::gpu::SubmittedCommandBuffer::slotIndex = 0

Slot the command buffer occupied before consumption.


The documentation for this struct was generated from the following file: