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

The frame's whole shadow allocation, as numbers something outside it can check. More...

#include <ShadowPlan.hpp>

Public Member Functions

void clear ()
u32 deniedCasters () const
const ShadowGrant * grantFor (Entity entity) const
 What entity asked for and kept, or null when it asked nothing.
bool hasSameDenial (const ShadowGrant &claim) const
 Whether this report already contains the same denied claim.
u32 reducedCasters () const

Public Attributes

u32 atlasSize = 0
u32 cellSize = 0
u32 requestedTiles = 0
u32 grantedTiles = 0
std::vector< ShadowGrant > grants

Detailed Description

The frame's whole shadow allocation, as numbers something outside it can check.

Definition at line 48 of file ShadowPlan.hpp.

Member Function Documentation

◆ clear()

void esengine::ShadowPlanReport::clear ( )
inline

Definition at line 55 of file ShadowPlan.hpp.

References grantedTiles, grants, and requestedTiles.

◆ deniedCasters()

u32 esengine::ShadowPlanReport::deniedCasters ( ) const
inline

Definition at line 61 of file ShadowPlan.hpp.

References grants.

Referenced by esengine::renderer_shadowStatus().

◆ grantFor()

const ShadowGrant * esengine::ShadowPlanReport::grantFor ( Entity entity) const
inline

What entity asked for and kept, or null when it asked nothing.

Definition at line 68 of file ShadowPlan.hpp.

References grants, and esengine::Entity::raw.

Referenced by hasSameDenial(), and esengine::renderer_shadowStatus().

◆ hasSameDenial()

bool esengine::ShadowPlanReport::hasSameDenial ( const ShadowGrant & claim) const
inline

Whether this report already contains the same denied claim.

Definition at line 76 of file ShadowPlan.hpp.

References esengine::ShadowGrant::denied(), grantFor(), esengine::ShadowGrant::light, esengine::ShadowGrant::refusal, and esengine::ShadowGrant::requested.

◆ reducedCasters()

u32 esengine::ShadowPlanReport::reducedCasters ( ) const
inline

Definition at line 82 of file ShadowPlan.hpp.

References grants.

Referenced by esengine::renderer_shadowStatus().

Member Data Documentation

◆ atlasSize

u32 esengine::ShadowPlanReport::atlasSize = 0

Definition at line 49 of file ShadowPlan.hpp.

◆ cellSize

u32 esengine::ShadowPlanReport::cellSize = 0

Definition at line 50 of file ShadowPlan.hpp.

◆ grantedTiles

u32 esengine::ShadowPlanReport::grantedTiles = 0

Definition at line 52 of file ShadowPlan.hpp.

Referenced by clear().

◆ grants

std::vector<ShadowGrant> esengine::ShadowPlanReport::grants

Definition at line 53 of file ShadowPlan.hpp.

Referenced by clear(), deniedCasters(), grantFor(), and reducedCasters().

◆ requestedTiles

u32 esengine::ShadowPlanReport::requestedTiles = 0

Definition at line 51 of file ShadowPlan.hpp.

Referenced by clear().


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