|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
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 |
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.
| bool esengine::RenderPassDesc::clearColor = false |
Definition at line 487 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().
| f32 esengine::RenderPassDesc::clearColorValue[4] = {0.0f, 0.0f, 0.0f, 1.0f} |
Definition at line 490 of file GfxEnums.hpp.
Referenced by esengine::PostProcessPipeline::begin(), esengine::GLDevice::beginRenderPass(), esengine::rg::RenderGraph::execute(), and esengine::webgpu::toWGPUClearColor().
| bool esengine::RenderPassDesc::clearDepth = false |
Definition at line 488 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().
| 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().
| bool esengine::RenderPassDesc::clearStencil = false |
Definition at line 489 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass().
| i32 esengine::RenderPassDesc::clearStencilValue = 0 |
Definition at line 491 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass().
| u32 esengine::RenderPassDesc::clearW = 0 |
Definition at line 493 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().
| i32 esengine::RenderPassDesc::clearX = 0 |
Definition at line 492 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().
| 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().
| 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().
| 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().
| FramebufferHandle esengine::RenderPassDesc::target = FramebufferHandle::Default |
Definition at line 486 of file GfxEnums.hpp.
Referenced by esengine::GLDevice::beginRenderPass(), and esengine::rg::RenderGraph::execute().