Engine → Renderer → render_scene.h
render_scene_pair
| Type | Class |
| Namespace | conjure::renderer |
| Include File Path | engine/include/conjure/renderer/render_scene.h |
| Source File Path | engine/src/renderer/render_scene.cpp |
| API ↗ | Rendering, Rendering a frame |
Syntax
Constructors
| Access | Signature | Description |
|---|---|---|
| public | render_scene_pair(); |
Important
Copy constructor and assignment has been deleted.
Destructors
| Access | Signature | Description |
|---|---|---|
| public | ~render_scene_pair(); |
Variables
| Access | Name | Type | Default | Description |
|---|---|---|---|---|
| private | mExtracting | bool | false | |
| private | mOwner | std::thread::id | {} | |
| private | mScenes | std:: | {} | |
| private | mWriteIndex | u32 | 0 |
Functions
Public
begin_extract
begin_extract[[nodiscard]] render_scene &begin_extract();Clears the write slot and returns it. Asserts when extraction is already open.
end_extract
end_extractvoid end_extract();Swaps the slots; what was written becomes read(). Asserts without a matching begin_extract.
is_extracting
is_extracting[[nodiscard]] bool is_extracting() const noexcept;read
read[[nodiscard]] const render_scene &read() const noexcept;The slot the renderer reads. Stable between end_extract calls.
write
write[[nodiscard]] render_scene &write() noexcept;The slot extraction writes (valid between begin_extract and end_extract).
write_index
write_index[[nodiscard]] u32 write_index() const noexcept;Index of the write slot (0 or 1); flips on every end_extract.