|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
#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 ®istry, i32 vpX, i32 vpY, i32 vpW, i32 vpH) |
| void | processMasks (ecs::Registry ®istry, 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/. | |
| void | submitScreenOverlay (ecs::Registry ®istry) |
| 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 ®istry, 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 ®istry, 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/ 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 ®istry, 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 ®istry, 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 ®istry, 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 ¢er, 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 |
Definition at line 95 of file RenderFrame.hpp.
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.
| 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=().
| esengine::RenderFrame::~RenderFrame | ( | ) |
Definition at line 162 of file RenderFrame.cpp.
References shutdown().
|
delete |
References RenderFrame().
| void esengine::RenderFrame::addPlugin | ( | std::unique_ptr< RenderTypePlugin > | plugin | ) |
Definition at line 1467 of file RenderFrame.cpp.
| u32 esengine::RenderFrame::batchProgram | ( | BatchVariant | variant | ) |
Definition at line 3871 of file RenderFrame.cpp.
References esengine::Shader::getProgramId().
Referenced by displayProgram(), drawOverScreen(), and submitSkeletalBatch().
| u32 esengine::RenderFrame::batchProgram | ( | const std::vector< std::string > & | features | ) |
Definition at line 3878 of file RenderFrame.cpp.
References esengine::Shader::getProgramId().
| void esengine::RenderFrame::begin | ( | const glm::mat4 & | view_projection, |
| RenderTargetManager::Handle | target, | ||
| const PassClear & | clear ) |
Definition at line 493 of file RenderFrame.cpp.
References esengine::RenderFrame::PassClear::h, esengine::rg::kNoResource, esengine::Scene, esengine::Transparent, esengine::RenderFrame::PassClear::w, esengine::RenderFrame::PassClear::x, and esengine::RenderFrame::PassClear::y.
| void esengine::RenderFrame::begin | ( | const glm::mat4 & | view_projection, |
| RenderTargetManager::Handle | target = 0 ) |
| 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.
| 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/ surfacevpW/ thevpH of
Definition at line 58 of file RenderFrameOverlay.cpp.
| void esengine::RenderFrame::cancelMaterialBakesFor | ( | u32 | target | ) |
Definition at line 2875 of file RenderFrame.cpp.
|
inline |
Definition at line 533 of file RenderFrame.hpp.
| void esengine::RenderFrame::clearAllClipRects | ( | ) |
Definition at line 1443 of file RenderFrame.cpp.
Referenced by processMasks().
| void esengine::RenderFrame::clearAllStencilMasks | ( | ) |
Definition at line 1455 of file RenderFrame.cpp.
Referenced by processMasks().
|
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().
| void esengine::RenderFrame::collectAll | ( | ecs::Registry & | registry, |
| bool | sceneGBuffer = true ) |
Definition at line 3424 of file RenderFrame.cpp.
References esengine::computeCameraView(), esengine::ctx(), esengine::RenderCollectContext::culled, esengine::DirectLighting, ES_PROFILE_SCOPE, esengine::IndirectLighting, esengine::RenderCollectContext::lightsSpared, esengine::RenderCollectContext::lod, esengine::RenderCollectContext::occluded, esengine::RenderCollectContext::occlusion, esengine::renderOrigin(), esengine::RenderCollectContext::screen_ui, esengine::RenderCollectContext::shading, submitRetainedText(), esengine::RenderCollectContext::ui_tree_layers, and esengine::RenderCollectContext::weights.
| RenderFrame::SkeletalPreviewId esengine::RenderFrame::createSkeletalPreview | ( | u32 | w, |
| u32 | h ) |
A preview of w× or 0 when one cannot be made. h,
Definition at line 1316 of file RenderFrame.cpp.
|
inline |
Definition at line 413 of file RenderFrame.hpp.
| 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.
Definition at line 3883 of file RenderFrame.cpp.
References batchProgram(), and esengine::Shader::getProgramId().
Referenced by endScreenOverlay().
| 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/ view-projection it was collected with: an editor's handles, which the scene and its UI must never cover. Nothing collected draws nothing. vpY/ thevpW/ throughvpH,
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.
| void esengine::RenderFrame::end | ( | ) |
Definition at line 816 of file RenderFrame.cpp.
References esengine::DrawList::All, esengine::rg::PassTimer::beginFrame(), esengine::DrawList::BlendedOnly, esengine::rg::PassDesc::clear, esengine::rg::PassDesc::clearColor, esengine::rg::PassDesc::clearDepth, esengine::rg::PassDesc::dependencies, ES_PROFILE_COUNTER, ES_PROFILE_SCOPE, esengine::rg::PassDesc::execute, flush(), esengine::FrameProfiler::get(), esengine::Invalid, esengine::RenderTargetManager::INVALID_HANDLE, esengine::rg::kNoResource, esengine::makeUnique(), esengine::rg::PassDesc::name, esengine::DrawList::OpaqueOnly, esengine::rg::PassDesc::reads, esengine::DrawList::SceneColorOnly, esengine::DrawList::ScreenColorOnly, esengine::toClipDepthRange(), esengine::rg::PassDesc::viewportH, esengine::rg::PassDesc::viewportW, esengine::rg::PassDesc::viewportX, esengine::rg::PassDesc::viewportY, esengine::DrawList::WithoutSceneColor, and esengine::rg::PassDesc::write.
| 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().
| void esengine::RenderFrame::endScreenOverlay | ( | RenderTargetManager::Handle | target | ) |
Definition at line 321 of file RenderFrameOverlay.cpp.
References RenderFrame(), esengine::rg::PassDesc::clear, esengine::rg::PassDesc::clearColor, esengine::rg::PassDesc::clearDepth, esengine::hash::combineWords(), esengine::Default, esengine::rg::TargetDesc::depthStencil, displayProgram(), ES_LOG_WARN, ES_PROFILE_COUNTER, ES_PROFILE_SCOPE, esengine::rg::PassDesc::execute, esengine::Invalid, esengine::RenderTargetManager::INVALID_HANDLE, esengine::hash::kFnv64Offset, esengine::rg::kNoResource, esengine::LAYOUT_COUNT, esengine::rg::PassDesc::name, esengine::Overlay, esengine::rg::PassDesc::viewportH, esengine::rg::PassDesc::viewportW, esengine::rg::PassDesc::viewportX, esengine::rg::PassDesc::viewportY, and esengine::rg::PassDesc::write.
| void esengine::RenderFrame::flush | ( | ) |
Definition at line 664 of file RenderFrame.cpp.
References ES_PROFILE_SCOPE, and esengine::rg::kNoResource.
Referenced by end().
|
inline |
Definition at line 401 of file RenderFrame.hpp.
|
inline |
Definition at line 617 of file RenderFrame.hpp.
|
inline |
Definition at line 614 of file RenderFrame.hpp.
|
inline |
Definition at line 615 of file RenderFrame.hpp.
|
inline |
Definition at line 616 of file RenderFrame.hpp.
|
inline |
Definition at line 596 of file RenderFrame.hpp.
|
inline |
Definition at line 593 of file RenderFrame.hpp.
|
inline |
Definition at line 594 of file RenderFrame.hpp.
|
inline |
Definition at line 595 of file RenderFrame.hpp.
|
inline |
Definition at line 379 of file RenderFrame.hpp.
|
inline |
Definition at line 176 of file RenderFrame.hpp.
References esengine::Entity::raw.
|
inline |
Whether begin() opened a frame; false when it refused one for a lost device.
Definition at line 683 of file RenderFrame.hpp.
Definition at line 166 of file RenderFrame.cpp.
References esengine::resource::ShaderParser::linearColorSpace(), esengine::makeUnique(), and esengine::Transparent.
| 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().
|
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.
|
inline |
Definition at line 150 of file RenderFrame.hpp.
|
inline |
Definition at line 582 of file RenderFrame.hpp.
|
inline |
Definition at line 141 of file RenderFrame.hpp.
|
inline |
Definition at line 443 of file RenderFrame.hpp.
|
inline |
How many (view, entity) pairs are held up for inspection.
Definition at line 461 of file RenderFrame.hpp.
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.
|
delete |
References RenderFrame().
|
inline |
Definition at line 183 of file RenderFrame.hpp.
Definition at line 198 of file RenderFramePlanar.cpp.
References esengine::RGBA16F.
Definition at line 180 of file RenderFrame.hpp.
| 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.
| 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.
| 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.
| 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.
| 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().
| 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().
|
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.
|
inline |
Definition at line 139 of file RenderFrame.hpp.
| 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.
| 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().
| bool esengine::RenderFrame::projectMaterialBake | ( | u32 | ticket, |
| u32 | material, | ||
| u32 | target, | ||
| u32 | instances ) |
Definition at line 2890 of file RenderFrame.cpp.
| 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.
Definition at line 2862 of file RenderFrame.cpp.
| 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.
| void esengine::RenderFrame::renderToTarget | ( | ecs::Registry & | registry, |
| const glm::mat4 & | viewProjection, | ||
| u32 | w, | ||
| u32 | h ) |
Render registry once to an offscreen w× with h targetviewProjection 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.
| 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.
| 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.
Definition at line 275 of file RenderFrame.cpp.
|
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.
|
inline |
Definition at line 263 of file RenderFrame.hpp.
|
inline |
Whether the frame found a scene environment it could draw as the background.
Definition at line 572 of file RenderFrame.hpp.
|
inline |
Whether the overlay is open — what routes a host's submissions.
Definition at line 285 of file RenderFrame.hpp.
| 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().
|
inline |
Layers the camera about to be collected renders — see DrawList::setCullingMask.
Definition at line 416 of file RenderFrame.hpp.
|
inline |
Definition at line 407 of file RenderFrame.hpp.
|
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.
Definition at line 1439 of file RenderFrame.cpp.
| void esengine::RenderFrame::setEntityStencilMask | ( | u32 | entity, |
| i32 | refValue, | ||
| bool | hierarchical = false ) |
Definition at line 1447 of file RenderFrame.cpp.
| void esengine::RenderFrame::setEntityStencilTest | ( | u32 | entity, |
| i32 | refValue, | ||
| bool | hierarchical = false ) |
Definition at line 1451 of file RenderFrame.cpp.
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.
| void esengine::RenderFrame::setLightingDirect | ( | bool | on | ) |
Definition at line 2341 of file RenderFrame.cpp.
|
inline |
Definition at line 140 of file RenderFrame.hpp.
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.
|
inline |
Definition at line 142 of file RenderFrame.hpp.
| void esengine::RenderFrame::setPlanarQuality | ( | f32 | scale, |
| u32 | maxSize, | ||
| f32 | updatesPerSecond, | ||
| bool | capAuthored ) |
Definition at line 13 of file RenderFramePlanar.cpp.
|
inline |
Definition at line 209 of file RenderFrame.hpp.
|
inline |
Geometry collected for this camera and drawn after its scene.
Definition at line 187 of file RenderFrame.hpp.
|
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.
| 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().
|
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.
| bool esengine::RenderFrame::setQualityValue | ( | const std::string & | name, |
| f32 | value ) |
Definition at line 2350 of file RenderFrame.cpp.
|
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.
|
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.
| void esengine::RenderFrame::setScreenOverlayEffect | ( | u32 | material | ) |
Definition at line 315 of file RenderFrameOverlay.cpp.
|
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.
| 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.
Definition at line 2323 of file RenderFrame.cpp.
References ES_LOG_WARN, and esengine::MAX_SHADOW_CASCADES.
| void esengine::RenderFrame::setShadowDistance | ( | f32 | distance | ) |
Definition at line 2337 of file RenderFrame.cpp.
|
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.
|
inline |
Definition at line 378 of file RenderFrame.hpp.
|
inline |
Definition at line 143 of file RenderFrame.hpp.
|
inline |
Layers (bits 0..31) that paint in hierarchy order within the layer — see DrawList::setTreeMask.
Definition at line 406 of file RenderFrame.hpp.
The layers of what a Canvas holds with no uiOrder, borrowed for the frame.
Definition at line 243 of file RenderFrame.hpp.
|
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.
|
inline |
Definition at line 569 of file RenderFrame.hpp.
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.
|
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.
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.
|
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.
|
inline |
Layers (bits 0..31) that sort by world Y within the layer — see DrawList::setYSortMask.
Definition at line 404 of file RenderFrame.hpp.
|
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.
| void esengine::RenderFrame::shutdown | ( | ) |
Definition at line 218 of file RenderFrame.cpp.
References ES_LOG_INFO, and esengine::Invalid.
Referenced by ~RenderFrame().
| u32 esengine::RenderFrame::skeletalPreviewHeight | ( | SkeletalPreviewId | id | ) | const |
Definition at line 1393 of file RenderFrame.cpp.
| const u8 * esengine::RenderFrame::skeletalPreviewPixels | ( | SkeletalPreviewId | id | ) | const |
Definition at line 1378 of file RenderFrame.cpp.
| u32 esengine::RenderFrame::skeletalPreviewSize | ( | SkeletalPreviewId | id | ) | const |
Definition at line 1383 of file RenderFrame.cpp.
| u32 esengine::RenderFrame::skeletalPreviewWidth | ( | SkeletalPreviewId | id | ) | const |
Definition at line 1388 of file RenderFrame.cpp.
|
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.
|
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.
The vertex bytes staged for layout since the last begin().
Definition at line 685 of file RenderFrame.hpp.
|
inline |
Definition at line 400 of file RenderFrame.hpp.
| void esengine::RenderFrame::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).
Definition at line 51 of file RenderFrameSubmit.cpp.
References esengine::All, esengine::ecs::copyFlatRenderMatrix(), esengine::Entity::fromRaw(), esengine::RetainedTextBatch::indices, esengine::RetainedTextClip::indices, esengine::RetainedTextBatch::mode, esengine::None, esengine::ecs::GroupOpacityLookup::of(), esengine::RetainedTextBatch::pageId, esengine::retainedTextClip(), esengine::retainedTextClipPlanes(), submitTextBatch(), esengine::TEXT_VERTEX_FLOATS, esengine::ecs::Registry::tryGet(), esengine::UIElementPlugin::UI_BASE_LAYER, esengine::ecs::Registry::valid(), esengine::RetainedTextBatch::vertices, and esengine::RetainedTextClip::vertices.
Referenced by collectAll().
| 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().
| 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.
| 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 ) |
Hand one batch to id, which COPIES it: the caller may reuse its buffers the moment this returns. False for an id that is not live — a stale handle is a mistake worth hearing about, not a no-op.
Definition at line 1331 of file RenderFrame.cpp.
References esengine::RenderFrame::PendingSkeletalBatch::blendMode, esengine::RenderFrame::PendingSkeletalBatch::depth, esengine::RenderFrame::PendingSkeletalBatch::entity, esengine::RenderFrame::PendingSkeletalBatch::indices, esengine::RenderFrame::PendingSkeletalBatch::layer, esengine::RenderFrame::PendingSkeletalBatch::materialId, esengine::RenderFrame::PendingSkeletalBatch::premultipliedColor, esengine::RenderFrame::PendingSkeletalBatch::textureId, esengine::RenderFrame::PendingSkeletalBatch::transform, and esengine::RenderFrame::PendingSkeletalBatch::vertices.
| 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().
| 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 ) |
Definition at line 22 of file RenderFrameSubmit.cpp.
References esengine::appendQuad(), esengine::Normal, esengine::packColor(), and esengine::Sprite.
| 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.
|
inline |
Definition at line 384 of file RenderFrame.hpp.
|
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().
|
inline |
The pixel height of the view being collected: what a texel is held to.
Definition at line 164 of file RenderFrame.hpp.
|
inline |
Definition at line 570 of file RenderFrame.hpp.
|
inline |
The mode view asked for; Shaded when it never did.
Definition at line 513 of file RenderFrame.hpp.
| 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().
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.
|
staticconstexpr |
Definition at line 701 of file RenderFrame.hpp.