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

One render pass: a target, which attachments to clear on entry, and the clear values — full load-op semantics, no sticky device clear state. More...

#include <GfxEnums.hpp>

Public Attributes

FramebufferHandle target = FramebufferHandle::Default
bool clearColor = false
bool clearDepth = false
bool clearStencil = false
f32 clearColorValue [4] = {0.0f, 0.0f, 0.0f, 1.0f}
i32 clearStencilValue = 0
i32 clearX = 0
i32 clearY = 0
 Clear region origin (pixels).
u32 clearW = 0
u32 clearH = 0
 Clear region size; 0 = the whole target.
bool discardMultisampled = false
bool discardDepth = false

Detailed Description

One render pass: a target, which attachments to clear on entry, and the clear values — full load-op semantics, no sticky device clear state.

Clears ignore write masks a prior pipeline left restrictive (the masks are forced open). An optional clear region scopes the clear to a viewport rectangle (clearW == 0 = full target): the multi-camera flow clears each camera's region on the shared default target. A WebGPU backend maps the full-target case to a real load-op and emulates the scoped case (first-pass load-op or a scissored clear-quad).

Definition at line 485 of file GfxEnums.hpp.

Member Data Documentation

◆ clearColor

bool esengine::RenderPassDesc::clearColor = false

◆ clearColorValue

f32 esengine::RenderPassDesc::clearColorValue[4] = {0.0f, 0.0f, 0.0f, 1.0f}

◆ clearDepth

bool esengine::RenderPassDesc::clearDepth = false

◆ clearH

u32 esengine::RenderPassDesc::clearH = 0

Clear region size; 0 = the whole target.

Definition at line 493 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().

◆ clearStencil

bool esengine::RenderPassDesc::clearStencil = false

Definition at line 489 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass().

◆ clearStencilValue

i32 esengine::RenderPassDesc::clearStencilValue = 0

Definition at line 491 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass().

◆ clearW

u32 esengine::RenderPassDesc::clearW = 0

◆ clearX

i32 esengine::RenderPassDesc::clearX = 0

◆ clearY

i32 esengine::RenderPassDesc::clearY = 0

Clear region origin (pixels).

Definition at line 492 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().

◆ discardDepth

bool esengine::RenderPassDesc::discardDepth = false

The pass's depth attachment was there to test against and nothing reads it afterwards (a shadow map keeps its depth in colour).

Definition at line 501 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().

◆ discardMultisampled

bool esengine::RenderPassDesc::discardMultisampled = false

What this pass leaves in the target's multisampled attachments is not drawn on or read again once it has been resolved: nothing later continues on this target. A tile-based GPU keeps a pass's samples in memory on the chip and only writes them out if asked to; this says it need not, which is most of the memory traffic of a multisampled frame on a phone. Ignored where the target is not multisampled.

Definition at line 499 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().

◆ target

FramebufferHandle esengine::RenderPassDesc::target = FramebufferHandle::Default

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