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

#include <VoxelGI.hpp>

Public Member Functions

 VoxelGI (GfxDevice &device, RenderContext &context)
 ~VoxelGI ()
 VoxelGI (const VoxelGI &)=delete
VoxelGI & operator= (const VoxelGI &)=delete
rg::ResourceId declare (rg::RenderGraph &graph, rg::ResourceId input, rg::ResourceId scene, const VoxelGIParams &params, u32 width, u32 height, TextureHandle shadowAtlas=TextureHandle::Invalid, rg::ResourceId shadowResource=rg::kNoResource)
 Declares the four passes onto graph, reading input and the scene's depth and G-buffer.
void release ()

Static Public Member Functions

static u32 gridSizeOf (u32 asked)
static u32 sunSamplesOf (u32 asked)

Static Public Attributes

static constexpr u32 kMaxGridSize = 128
static constexpr u32 kMinGridSize = 32

Detailed Description

Definition at line 70 of file VoxelGI.hpp.

Constructor & Destructor Documentation

◆ VoxelGI() [1/2]

esengine::VoxelGI::VoxelGI ( GfxDevice & device,
RenderContext & context )

Definition at line 487 of file VoxelGI.cpp.

Referenced by VoxelGI(), and operator=().

◆ ~VoxelGI()

esengine::VoxelGI::~VoxelGI ( )

Definition at line 489 of file VoxelGI.cpp.

References release().

◆ VoxelGI() [2/2]

esengine::VoxelGI::VoxelGI ( const VoxelGI & )
delete

References VoxelGI().

Member Function Documentation

◆ declare()

rg::ResourceId esengine::VoxelGI::declare ( rg::RenderGraph & graph,
rg::ResourceId input,
rg::ResourceId scene,
const VoxelGIParams & params,
u32 width,
u32 height,
TextureHandle shadowAtlas = TextureHandle::Invalid,
rg::ResourceId shadowResource = rg::kNoResource )

◆ gridSizeOf()

u32 esengine::VoxelGI::gridSizeOf ( u32 asked)
static

Definition at line 511 of file VoxelGI.cpp.

References kMaxGridSize, and kMinGridSize.

Referenced by declare().

◆ operator=()

VoxelGI & esengine::VoxelGI::operator= ( const VoxelGI & )
delete

◆ release()

void esengine::VoxelGI::release ( )

Frees the device objects (the grid, the programs).

Definition at line 493 of file VoxelGI.cpp.

References esengine::Invalid.

Referenced by ~VoxelGI().

◆ sunSamplesOf()

u32 esengine::VoxelGI::sunSamplesOf ( u32 asked)
static

Definition at line 517 of file VoxelGI.cpp.

Referenced by declare().

Member Data Documentation

◆ kMaxGridSize

u32 esengine::VoxelGI::kMaxGridSize = 128
staticconstexpr

Definition at line 90 of file VoxelGI.hpp.

Referenced by gridSizeOf().

◆ kMinGridSize

u32 esengine::VoxelGI::kMinGridSize = 32
staticconstexpr

Definition at line 91 of file VoxelGI.hpp.

Referenced by gridSizeOf().


The documentation for this class was generated from the following files:
  • /home/runner/work/estella/estella/src/esengine/renderer/frame/VoxelGI.hpp
  • /home/runner/work/estella/estella/src/esengine/renderer/frame/VoxelGI.cpp