Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
Loading...
Searching...
No Matches
esengine::rg::TargetDesc Struct Reference

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.

Detailed Description

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.

Member Data Documentation

◆ depthStencil

bool esengine::rg::TargetDesc::depthStencil = false

Definition at line 64 of file RenderGraph.hpp.

Referenced by esengine::RenderFrame::endScreenOverlay().

◆ format

◆ gbuffer

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().

◆ height

u32 esengine::rg::TargetDesc::height = 0

Definition at line 61 of file RenderGraph.hpp.

Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().

◆ linearFilter

bool esengine::rg::TargetDesc::linearFilter = true

Definition at line 63 of file RenderGraph.hpp.

Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().

◆ samples

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().

◆ scale

f32 esengine::rg::TargetDesc::scale = 1.0f

Definition at line 59 of file RenderGraph.hpp.

Referenced by esengine::DynamicGI::declare().

◆ storage

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().

◆ width

u32 esengine::rg::TargetDesc::width = 0

Definition at line 60 of file RenderGraph.hpp.

Referenced by esengine::DynamicGI::declare(), and esengine::VoxelGI::declare().


The documentation for this struct was generated from the following file:
  • /home/runner/work/estella/estella/src/esengine/renderer/graph/RenderGraph.hpp