|
coastline 0.0.4
|
Persistent quad slots, updated independently and drawn in a caller-specified order. More...
#include <scenerenderer.h>
Public Member Functions | |
| ~RenderQuadBuffer () | |
| Release persistent quad storage before the GPU device is destroyed. | |
| RenderQuadBuffer (const RenderQuadBuffer &)=delete | |
| Prevent copying persistent quad GPU storage. | |
| RenderQuadBuffer & | operator= (const RenderQuadBuffer &)=delete |
| Prevent assignment of persistent quad GPU storage. | |
| void | Update (std::uint32_t slot, std::span< const FlatVertex, 4 > corners) |
| Replace one persistent quad before the frame is submitted. | |
Static Public Member Functions | |
| static std::unique_ptr< RenderQuadBuffer > | Create (SceneRenderer &renderer, std::size_t quads) |
Friends | |
| class | SceneRenderer |
Persistent quad slots, updated independently and drawn in a caller-specified order.
| coastline::RenderQuadBuffer::~RenderQuadBuffer | ( | ) |
Release persistent quad storage before the GPU device is destroyed.
|
delete |
Prevent copying persistent quad GPU storage.
|
static |
| renderer | The renderer whose device allocates the buffer. |
| quads | The maximum number of persistent quad slots. |
quads slots, or null with the allocation error logged.
|
delete |
Prevent assignment of persistent quad GPU storage.
| void coastline::RenderQuadBuffer::Update | ( | std::uint32_t | slot, |
| std::span< const FlatVertex, 4 > | corners ) |
Replace one persistent quad before the frame is submitted.
| slot | The zero-based slot below the capacity passed to Create(). |
| corners | The quad vertices, clockwise from the top left, copied into buffer storage. |
|
friend |