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

#include <RenderFrame.hpp>

Classes

struct  Stats
struct  ImpostorAtlas
 An impostor's pictures: the atlas texture and how many frames along its side. More...
struct  PassClear
 The frame's main-pass load-op: which attachments to clear, the color, and an optional region (w == 0 = full target — per-camera flows clear only their viewport on the shared default target). More...
struct  PreviewSurface
 One offscreen render's resources, correct only together. More...
struct  PendingSkeletalBatch
 Skeletal geometry a caller holds until it renders, owning its bytes. More...
struct  CasterCacheStats
struct  ViewLighting
 The editor view's own lighting, in place of the scene's. More...

Public Types

using SkeletalPreviewId = u64

Public Member Functions

 RenderFrame (GfxDevice &device, RenderContext &context, resource::ResourceManager &resource_manager)
 ~RenderFrame ()
 RenderFrame (const RenderFrame &)=delete
RenderFrame & operator= (const RenderFrame &)=delete
void init (u32 width, u32 height)
void shutdown ()
void resize (u32 width, u32 height)
void setShadowBudget (u32 atlasSize, u32 cellSize, u32 cascades)
void setShadowDistance (f32 distance)
void setShadow2DSoftSamples (u32 samples)
 How many samples across a light source a soft 2D shadow is drawn with: the quality level's say on the penumbra's smoothness and cost.
bool setQualityValue (const std::string &name, f32 value)
void setDepthPrepass (bool on)
void setProbesPerPixel (bool on)
 Whether a mesh without lightmap UVs reads its probe volume per pixel (the grid through the frame's brick atlas) or per object (one value where it stands). Off holds no atlas at all: a weak GPU's quality level.
bool probesPerPixel () const
void setLodDistanceScale (f32 scale)
f32 lodDistanceScale () const
void setOcclusionGridSize (u32 size)
void setTargetPoolIdleBudget (u64 bytes)
void setSkyEnvironment (resource::EnvironmentHandle environment)
 The environment the sky lights the scene with (the Sky Atmosphere's, worked out by the SDK as the sky changes), or an invalid handle for none. An Ambient light that names no environment of its own lights with it.
void setLightingDirect (bool on)
bool lightingDirect () const
void setPlanarQuality (f32 scale, u32 maxSize, f32 updatesPerSecond, bool capAuthored)
void wantTextureSide (u32 texture, f32 side)
 Note that a view drew a mesh with texture texture (a resource handle) where it needs side texels across for a texel to be about a pixel. The largest asked since the last take is kept.
std::string takeTextureWants ()
 What each texture was asked for since the last take, as handle:side pairs joined by commas; the record starts again.
f32 viewHeightPx () const
 The pixel height of the view being collected: what a texel is held to.
void setImpostorAtlas (Entity entity, u32 texture, u32 frames)
 Hand entity the atlas its Impostor draws from; a zero texture takes it away.
const ImpostorAtlas * impostorAtlas (Entity entity) const
u32 planarTextureFor (Entity entity) const
const PlanarConstants & planarConstants () const
std::string planarStatus (u32 view, u32 entity) const
void setPresentedOverlayDraw (ImmediateDraw *draw)
void beginFrame ()
 Opens the FRAME, once, before any of its cameras.
void setPlanarTime (f32 seconds)
void endFrame ()
 Closes the FRAME, once, after every camera and every overlay.
void begin (const glm::mat4 &view_projection, RenderTargetManager::Handle target=0)
void begin (const glm::mat4 &view_projection, RenderTargetManager::Handle target, const PassClear &clear)
void flush ()
void end ()
void processMasks (ecs::Registry &registry, i32 vpX, i32 vpY, i32 vpW, i32 vpH)
void processMasks (ecs::Registry &registry, const glm::mat4 &projection, i32 vpX, i32 vpY, i32 vpW, i32 vpH)
void setScreenDomain (const std::unordered_set< u32 > *domain)
 The screen's entities (UISystem::screenDomain), borrowed for the frame. Null partitions nothing — every collect is a world one.
void setUITreeLayers (const std::unordered_map< u32, i32 > *layers)
 The layers of what a Canvas holds with no uiOrder, borrowed for the frame.
void setScreenRoots (const std::vector< u32 > *roots, const std::vector< u32 > *rootByIndex)
 The screen's root Canvases in drawing order and, by entity index, the root each screen entity draws under, borrowed from the UI system for the frame (ecs::UISystem::screenRoots / screenRootOf). Null: the overlay is one list.
void beginScreenOverlay (const glm::mat4 &projection, i32 vpX, i32 vpY, u32 vpW, u32 vpH)
 Opens the overlay: projection maps the layout domain onto the pixel rect vpX/vpY/vpW/vpH of the surface.
void submitScreenOverlay (ecs::Registry &registry)
 Collects the screen's renderables. Between this and endScreenOverlay a host may submit its own screen geometry (the SDK's glyph quads), which lands in the same list.
void setRetainedTextCollected (bool collected)
 The retained labels drawn by the frame's own collects (the camera's world labels, the overlay's screen ones) rather than submitted by the host: a host turns it on when it stops calling renderer_retainedTextSubmit.
bool retainedTextCollected () const
void submitRetainedText (ecs::Registry &registry, bool screen, const f32 *projection, u32 onlyRoot=0)
 Every retained label laid out for one domain into the open list, culled against projection (world, not rebased).
bool keepScreenOverlay (ecs::Registry &registry, bool hostStill)
 Asked after beginScreenOverlay and the layers: true, and the host submits nothing and endScreenOverlay draws what the overlay holds. Held while no component of a screen-domain entity moved (stamps, journal), nor the inputs overlayInputs names, and hostStill. Under the change audit it always builds and counts a mismatch (render.overlay.stale).
void setScreenOverlayEffect (u32 material)
void endScreenOverlay (RenderTargetManager::Handle target)
void drawOverScreen (i32 vpX, i32 vpY, u32 vpW, u32 vpH, RenderTargetManager::Handle target)
 Draws the immediate geometry collected since the screen overlay over everything the frame shows, its UI included, in the pixel rect vpX/vpY/vpW/vpH, through the view-projection it was collected with: an editor's handles, which the scene and its UI must never cover. Nothing collected draws nothing.
bool screenOverlayOpen () const
 Whether the overlay is open — what routes a host's submissions.
void setEntityClipRect (u32 entity, i32 x, i32 y, i32 w, i32 h)
void clearAllClipRects ()
void setEntityStencilMask (u32 entity, i32 refValue, bool hierarchical=false)
void setEntityStencilTest (u32 entity, i32 refValue, bool hierarchical=false)
void clearAllStencilMasks ()
void submitTileQuad (const glm::vec2 &position, const glm::vec2 &size, const glm::vec2 &uvOffset, const glm::vec2 &uvScale, const glm::vec4 &color, u32 textureId, Entity entity, i32 layer, f32 depth)
void submitTextBatch (const f32 *vertices, i32 vertexCount, const u16 *indices, i32 indexCount, u32 textureId, const f32 *transform16, Entity entity, i32 layer, f32 depth, TextGlyphMode mode, u32 cullBit=0)
RetainedTextStore & retainedText ()
 The glyph quads of every label the text system laid out and handed over once, which the engine submits itself each frame.
void submitSkeletalBatch (const f32 *vertices, i32 vertexCount, const u16 *indices, i32 indexCount, u32 textureId, i32 blendMode, const f32 *transform16, Entity entity, i32 layer, f32 depth, u32 materialId=0, bool premultipliedColor=false, f32 treeAlpha=1.0f, u32 cullBit=0)
 Batch vertices posed by a skeletal runtime, drawn as one entity's geometry.
bool uiTreeHolds (Entity entity) const
 Whether a Canvas holds entity with no uiOrder of its own (an emitter, a skeleton, a plain Sprite).
void setStage (RenderStage stage)
RenderStage getStage () const
RenderTargetManager & targetManager ()
u32 queueMaterialBake (u32 material, u32 shader, u32 target, u32 x, u32 y, u32 w, u32 h, const glm::vec4 &a, const glm::vec4 &b)
 Draws material material through shader (a PostProcess-domain shader) into the rect (x, y, w, h) of render target target, before the next frame's scene: a surface baked into a texture, a material drawn to a render target.
i32 materialBakeState (u32 ticket)
 A bake's state: 0 waiting, 1 drawn, -1 not drawable (no target, shader or material, or no post-processing in this build). A drawn or failed ticket is forgotten once asked.
void cancelMaterialBakesFor (u32 target)
bool projectMaterialBake (u32 ticket, u32 material, u32 target, u32 instances)
const Stats & stats () const
FrameCapture & frameCapture ()
void setYSortLayers (u32 mask)
 Layers (bits 0..31) that sort by world Y within the layer — see DrawList::setYSortMask.
void setTreeSortLayers (u32 mask)
 Layers (bits 0..31) that paint in hierarchy order within the layer — see DrawList::setTreeMask.
void setDepthLayers (u32 mask)
u32 depthLayers () const
void setCullingMask (u32 mask)
 Layers the camera about to be collected renders — see DrawList::setCullingMask.
void setViewId (u32 view)
 Names the view the camera about to be collected looks from, which is what its LOD levels are remembered under.
bool clusterInspect (Entity entity, u32 &outTriangles, u32 &outClusters) const
 The LOD decision view last made about entity: the level, what the bare thresholds asked for, the stand-ins reachable, the size.
bool lodInspect (u32 view, Entity entity, u8 &outLevel, u8 &outUnbiased, u8 &outLevels, f32 &outSize) const
void setLodPreview (u32 view, Entity entity, u8 level)
 Show level for entity in view instead of the level that view chose; lod::kNoPreview goes back to choosing.
usize lodPreviewCount () const
 How many (view, entity) pairs are held up for inspection.
void setViewShading (u32 view, ShadingMode mode)
 Shade view's meshes as mode says instead of as authored.
void setViewSelection (u32 view, const u32 *ids, u32 count)
 The editor's selection in view, outlined on screen (by Entity::id()); empty clears it.
void requestProbeCapture (const glm::vec3 &position, u32 face)
 Capture the scene around position (world) into six face-pixel faces, one a frame, and read them back: a probe volume filled at run time (RenderFrameProbeCapture.cpp). A request replaces one in flight.
i32 pollProbeCapture ()
 0 = not yet, 1 = ready (probeCapturePixels), 2 = none asked for or it failed. Between frames only.
const std::vector< u8 > & probeCapturePixels () const
 The six faces side by side, +X -X +Y -Y +Z -Z, RGBM over 8 in RGBA8 (alpha 0 = nothing drawn), rows bottom-up.
void setProbeVolumeOverride (u32 entity, resource::ProbeVolumeHandle grid)
 The grid a volume reads instead of its own probes (a capture's), or an invalid handle to stop.
void setProbeVolumeReflection (u32 entity, u32 environment, u32 slot)
 The volume on entity reflects column slot of environment (an atlas built from captures, column 0 the sky); an invalid environment stops. Used only where no baked ReflectionProbe is.
void setWorldUnitsPerMeter (f32 units)
 How many world units make a metre (the project's setting): what an inverse-square light measures in.
void setViewSkinWeights (u32 view, Entity entity, u32 joint)
 Colour entity in view by how much joint moves each of its vertices.
ShadingMode viewShading (u32 view) const
 The mode view asked for; Shaded when it never did.
const ShadowPlanReport & shadowPlan () const
 What each caster asked the shadow atlas for last frame, and what it got.
CasterCacheStats casterCacheStats () const
const LightCapReport & lightCap () const
 Which lights the cap turned away last frame, and why.
void setViewLighting (const ViewLighting &lighting)
const ViewLighting & viewLighting () const
bool sceneSkyAvailable () const
 Whether the frame found a scene environment it could draw as the background.
void setColorSpace (bool linear)
 Switch the frame to linear-light rendering (project colorSpace).
bool linearColor () const
void replayToDrawCall (i32 drawIndex)
bool snapshotMatchesCapture () const
const u8 * getSnapshotPixels () const
u32 getSnapshotSize () const
u32 getSnapshotWidth () const
u32 getSnapshotHeight () const
i32 pollSnapshotReadback ()
void renderToTarget (ecs::Registry &registry, const glm::mat4 &viewProjection, u32 w, u32 h)
const u8 * getPreviewPixels () const
u32 getPreviewSize () const
u32 getPreviewWidth () const
u32 getPreviewHeight () const
i32 pollPreviewReadback ()
SkeletalPreviewId createSkeletalPreview (u32 w, u32 h)
bool submitSkeletalPreviewBatch (SkeletalPreviewId id, const f32 *vertices, i32 vertexCount, const u16 *indices, i32 indexCount, u32 textureId, i32 blendMode, const f32 *transform16, i32 layer, f32 depth, u32 materialId, bool premultipliedColor=false)
bool renderSkeletalPreview (SkeletalPreviewId id, const glm::mat4 &viewProjection)
i32 pollSkeletalPreview (SkeletalPreviewId id)
const u8 * skeletalPreviewPixels (SkeletalPreviewId id) const
u32 skeletalPreviewSize (SkeletalPreviewId id) const
u32 skeletalPreviewWidth (SkeletalPreviewId id) const
u32 skeletalPreviewHeight (SkeletalPreviewId id) const
void destroySkeletalPreview (SkeletalPreviewId id)
void addPlugin (std::unique_ptr< RenderTypePlugin > plugin)
RenderPrewarmResult prewarmPrograms (ecs::Registry &registry, const Entity *entities, u32 count)
 Make ready the programs entities will need, drawing nothing.
RenderPrewarmResult prewarmDocument (const MeshDocumentRecord *rows, u32 count)
 The same readiness, from a prepared cell's own description — no entity of it need exist.
void collectAll (ecs::Registry &registry, bool sceneGBuffer=true)
bool inFrame () const
 Whether begin() opened a frame; false when it refused one for a lost device.
u32 stagedVertexBytes (LayoutId layout) const
 The vertex bytes staged for layout since the last begin().
bool visibleToCamera (i32 layer, const glm::vec3 &center, const glm::vec3 &halfExtents) const
 Whether the camera being rendered right now would draw something of layer at these world bounds.
u32 batchProgram (BatchVariant variant)
u32 batchProgram (const std::vector< std::string > &features)
u32 displayProgram (u32 program)
SkinCache * skinCache ()

Static Public Attributes

static constexpr u32 STAGE_COUNT = 4

Detailed Description

Definition at line 95 of file RenderFrame.hpp.

Member Typedef Documentation

◆ SkeletalPreviewId

A skeletal preview's id. Carries a generation, so a destroyed one cannot come back pointing at whatever took its slot.

Definition at line 628 of file RenderFrame.hpp.

Constructor & Destructor Documentation

◆ RenderFrame() [1/2]

esengine::RenderFrame::RenderFrame ( GfxDevice & device,
RenderContext & context,
resource::ResourceManager & resource_manager )

Definition at line 147 of file RenderFrame.cpp.

Referenced by RenderFrame(), endScreenOverlay(), and operator=().

◆ ~RenderFrame()

esengine::RenderFrame::~RenderFrame ( )

Definition at line 162 of file RenderFrame.cpp.

References shutdown().

◆ RenderFrame() [2/2]

esengine::RenderFrame::RenderFrame ( const RenderFrame & )
delete

References RenderFrame().

Member Function Documentation

◆ addPlugin()

void esengine::RenderFrame::addPlugin ( std::unique_ptr< RenderTypePlugin > plugin)

Definition at line 1467 of file RenderFrame.cpp.

◆ batchProgram() [1/2]

u32 esengine::RenderFrame::batchProgram ( BatchVariant variant)

◆ batchProgram() [2/2]

u32 esengine::RenderFrame::batchProgram ( const std::vector< std::string > & features)

Definition at line 3878 of file RenderFrame.cpp.

References esengine::Shader::getProgramId().

◆ begin() [1/2]

◆ begin() [2/2]

void esengine::RenderFrame::begin ( const glm::mat4 & view_projection,
RenderTargetManager::Handle target = 0 )

Definition at line 489 of file RenderFrame.cpp.

References begin().

Referenced by begin().

◆ beginFrame()

void esengine::RenderFrame::beginFrame ( )

Opens the FRAME, once, before any of its cameras.

begin()/end() bracket one CAMERA, so a decision that must hold steady across a frame cannot be made there. The scene's depth requirement is rolled forward and applied here (applySceneDepthNeed), once, for every camera in the frame.

Definition at line 419 of file RenderFrame.cpp.

References esengine::Invalid.

◆ beginScreenOverlay()

void esengine::RenderFrame::beginScreenOverlay ( const glm::mat4 & projection,
i32 vpX,
i32 vpY,
u32 vpW,
u32 vpH )

Opens the overlay: projection maps the layout domain onto the pixel rect vpX/vpY/vpW/vpH of the surface.

Definition at line 58 of file RenderFrameOverlay.cpp.

◆ cancelMaterialBakesFor()

void esengine::RenderFrame::cancelMaterialBakesFor ( u32 target)

Definition at line 2875 of file RenderFrame.cpp.

◆ casterCacheStats()

CasterCacheStats esengine::RenderFrame::casterCacheStats ( ) const
inline

Definition at line 533 of file RenderFrame.hpp.

◆ clearAllClipRects()

void esengine::RenderFrame::clearAllClipRects ( )

Definition at line 1443 of file RenderFrame.cpp.

Referenced by processMasks().

◆ clearAllStencilMasks()

void esengine::RenderFrame::clearAllStencilMasks ( )

Definition at line 1455 of file RenderFrame.cpp.

Referenced by processMasks().

◆ clusterInspect()

bool esengine::RenderFrame::clusterInspect ( Entity entity,
u32 & outTriangles,
u32 & outClusters ) const
inline

The LOD decision view last made about entity: the level, what the bare thresholds asked for, the stand-ins reachable, the size.

A read of what was RECORDED where the choice was made: an editor explaining a level has to agree with the frame that drew it, and the only way to be sure is to not compute it twice.

What the last frames drew of entity's Cluster LOD mesh (see RenderTypePlugin::clusterInspect).

Definition at line 436 of file RenderFrame.hpp.

References esengine::Entity::id().

◆ collectAll()

◆ createSkeletalPreview()

RenderFrame::SkeletalPreviewId esengine::RenderFrame::createSkeletalPreview ( u32 w,
u32 h )

A preview of w×h, or 0 when one cannot be made.

Definition at line 1316 of file RenderFrame.cpp.

◆ depthLayers()

u32 esengine::RenderFrame::depthLayers ( ) const
inline

Definition at line 413 of file RenderFrame.hpp.

◆ destroySkeletalPreview()

void esengine::RenderFrame::destroySkeletalPreview ( SkeletalPreviewId id)

End id. Ownership ends here and the id stops answering; the target and any readback still in the device's hands are released the way every other one is, so nothing lands in freed memory.

Definition at line 1398 of file RenderFrame.cpp.

References esengine::Invalid.

◆ displayProgram()

u32 esengine::RenderFrame::displayProgram ( u32 program)

Definition at line 3883 of file RenderFrame.cpp.

References batchProgram(), and esengine::Shader::getProgramId().

Referenced by endScreenOverlay().

◆ drawOverScreen()

void esengine::RenderFrame::drawOverScreen ( i32 vpX,
i32 vpY,
u32 vpW,
u32 vpH,
RenderTargetManager::Handle target )

Draws the immediate geometry collected since the screen overlay over everything the frame shows, its UI included, in the pixel rect vpX/vpY/vpW/vpH, through the view-projection it was collected with: an editor's handles, which the scene and its UI must never cover. Nothing collected draws nothing.

Definition at line 737 of file RenderFrameOverlay.cpp.

References batchProgram(), esengine::rg::PassDesc::clear, esengine::Default, esengine::DisplayOutput, esengine::rg::PassDesc::execute, esengine::ImmediateDraw::flushDeferred(), esengine::ImmediateDraw::hasDeferred(), esengine::Invalid, esengine::RenderTargetManager::INVALID_HANDLE, esengine::rg::PassDesc::name, esengine::rg::PassDesc::viewportH, esengine::rg::PassDesc::viewportW, esengine::rg::PassDesc::viewportX, esengine::rg::PassDesc::viewportY, esengine::ImmediateDraw::viewProjection(), and esengine::rg::PassDesc::write.

◆ end()

◆ endFrame()

void esengine::RenderFrame::endFrame ( )

Closes the FRAME, once, after every camera and every overlay.

The pair of beginFrame, and the only place a backend that borrows the swapchain image gives it back. Releasing it in end(), which runs per CAMERA, leaves the post stack and the overlay drawing into an image the surface has taken away.

Definition at line 709 of file RenderFrame.cpp.

References esengine::FrameProfiler::commit(), esengine::rg::PassTimer::endFrame(), ES_PROFILE_COUNTER, esengine::rg::PassTimer::framesDisjoint(), esengine::rg::PassTimer::framesDropped(), esengine::rg::PassTimer::framesRead(), esengine::rg::PassTimer::framesSkipped(), esengine::FrameProfiler::get(), esengine::FrameProfiler::gpuScope(), esengine::rg::PassTimer::last(), and esengine::rg::PassTimer::lastTotalMs().

◆ endScreenOverlay()

◆ flush()

void esengine::RenderFrame::flush ( )

Definition at line 664 of file RenderFrame.cpp.

References ES_PROFILE_SCOPE, and esengine::rg::kNoResource.

Referenced by end().

◆ frameCapture()

FrameCapture & esengine::RenderFrame::frameCapture ( )
inline

Definition at line 401 of file RenderFrame.hpp.

◆ getPreviewHeight()

u32 esengine::RenderFrame::getPreviewHeight ( ) const
inline

Definition at line 617 of file RenderFrame.hpp.

◆ getPreviewPixels()

const u8 * esengine::RenderFrame::getPreviewPixels ( ) const
inline

Definition at line 614 of file RenderFrame.hpp.

◆ getPreviewSize()

u32 esengine::RenderFrame::getPreviewSize ( ) const
inline

Definition at line 615 of file RenderFrame.hpp.

◆ getPreviewWidth()

u32 esengine::RenderFrame::getPreviewWidth ( ) const
inline

Definition at line 616 of file RenderFrame.hpp.

◆ getSnapshotHeight()

u32 esengine::RenderFrame::getSnapshotHeight ( ) const
inline

Definition at line 596 of file RenderFrame.hpp.

◆ getSnapshotPixels()

const u8 * esengine::RenderFrame::getSnapshotPixels ( ) const
inline

Definition at line 593 of file RenderFrame.hpp.

◆ getSnapshotSize()

u32 esengine::RenderFrame::getSnapshotSize ( ) const
inline

Definition at line 594 of file RenderFrame.hpp.

◆ getSnapshotWidth()

u32 esengine::RenderFrame::getSnapshotWidth ( ) const
inline

Definition at line 595 of file RenderFrame.hpp.

◆ getStage()

RenderStage esengine::RenderFrame::getStage ( ) const
inline

Definition at line 379 of file RenderFrame.hpp.

◆ impostorAtlas()

const ImpostorAtlas * esengine::RenderFrame::impostorAtlas ( Entity entity) const
inline

Definition at line 176 of file RenderFrame.hpp.

References esengine::Entity::raw.

◆ inFrame()

bool esengine::RenderFrame::inFrame ( ) const
inline

Whether begin() opened a frame; false when it refused one for a lost device.

Definition at line 683 of file RenderFrame.hpp.

◆ init()

void esengine::RenderFrame::init ( u32 width,
u32 height )

◆ keepScreenOverlay()

bool esengine::RenderFrame::keepScreenOverlay ( ecs::Registry & registry,
bool hostStill )

Asked after beginScreenOverlay and the layers: true, and the host submits nothing and endScreenOverlay draws what the overlay holds. Held while no component of a screen-domain entity moved (stamps, journal), nor the inputs overlayInputs names, and hostStill. Under the change audit it always builds and counts a mismatch (render.overlay.stale).

Definition at line 134 of file RenderFrameOverlay.cpp.

References esengine::ecs::Registry::beginChangeRead(), esengine::ecs::Registry::changeAuditEnabled(), esengine::ecs::Registry::each(), esengine::ecs::Registry::entityChangeSequence(), esengine::ecs::Registry::identity(), and esengine::ecs::Registry::watchEntityChanges().

◆ lightCap()

const LightCapReport & esengine::RenderFrame::lightCap ( ) const
inline

Which lights the cap turned away last frame, and why.

The count was logged and the identities were not, so "why is this light dark" could only be answered by deleting lights until one came back.

Definition at line 545 of file RenderFrame.hpp.

◆ lightingDirect()

bool esengine::RenderFrame::lightingDirect ( ) const
inline

Definition at line 150 of file RenderFrame.hpp.

◆ linearColor()

bool esengine::RenderFrame::linearColor ( ) const
inline

Definition at line 582 of file RenderFrame.hpp.

◆ lodDistanceScale()

f32 esengine::RenderFrame::lodDistanceScale ( ) const
inline

Definition at line 141 of file RenderFrame.hpp.

◆ lodInspect()

bool esengine::RenderFrame::lodInspect ( u32 view,
Entity entity,
u8 & outLevel,
u8 & outUnbiased,
u8 & outLevels,
f32 & outSize ) const
inline

Definition at line 443 of file RenderFrame.hpp.

◆ lodPreviewCount()

usize esengine::RenderFrame::lodPreviewCount ( ) const
inline

How many (view, entity) pairs are held up for inspection.

Definition at line 461 of file RenderFrame.hpp.

◆ materialBakeState()

i32 esengine::RenderFrame::materialBakeState ( u32 ticket)

A bake's state: 0 waiting, 1 drawn, -1 not drawable (no target, shader or material, or no post-processing in this build). A drawn or failed ticket is forgotten once asked.

Definition at line 2900 of file RenderFrame.cpp.

◆ operator=()

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

References RenderFrame().

◆ planarConstants()

const PlanarConstants & esengine::RenderFrame::planarConstants ( ) const
inline

Definition at line 183 of file RenderFrame.hpp.

◆ planarStatus()

std::string esengine::RenderFrame::planarStatus ( u32 view,
u32 entity ) const

Definition at line 198 of file RenderFramePlanar.cpp.

References esengine::RGBA16F.

◆ planarTextureFor()

u32 esengine::RenderFrame::planarTextureFor ( Entity entity) const
inline

Definition at line 180 of file RenderFrame.hpp.

◆ pollPreviewReadback()

i32 esengine::RenderFrame::pollPreviewReadback ( )

Lands the preview's async readback; same 0/1/2 contract as pollSnapshotReadback().

Definition at line 1412 of file RenderFrame.cpp.

◆ pollProbeCapture()

i32 esengine::RenderFrame::pollProbeCapture ( )

0 = not yet, 1 = ready (probeCapturePixels), 2 = none asked for or it failed. Between frames only.

Definition at line 42 of file RenderFrameProbeCapture.cpp.

References esengine::Invalid, esengine::Pending, and esengine::Ready.

◆ pollSkeletalPreview()

i32 esengine::RenderFrame::pollSkeletalPreview ( SkeletalPreviewId id)

Lands id's readback: 0 pending, 1 pixels available, 2 nothing to read.

Definition at line 1371 of file RenderFrame.cpp.

◆ pollSnapshotReadback()

i32 esengine::RenderFrame::pollSnapshotReadback ( )

Lands the replay snapshot's async readback: 0 = still pending (poll again after yielding to the event loop), 1 = pixels are in the snapshot buffer (getSnapshot* serve them), 2 = no readback in flight / it failed. GL completes at request time, so the first poll reports 1 — callers use one polling loop for both backends.

Definition at line 1301 of file RenderFrame.cpp.

◆ prewarmDocument()

RenderPrewarmResult esengine::RenderFrame::prewarmDocument ( const MeshDocumentRecord * rows,
u32 count )

The same readiness, from a prepared cell's own description — no entity of it need exist.

Definition at line 3391 of file RenderFrame.cpp.

References esengine::ctx().

◆ prewarmPrograms()

RenderPrewarmResult esengine::RenderFrame::prewarmPrograms ( ecs::Registry & registry,
const Entity * entities,
u32 count )

Make ready the programs entities will need, drawing nothing.

Ordinary renderer code, reachable by anything inside the engine — a residency lifecycle that wants a cell render-ready before it is seen would call THIS. The only thing gated to test builds is the WASM adapter that lets a driver call it from outside.

Definition at line 3377 of file RenderFrame.cpp.

References esengine::ctx().

◆ probeCapturePixels()

const std::vector< u8 > & esengine::RenderFrame::probeCapturePixels ( ) const
inline

The six faces side by side, +X -X +Y -Y +Z -Z, RGBM over 8 in RGBA8 (alpha 0 = nothing drawn), rows bottom-up.

Definition at line 489 of file RenderFrame.hpp.

◆ probesPerPixel()

bool esengine::RenderFrame::probesPerPixel ( ) const
inline

Definition at line 139 of file RenderFrame.hpp.

◆ processMasks() [1/2]

void esengine::RenderFrame::processMasks ( ecs::Registry & registry,
const glm::mat4 & projection,
i32 vpX,
i32 vpY,
i32 vpW,
i32 vpH )

Same, resolved through projection rather than the current camera's — a scissor rect is pixels, and which pixels a UI box covers is a question only the projection that draws it can answer.

Definition at line 252 of file RenderFrameMask.cpp.

References esengine::ecs::Registry::activeView(), clearAllClipRects(), clearAllStencilMasks(), ES_LOG_WARN, esengine::ecs::Registry::get(), and esengine::ecs::Stencil.

◆ processMasks() [2/2]

void esengine::RenderFrame::processMasks ( ecs::Registry & registry,
i32 vpX,
i32 vpY,
i32 vpW,
i32 vpH )

Definition at line 246 of file RenderFrameMask.cpp.

References processMasks().

Referenced by processMasks(), and submitScreenOverlay().

◆ projectMaterialBake()

bool esengine::RenderFrame::projectMaterialBake ( u32 ticket,
u32 material,
u32 target,
u32 instances )

Definition at line 2890 of file RenderFrame.cpp.

◆ queueMaterialBake()

u32 esengine::RenderFrame::queueMaterialBake ( u32 material,
u32 shader,
u32 target,
u32 x,
u32 y,
u32 w,
u32 h,
const glm::vec4 & a,
const glm::vec4 & b )

Draws material material through shader (a PostProcess-domain shader) into the rect (x, y, w, h) of render target target, before the next frame's scene: a surface baked into a texture, a material drawn to a render target.

The shader takes the material's values by name (MaterialStore::bindThrough), with a and b as its params u_bakeA and u_bakeB: what this one draw is of. A bake whose program is still compiling waits for it.

Returns
A ticket for materialBakeState.

Definition at line 2862 of file RenderFrame.cpp.

◆ renderSkeletalPreview()

bool esengine::RenderFrame::renderSkeletalPreview ( SkeletalPreviewId id,
const glm::mat4 & viewProjection )

Draw everything handed to id, and start its readback. CONSUMES the batches, so a render that fails cannot draw last frame's pose again.

Refused while this preview's readback is in flight — one at a time keeps a landed image and the camera it was drawn with together.

Definition at line 1357 of file RenderFrame.cpp.

References esengine::Invalid.

◆ renderToTarget()

void esengine::RenderFrame::renderToTarget ( ecs::Registry & registry,
const glm::mat4 & viewProjection,
u32 w,
u32 h )

Render registry once to an offscreen w×h target with viewProjection and read the RGBA pixels back (queried via getPreview*). A self-contained mini-frame (no post-process) reusing the real collect+execute path, so a material preview matches the viewport exactly. Clobbers the transient draw list/pool, which the next real frame rebuilds.

Definition at line 1233 of file RenderFrame.cpp.

◆ replayToDrawCall()

void esengine::RenderFrame::replayToDrawCall ( i32 drawIndex)

Asks for the captured frame's draws up to drawIndex. The replay runs on a later frame, right after the pass that drew it, so it draws from that pass's own list; the snapshot poll reports pending until then.

Definition at line 1171 of file RenderFrame.cpp.

References esengine::Invalid, and esengine::DrawCallRecord::pass.

◆ requestProbeCapture()

void esengine::RenderFrame::requestProbeCapture ( const glm::vec3 & position,
u32 face )

Capture the scene around position (world) into six face-pixel faces, one a frame, and read them back: a probe volume filled at run time (RenderFrameProbeCapture.cpp). A request replaces one in flight.

Definition at line 33 of file RenderFrameProbeCapture.cpp.

References esengine::Invalid.

◆ resize()

void esengine::RenderFrame::resize ( u32 width,
u32 height )

Definition at line 275 of file RenderFrame.cpp.

◆ retainedText()

RetainedTextStore & esengine::RenderFrame::retainedText ( )
inline

The glyph quads of every label the text system laid out and handed over once, which the engine submits itself each frame.

Definition at line 314 of file RenderFrame.hpp.

◆ retainedTextCollected()

bool esengine::RenderFrame::retainedTextCollected ( ) const
inline

Definition at line 263 of file RenderFrame.hpp.

◆ sceneSkyAvailable()

bool esengine::RenderFrame::sceneSkyAvailable ( ) const
inline

Whether the frame found a scene environment it could draw as the background.

Definition at line 572 of file RenderFrame.hpp.

◆ screenOverlayOpen()

bool esengine::RenderFrame::screenOverlayOpen ( ) const
inline

Whether the overlay is open — what routes a host's submissions.

Definition at line 285 of file RenderFrame.hpp.

◆ setColorSpace()

void esengine::RenderFrame::setColorSpace ( bool linear)

Switch the frame to linear-light rendering (project colorSpace).

Sets the global ES_LINEAR shader input, linearizes CPU-side authored colors (lights, clears), and forces the post-process capture+blit so the final OETF encode always runs. Call before shaders compile; a later flip requires a reload.

Definition at line 3829 of file RenderFrame.cpp.

References esengine::resource::ShaderParser::setLinearColorSpace().

◆ setCullingMask()

void esengine::RenderFrame::setCullingMask ( u32 mask)
inline

Layers the camera about to be collected renders — see DrawList::setCullingMask.

Definition at line 416 of file RenderFrame.hpp.

◆ setDepthLayers()

void esengine::RenderFrame::setDepthLayers ( u32 mask)
inline

Definition at line 407 of file RenderFrame.hpp.

◆ setDepthPrepass()

void esengine::RenderFrame::setDepthPrepass ( bool on)
inline

Draws the opaque scene twice, depth alone first (see DrawList::DrawPass). Off unless asked: where a GPU already shades each pixel once (a tiled one), the second pass is geometry paid for twice.

Definition at line 135 of file RenderFrame.hpp.

◆ setEntityClipRect()

void esengine::RenderFrame::setEntityClipRect ( u32 entity,
i32 x,
i32 y,
i32 w,
i32 h )

Definition at line 1439 of file RenderFrame.cpp.

◆ setEntityStencilMask()

void esengine::RenderFrame::setEntityStencilMask ( u32 entity,
i32 refValue,
bool hierarchical = false )

Definition at line 1447 of file RenderFrame.cpp.

◆ setEntityStencilTest()

void esengine::RenderFrame::setEntityStencilTest ( u32 entity,
i32 refValue,
bool hierarchical = false )

Definition at line 1451 of file RenderFrame.cpp.

◆ setImpostorAtlas()

void esengine::RenderFrame::setImpostorAtlas ( Entity entity,
u32 texture,
u32 frames )
inline

Hand entity the atlas its Impostor draws from; a zero texture takes it away.

Definition at line 172 of file RenderFrame.hpp.

References esengine::Entity::raw.

◆ setLightingDirect()

void esengine::RenderFrame::setLightingDirect ( bool on)

Definition at line 2341 of file RenderFrame.cpp.

◆ setLodDistanceScale()

void esengine::RenderFrame::setLodDistanceScale ( f32 scale)
inline

Definition at line 140 of file RenderFrame.hpp.

◆ setLodPreview()

void esengine::RenderFrame::setLodPreview ( u32 view,
Entity entity,
u8 level )
inline

Show level for entity in view instead of the level that view chose; lod::kNoPreview goes back to choosing.

View state, never component state: a group is authored policy and is the same everywhere. The choice is still made and remembered while a preview stands, so leaving one obeys the selector again.

Definition at line 456 of file RenderFrame.hpp.

◆ setOcclusionGridSize()

void esengine::RenderFrame::setOcclusionGridSize ( u32 size)
inline

Definition at line 142 of file RenderFrame.hpp.

◆ setPlanarQuality()

void esengine::RenderFrame::setPlanarQuality ( f32 scale,
u32 maxSize,
f32 updatesPerSecond,
bool capAuthored )

Definition at line 13 of file RenderFramePlanar.cpp.

◆ setPlanarTime()

void esengine::RenderFrame::setPlanarTime ( f32 seconds)
inline

Definition at line 209 of file RenderFrame.hpp.

◆ setPresentedOverlayDraw()

void esengine::RenderFrame::setPresentedOverlayDraw ( ImmediateDraw * draw)
inline

Geometry collected for this camera and drawn after its scene.

Definition at line 187 of file RenderFrame.hpp.

◆ setProbesPerPixel()

void esengine::RenderFrame::setProbesPerPixel ( bool on)
inline

Whether a mesh without lightmap UVs reads its probe volume per pixel (the grid through the frame's brick atlas) or per object (one value where it stands). Off holds no atlas at all: a weak GPU's quality level.

Definition at line 138 of file RenderFrame.hpp.

◆ setProbeVolumeOverride()

void esengine::RenderFrame::setProbeVolumeOverride ( u32 entity,
resource::ProbeVolumeHandle grid )

The grid a volume reads instead of its own probes (a capture's), or an invalid handle to stop.

Definition at line 171 of file RenderFrameProbeCapture.cpp.

References esengine::resource::Handle< T >::isValid().

◆ setProbeVolumeReflection()

void esengine::RenderFrame::setProbeVolumeReflection ( u32 entity,
u32 environment,
u32 slot )
inline

The volume on entity reflects column slot of environment (an atlas built from captures, column 0 the sky); an invalid environment stops. Used only where no baked ReflectionProbe is.

Definition at line 494 of file RenderFrame.hpp.

◆ setQualityValue()

bool esengine::RenderFrame::setQualityValue ( const std::string & name,
f32 value )

Definition at line 2350 of file RenderFrame.cpp.

◆ setRetainedTextCollected()

void esengine::RenderFrame::setRetainedTextCollected ( bool collected)
inline

The retained labels drawn by the frame's own collects (the camera's world labels, the overlay's screen ones) rather than submitted by the host: a host turns it on when it stops calling renderer_retainedTextSubmit.

Definition at line 262 of file RenderFrame.hpp.

◆ setScreenDomain()

void esengine::RenderFrame::setScreenDomain ( const std::unordered_set< u32 > * domain)
inline

The screen's entities (UISystem::screenDomain), borrowed for the frame. Null partitions nothing — every collect is a world one.

Definition at line 241 of file RenderFrame.hpp.

◆ setScreenOverlayEffect()

void esengine::RenderFrame::setScreenOverlayEffect ( u32 material)

Definition at line 315 of file RenderFrameOverlay.cpp.

◆ setScreenRoots()

void esengine::RenderFrame::setScreenRoots ( const std::vector< u32 > * roots,
const std::vector< u32 > * rootByIndex )
inline

The screen's root Canvases in drawing order and, by entity index, the root each screen entity draws under, borrowed from the UI system for the frame (ecs::UISystem::screenRoots / screenRootOf). Null: the overlay is one list.

Definition at line 246 of file RenderFrame.hpp.

◆ setShadow2DSoftSamples()

void esengine::RenderFrame::setShadow2DSoftSamples ( u32 samples)

How many samples across a light source a soft 2D shadow is drawn with: the quality level's say on the penumbra's smoothness and cost.

Definition at line 2354 of file RenderFrame.cpp.

◆ setShadowBudget()

void esengine::RenderFrame::setShadowBudget ( u32 atlasSize,
u32 cellSize,
u32 cascades )

Definition at line 2323 of file RenderFrame.cpp.

References ES_LOG_WARN, and esengine::MAX_SHADOW_CASCADES.

◆ setShadowDistance()

void esengine::RenderFrame::setShadowDistance ( f32 distance)

Definition at line 2337 of file RenderFrame.cpp.

◆ setSkyEnvironment()

void esengine::RenderFrame::setSkyEnvironment ( resource::EnvironmentHandle environment)
inline

The environment the sky lights the scene with (the Sky Atmosphere's, worked out by the SDK as the sky changes), or an invalid handle for none. An Ambient light that names no environment of its own lights with it.

Definition at line 148 of file RenderFrame.hpp.

◆ setStage()

void esengine::RenderFrame::setStage ( RenderStage stage)
inline

Definition at line 378 of file RenderFrame.hpp.

◆ setTargetPoolIdleBudget()

void esengine::RenderFrame::setTargetPoolIdleBudget ( u64 bytes)
inline

Definition at line 143 of file RenderFrame.hpp.

◆ setTreeSortLayers()

void esengine::RenderFrame::setTreeSortLayers ( u32 mask)
inline

Layers (bits 0..31) that paint in hierarchy order within the layer — see DrawList::setTreeMask.

Definition at line 406 of file RenderFrame.hpp.

◆ setUITreeLayers()

void esengine::RenderFrame::setUITreeLayers ( const std::unordered_map< u32, i32 > * layers)
inline

The layers of what a Canvas holds with no uiOrder, borrowed for the frame.

See also
ecs::UITreeOrder

Definition at line 243 of file RenderFrame.hpp.

◆ setViewId()

void esengine::RenderFrame::setViewId ( u32 view)
inline

Names the view the camera about to be collected looks from, which is what its LOD levels are remembered under.

Reset by begin(), so a camera that names none looks from the shared default view rather than inheriting the last camera's memory.

Definition at line 425 of file RenderFrame.hpp.

◆ setViewLighting()

void esengine::RenderFrame::setViewLighting ( const ViewLighting & lighting)
inline

Definition at line 569 of file RenderFrame.hpp.

◆ setViewSelection()

void esengine::RenderFrame::setViewSelection ( u32 view,
const u32 * ids,
u32 count )
inline

The editor's selection in view, outlined on screen (by Entity::id()); empty clears it.

The selected meshes are drawn once more into a coverage mask, and a screen pass rings what the mask covers, brighter where the selection is in sight than where something stands in front of it. Its cost is the selection's draws and one screen pass, whatever the meshes' detail.

Definition at line 477 of file RenderFrame.hpp.

◆ setViewShading()

void esengine::RenderFrame::setViewShading ( u32 view,
ShadingMode mode )
inline

Shade view's meshes as mode says instead of as authored.

View state, like a LOD preview: what the scene IS is the same everywhere, and what a creator wants to look at is decided by the window they are looking through.

Definition at line 470 of file RenderFrame.hpp.

◆ setViewSkinWeights()

void esengine::RenderFrame::setViewSkinWeights ( u32 view,
Entity entity,
u32 joint )
inline

Colour entity in view by how much joint moves each of its vertices.

View state like the shading beside it; an invalid entity goes back to none.

Definition at line 510 of file RenderFrame.hpp.

◆ setWorldUnitsPerMeter()

void esengine::RenderFrame::setWorldUnitsPerMeter ( f32 units)
inline

How many world units make a metre (the project's setting): what an inverse-square light measures in.

Definition at line 500 of file RenderFrame.hpp.

◆ setYSortLayers()

void esengine::RenderFrame::setYSortLayers ( u32 mask)
inline

Layers (bits 0..31) that sort by world Y within the layer — see DrawList::setYSortMask.

Definition at line 404 of file RenderFrame.hpp.

◆ shadowPlan()

const ShadowPlanReport & esengine::RenderFrame::shadowPlan ( ) const
inline

What each caster asked the shadow atlas for last frame, and what it got.

The answer to "why does this object have no shadow", which the engine could not give at all: tiles handed out were counted, refusals were not.

Definition at line 521 of file RenderFrame.hpp.

◆ shutdown()

void esengine::RenderFrame::shutdown ( )

Definition at line 218 of file RenderFrame.cpp.

References ES_LOG_INFO, and esengine::Invalid.

Referenced by ~RenderFrame().

◆ skeletalPreviewHeight()

u32 esengine::RenderFrame::skeletalPreviewHeight ( SkeletalPreviewId id) const

Definition at line 1393 of file RenderFrame.cpp.

◆ skeletalPreviewPixels()

const u8 * esengine::RenderFrame::skeletalPreviewPixels ( SkeletalPreviewId id) const

Definition at line 1378 of file RenderFrame.cpp.

◆ skeletalPreviewSize()

u32 esengine::RenderFrame::skeletalPreviewSize ( SkeletalPreviewId id) const

Definition at line 1383 of file RenderFrame.cpp.

◆ skeletalPreviewWidth()

u32 esengine::RenderFrame::skeletalPreviewWidth ( SkeletalPreviewId id) const

Definition at line 1388 of file RenderFrame.cpp.

◆ skinCache()

SkinCache * esengine::RenderFrame::skinCache ( )
inline

The skin cache (SkinCache.hpp): what a skinned draw asks for the vertices this frame posed for it.

Definition at line 708 of file RenderFrame.hpp.

◆ snapshotMatchesCapture()

bool esengine::RenderFrame::snapshotMatchesCapture ( ) const
inline

Whether the replayed pass made as many draws as the captured one. False means the scene changed since the capture and the snapshot shows the later frame.

Definition at line 592 of file RenderFrame.hpp.

◆ stagedVertexBytes()

u32 esengine::RenderFrame::stagedVertexBytes ( LayoutId layout) const
inline

The vertex bytes staged for layout since the last begin().

Definition at line 685 of file RenderFrame.hpp.

◆ stats()

const Stats & esengine::RenderFrame::stats ( ) const
inline

Definition at line 400 of file RenderFrame.hpp.

◆ submitRetainedText()

◆ submitScreenOverlay()

void esengine::RenderFrame::submitScreenOverlay ( ecs::Registry & registry)

Collects the screen's renderables. Between this and endScreenOverlay a host may submit its own screen geometry (the SDK's glyph quads), which lands in the same list.

Definition at line 183 of file RenderFrameOverlay.cpp.

References esengine::ecs::Registry::beginChangeRead(), ES_PROFILE_SCOPE, and processMasks().

◆ submitSkeletalBatch()

void esengine::RenderFrame::submitSkeletalBatch ( const f32 * vertices,
i32 vertexCount,
const u16 * indices,
i32 indexCount,
u32 textureId,
i32 blendMode,
const f32 * transform16,
Entity entity,
i32 layer,
f32 depth,
u32 materialId = 0,
bool premultipliedColor = false,
f32 treeAlpha = 1.0f,
u32 cullBit = 0 )

Batch vertices posed by a skeletal runtime, drawn as one entity's geometry.

Serves every such runtime — Spine and DragonBones both arrive here — and links none of them: what crosses is x,y,u,v,r,g,b,a per vertex. materialId is the entity's material, resolved the way a Sprite's is (0 = the batch shader).

A skeleton a Canvas holds paints by its place in the tree, like the controls round it (unless its author named a layer), and one a SCREEN Canvas holds is drawn by the screen overlay and by no camera: each call lands only in the collect it belongs to. treeAlpha is the opacity the UI tree above it multiplies in, and cullBit its Canvas' layer bit, as text carries them (0 = drawn by every camera).

Definition at line 139 of file RenderFrameSubmit.cpp.

References esengine::Batch, esengine::batchEntityVisible(), batchProgram(), esengine::BatchDrawKey::blend, esengine::BatchDrawKey::cull, esengine::BatchDrawKey::depthTest, esengine::BatchDrawKey::depthWrite, esengine::Entity::id(), esengine::BatchDrawKey::materialId, esengine::packColor(), esengine::PremultipliedColor, esengine::pushBatchCommand(), esengine::MaterialRecord::shader, esengine::BatchDrawKey::shaderId, and esengine::Skeletal.

◆ submitSkeletalPreviewBatch()

bool esengine::RenderFrame::submitSkeletalPreviewBatch ( SkeletalPreviewId id,
const f32 * vertices,
i32 vertexCount,
const u16 * indices,
i32 indexCount,
u32 textureId,
i32 blendMode,
const f32 * transform16,
i32 layer,
f32 depth,
u32 materialId,
bool premultipliedColor = false )

◆ submitTextBatch()

void esengine::RenderFrame::submitTextBatch ( const f32 * vertices,
i32 vertexCount,
const u16 * indices,
i32 indexCount,
u32 textureId,
const f32 * transform16,
Entity entity,
i32 layer,
f32 depth,
TextGlyphMode mode,
u32 cullBit = 0 )

Submit a batch of pre-laid-out glyph quads from TS. Same vertex format as submitSpineBatch (x,y,u,v,r,g,b,a per vertex), RenderType::Text, atlas page = textureId.

Definition at line 102 of file RenderFrameSubmit.cpp.

References esengine::Batch, esengine::batchEntityVisible(), esengine::batchGlyphModeBits(), esengine::Normal, esengine::packColor(), esengine::pushBatchCommand(), esengine::Text, and esengine::TEXT_VERTEX_FLOATS.

Referenced by submitRetainedText().

◆ submitTileQuad()

void esengine::RenderFrame::submitTileQuad ( const glm::vec2 & position,
const glm::vec2 & size,
const glm::vec2 & uvOffset,
const glm::vec2 & uvScale,
const glm::vec4 & color,
u32 textureId,
Entity entity,
i32 layer,
f32 depth )

◆ takeTextureWants()

std::string esengine::RenderFrame::takeTextureWants ( )

What each texture was asked for since the last take, as handle:side pairs joined by commas; the record starts again.

Definition at line 1650 of file RenderFrame.cpp.

◆ targetManager()

RenderTargetManager & esengine::RenderFrame::targetManager ( )
inline

Definition at line 384 of file RenderFrame.hpp.

◆ uiTreeHolds()

bool esengine::RenderFrame::uiTreeHolds ( Entity entity) const
inline

Whether a Canvas holds entity with no uiOrder of its own (an emitter, a skeleton, a plain Sprite).

Definition at line 374 of file RenderFrame.hpp.

References esengine::Entity::id().

◆ viewHeightPx()

f32 esengine::RenderFrame::viewHeightPx ( ) const
inline

The pixel height of the view being collected: what a texel is held to.

Definition at line 164 of file RenderFrame.hpp.

◆ viewLighting()

const ViewLighting & esengine::RenderFrame::viewLighting ( ) const
inline

Definition at line 570 of file RenderFrame.hpp.

◆ viewShading()

ShadingMode esengine::RenderFrame::viewShading ( u32 view) const
inline

The mode view asked for; Shaded when it never did.

Definition at line 513 of file RenderFrame.hpp.

◆ visibleToCamera()

bool esengine::RenderFrame::visibleToCamera ( i32 layer,
const glm::vec3 & center,
const glm::vec3 & halfExtents ) const

Whether the camera being rendered right now would draw something of layer at these world bounds.

The frame's OWN frustum and culling mask, both set by begin for the camera in hand — asked rather than reimplemented, so geometry from outside collect is culled by the same fact.

Definition at line 3371 of file RenderFrame.cpp.

References esengine::DrawList::layerBit().

◆ wantTextureSide()

void esengine::RenderFrame::wantTextureSide ( u32 texture,
f32 side )
inline

Note that a view drew a mesh with texture texture (a resource handle) where it needs side texels across for a texel to be about a pixel. The largest asked since the last take is kept.

Definition at line 156 of file RenderFrame.hpp.

Member Data Documentation

◆ STAGE_COUNT

u32 esengine::RenderFrame::STAGE_COUNT = 4
staticconstexpr

Definition at line 701 of file RenderFrame.hpp.


The documentation for this class was generated from the following files: