118 bool ensureProbes(
u32 tilesX,
u32 tilesY);
127 u32 sdfBytes_ = 0, instanceBytes_ = 0, pixelBytes_ = 0, radianceBytes_ = 0;
131 u32 probeTilesX_ = 0, probeTilesY_ = 0;
137 u32 uploadedVersion_ = 0;
138 bool failed_ =
false;
142 u32 probeSpacing_ = 8;
Backend-agnostic graphics enumerations.
Full-screen passes as a declared graph: what each one reads, what it writes, and at what size — the g...
Core type definitions and utilities for ESEngine.
DynamicGI(const DynamicGI &)=delete
rg::ResourceId declare(rg::RenderGraph &graph, rg::ResourceId input, rg::ResourceId scene, const DynamicGIParams ¶ms, u32 width, u32 height)
DynamicGI & operator=(const DynamicGI &)=delete
DynamicGI(GfxDevice &device, RenderContext &context)
Abstract graphics device interface.
DynamicGIScene & dynamicGIScene()
ComputeHandle
A compute program (GfxDevice::createCompute); only a device that supportsCompute() issues one.
const DynamicGIStats & dynamicGIStats()
std::uint32_t u32
Unsigned 32-bit integer.
constexpr u32 kDynamicGIStatFloats
float f32
32-bit floating point
f32 intensity
How much of the gathered light is added over the picture.
f32 blend
How much of each frame's card lighting replaces what the card held (the rest is history,...
u32 skip
For measuring: skip the cards (1), the probes (2) or the apply (4), to read what the rest of the fram...
u32 cardSlices
The cards are relit a slice at a time over this many frames (their light changes slowly; the cost is ...
u32 probeSpacing
Pixels between probes: 0 picks about 160 x 90 probes whatever the picture size.
u32 probeStride
One in this many of a probe rays is traced each frame, alternating, so the history fills the rest in.
f32 probeDensity
How many of the rows of probes the picture would have are kept, 0.25 to 1 (it acts where probeSpacing...
std::vector< f32 > sdf
The distance field, dim^3 cells, toroidal.
std::vector< u32 > pixels
4 words a card pixel.
std::vector< f32 > header
Header: sdf dim, cell size, origin x y z (cells), reach, instance count, card pixel count,...
std::vector< f32 > instances
64 floats an instance.
f32 probeSpacing
Pixels between probes, and how many probes there are.
f32 residentBytes
What the effect keeps in video memory.
f32 probeRays
Rays traced this frame by the probes (a probe has 64, one in stride of them a frame) and by the cards...
f32 applyPixels
Pixels the apply pass visits, and the texture reads it makes of each (the four nearest probes; twelve...
f32 forcedAttachmentBytes
What the scene pass writes only because this effect is on: the G-buffer (8 bytes a pixel) and the alb...