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

#include <DynamicGI.hpp>

Public Attributes

f32 width = 0
f32 height = 0
f32 probeSpacing = 0
 Pixels between probes, and how many probes there are.
f32 probes = 0
f32 probeRays = 0
 Rays traced this frame by the probes (a probe has 64, one in stride of them a frame) and by the cards.
f32 cardPixels = 0
f32 cardPixelsRelit = 0
f32 cardRays = 0
f32 applyPixels = 0
 Pixels the apply pass visits, and the texture reads it makes of each (the four nearest probes; twelve more only where those fail).
f32 applyLoadsPerPixel = 0
f32 forcedAttachmentBytes = 0
 What the scene pass writes only because this effect is on: the G-buffer (8 bytes a pixel) and the albedo target (4).
f32 residentBytes = 0
 What the effect keeps in video memory.
f32 levels = 0
f32 lights = 0
f32 instances = 0
f32 frame = 0

Detailed Description

What the last frame's passes were asked to do, counted where they are dispatched. The cost of the effect is these numbers times what a ray, a texel and a byte cost on a device, and only the first factor is the engine's: a gate (tools/gi/check-gi-cost.mjs) holds them to budgets on any machine, so a change that doubles the rays, or makes every pixel read twice as much, is caught where the GPU is fast.

Definition at line 80 of file DynamicGI.hpp.

Member Data Documentation

◆ applyLoadsPerPixel

f32 esengine::DynamicGIStats::applyLoadsPerPixel = 0

Definition at line 87 of file DynamicGI.hpp.

◆ applyPixels

f32 esengine::DynamicGIStats::applyPixels = 0

Pixels the apply pass visits, and the texture reads it makes of each (the four nearest probes; twelve more only where those fail).

Definition at line 87 of file DynamicGI.hpp.

◆ cardPixels

f32 esengine::DynamicGIStats::cardPixels = 0

Definition at line 85 of file DynamicGI.hpp.

◆ cardPixelsRelit

f32 esengine::DynamicGIStats::cardPixelsRelit = 0

Definition at line 85 of file DynamicGI.hpp.

◆ cardRays

f32 esengine::DynamicGIStats::cardRays = 0

Definition at line 85 of file DynamicGI.hpp.

◆ forcedAttachmentBytes

f32 esengine::DynamicGIStats::forcedAttachmentBytes = 0

What the scene pass writes only because this effect is on: the G-buffer (8 bytes a pixel) and the albedo target (4).

Definition at line 89 of file DynamicGI.hpp.

◆ frame

f32 esengine::DynamicGIStats::frame = 0

Definition at line 92 of file DynamicGI.hpp.

◆ height

f32 esengine::DynamicGIStats::height = 0

Definition at line 81 of file DynamicGI.hpp.

◆ instances

f32 esengine::DynamicGIStats::instances = 0

Definition at line 92 of file DynamicGI.hpp.

◆ levels

f32 esengine::DynamicGIStats::levels = 0

Definition at line 92 of file DynamicGI.hpp.

◆ lights

f32 esengine::DynamicGIStats::lights = 0

Definition at line 92 of file DynamicGI.hpp.

◆ probeRays

f32 esengine::DynamicGIStats::probeRays = 0

Rays traced this frame by the probes (a probe has 64, one in stride of them a frame) and by the cards.

Definition at line 85 of file DynamicGI.hpp.

◆ probes

f32 esengine::DynamicGIStats::probes = 0

Definition at line 83 of file DynamicGI.hpp.

◆ probeSpacing

f32 esengine::DynamicGIStats::probeSpacing = 0

Pixels between probes, and how many probes there are.

Definition at line 83 of file DynamicGI.hpp.

◆ residentBytes

f32 esengine::DynamicGIStats::residentBytes = 0

What the effect keeps in video memory.

Definition at line 91 of file DynamicGI.hpp.

◆ width

f32 esengine::DynamicGIStats::width = 0

Definition at line 81 of file DynamicGI.hpp.


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