render_target.h
| File Path | engine/include/conjure/renderer/render_target.h |
| API ↗ | Rendering, Rendering a frame |
Off-screen targets: the editor viewport and the AI agent's screenshots render into one and read it back synchronously through renderer::read_back. Created, resized and destroyed through the renderer; this class exposes only what the editor needs.
Structs
| File | Description |
|---|---|
depth_read_back |
A render target's depth as renderer::read_back_depth returns it: size.x * size.y reverse-Z values row by row from the top-left pixel, 1 at the near plane and 0 at the far plane, where nothing was drawn and in a target no view has rendered into yet. |
render_target_desc |
Classes
| File | Description |
|---|---|
render_target |
Forward Declarations
render_target::impl
The private state (engine/src/renderer/render_target_impl.h), reachable through renderer_access.
renderer_access
Functions
Public
is_render_target_colour_format
is_render_target_colour_format[[nodiscard]] CONJURE_API bool is_render_target_colour_format(
rhi::texture_format format) noexcept;True for the colour formats a render target may use: RGBA8_UNORM, RGBA8_SRGB, BGRA8_SRGB, RGBA16_FLOAT and R11G11B10_FLOAT. RGBA8_UNORM holds display-referred values: right for read_back and ImGui, wrong as a sprite's texture (render_target_desc::colourFormat).