|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Shape of a target the graph allocates. More...
#include <RenderGraph.hpp>
Public Attributes | |
| f32 | scale = 1.0f |
| u32 | width = 0 |
| u32 | height = 0 |
| GfxPixelFormat | format = GfxPixelFormat::RGBA8 |
| bool | linearFilter = true |
| bool | depthStencil = false |
| u32 | samples = 1 |
| bool | gbuffer = false |
| A second colour attachment for the surface's material, drawn beside the first. | |
| bool | storage = false |
| Written by a compute shader (a pass with compute set), then sampled like any target. | |
Shape of a target the graph allocates.
Size is a fraction of the graph's reference size rather than pixels: a half-size blur stays half-size when the window resizes, and the pool can hand the same physical target to any pass asking for that fraction.
width/height name pixels directly instead, for a target whose texels are its own: a shadow atlas is 2048² because that is how many its tiling divides, and as a scale it would be a different resource on every monitor. Zero (the default) follows scale.
Definition at line 58 of file RenderGraph.hpp.
| bool esengine::rg::TargetDesc::depthStencil = false |
Definition at line 64 of file RenderGraph.hpp.
Referenced by esengine::RenderFrame::endScreenOverlay().
| GfxPixelFormat esengine::rg::TargetDesc::format = GfxPixelFormat::RGBA8 |
Definition at line 62 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare(), esengine::VoxelGI::declare(), and esengine::PostProcessPipeline::grabDepthTarget().
| bool esengine::rg::TargetDesc::gbuffer = false |
A second colour attachment for the surface's material, drawn beside the first.
Definition at line 69 of file RenderGraph.hpp.
Referenced by esengine::PostProcessPipeline::begin().
| u32 esengine::rg::TargetDesc::height = 0 |
Definition at line 61 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().
| bool esengine::rg::TargetDesc::linearFilter = true |
Definition at line 63 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().
| u32 esengine::rg::TargetDesc::samples = 1 |
Samples to DRAW with. What the target hands back to be sampled stays single-sample either way — the resolve is the target's own business.
Definition at line 67 of file RenderGraph.hpp.
Referenced by esengine::PostProcessPipeline::begin().
| f32 esengine::rg::TargetDesc::scale = 1.0f |
Definition at line 59 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare().
| bool esengine::rg::TargetDesc::storage = false |
Written by a compute shader (a pass with compute set), then sampled like any target.
Definition at line 71 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().
| u32 esengine::rg::TargetDesc::width = 0 |
Definition at line 60 of file RenderGraph.hpp.
Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().