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

Attachments of an offscreen render target. The attach point of depthStencil follows its texture's pixel format. More...

#include <GfxEnums.hpp>

Public Attributes

TextureHandle color0 = TextureHandle::Invalid
TextureHandle depthStencil = TextureHandle::Invalid
TextureHandle resolveColor0 = TextureHandle::Invalid
TextureHandle resolveDepthStencil = TextureHandle::Invalid
TextureHandle color1 = TextureHandle::Invalid
TextureHandle resolveColor1 = TextureHandle::Invalid
 Its single-sample twin, when the target is multisampled.
TextureHandle color2 = TextureHandle::Invalid
TextureHandle resolveColor2 = TextureHandle::Invalid
u32 width = 0
u32 height = 0

Detailed Description

Attachments of an offscreen render target. The attach point of depthStencil follows its texture's pixel format.

Definition at line 451 of file GfxEnums.hpp.

Member Data Documentation

◆ color0

TextureHandle esengine::FramebufferDesc::color0 = TextureHandle::Invalid

◆ color1

TextureHandle esengine::FramebufferDesc::color1 = TextureHandle::Invalid

A second colour attachment, drawn in the same pass as the first: what the surface IS rather than how it looks (normal, roughness, metalness) — see PipelineDesc::gbuffer. Invalid for a target that carries none, which is nearly all of them.

Definition at line 462 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::backendCreateFramebuffer(), esengine::GLDevice::beginRenderPass(), and esengine::GfxDevice::createFramebuffer().

◆ color2

TextureHandle esengine::FramebufferDesc::color2 = TextureHandle::Invalid

A third, beside the second whenever it is there: the surface's diffuse colour, for light an effect adds after the frame (bounce light), which must be coloured by what it lands on. See PipelineDesc::albedo.

Definition at line 467 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::backendCreateFramebuffer(), esengine::GLDevice::beginRenderPass(), and esengine::GfxDevice::createFramebuffer().

◆ depthStencil

TextureHandle esengine::FramebufferDesc::depthStencil = TextureHandle::Invalid

◆ height

u32 esengine::FramebufferDesc::height = 0

Definition at line 472 of file GfxEnums.hpp.

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

◆ resolveColor0

TextureHandle esengine::FramebufferDesc::resolveColor0 = TextureHandle::Invalid

Single-sample attachments a multisampled target resolves into. Set them and the device resolves whenever the target is left, so nothing above the RHI learns the target was multisampled.

Definition at line 457 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::backendCreateFramebuffer(), and esengine::GfxDevice::createFramebuffer().

◆ resolveColor1

TextureHandle esengine::FramebufferDesc::resolveColor1 = TextureHandle::Invalid

Its single-sample twin, when the target is multisampled.

Definition at line 464 of file GfxEnums.hpp.

Referenced by esengine::GLDevice::backendCreateFramebuffer(), and esengine::GfxDevice::createFramebuffer().

◆ resolveColor2

TextureHandle esengine::FramebufferDesc::resolveColor2 = TextureHandle::Invalid

◆ resolveDepthStencil

TextureHandle esengine::FramebufferDesc::resolveDepthStencil = TextureHandle::Invalid

◆ width

u32 esengine::FramebufferDesc::width = 0

Pixel size, required only when resolving: a blit needs a rectangle and an attachment handle carries no dimensions.

Definition at line 471 of file GfxEnums.hpp.

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


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