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

#include <TargetPool.hpp>

Public Attributes

u32 width = 0
u32 height = 0
GfxPixelFormat format = GfxPixelFormat::RGBA8
bool linearFilter = true
bool depthStencil = false
u32 samples = 1
bool gbuffer = false
 A second colour attachment for the surface's material (see FramebufferSpec::gbuffer).
bool storage = false
 Written by a compute shader as a storage texture, and sampled after.

Detailed Description

What a borrower asks for. Sizes are pixels — a scale is the caller's to resolve.

Definition at line 49 of file TargetPool.hpp.

Member Data Documentation

◆ depthStencil

bool esengine::rg::TargetShape::depthStencil = false

Definition at line 54 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ format

GfxPixelFormat esengine::rg::TargetShape::format = GfxPixelFormat::RGBA8

Definition at line 52 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ gbuffer

bool esengine::rg::TargetShape::gbuffer = false

A second colour attachment for the surface's material (see FramebufferSpec::gbuffer).

Definition at line 59 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ height

u32 esengine::rg::TargetShape::height = 0

◆ linearFilter

bool esengine::rg::TargetShape::linearFilter = true

Definition at line 53 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ samples

u32 esengine::rg::TargetShape::samples = 1

Samples the target is DRAWN into with; what it hands back to be sampled is always single-sample, because the target resolves itself.

Definition at line 57 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ storage

bool esengine::rg::TargetShape::storage = false

Written by a compute shader as a storage texture, and sampled after.

Definition at line 61 of file TargetPool.hpp.

Referenced by esengine::rg::TargetPool::acquire().

◆ width

u32 esengine::rg::TargetShape::width = 0

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