|
Estella 0.113.0
A fast 2D and 3D game engine powered by WebAssembly and ECS
|
Framebuffer creation parameters. More...
#include <Framebuffer.hpp>
Public Attributes | |
| u32 | width = 1280 |
| Framebuffer width in pixels. | |
| u32 | height = 720 |
| Framebuffer height in pixels. | |
| u32 | samples = 1 |
| Number of samples for MSAA (1 = no multisampling). | |
| bool | depthStencil = true |
| Whether to create depth/stencil attachment. | |
| bool | linearFilter = false |
| Texture filter mode: false=GL_NEAREST, true=GL_LINEAR. | |
| GfxPixelFormat | colorFormat = GfxPixelFormat::RGBA8 |
| Color attachment format. RGBA16F needs GfxDevice::supportsFloatTargets. | |
| bool | gbuffer = false |
| A second colour attachment (RGBA8) drawn in the same pass: the surface's material, for effects that need to know what they are looking at. | |
| bool | storage = false |
| The colour attachment can also be written by a compute shader (GfxDevice::supportsCompute). | |
| bool | mipmaps = false |
Framebuffer creation parameters.
Specifies the dimensions and attachment configuration for an off-screen rendering target.
Definition at line 46 of file Framebuffer.hpp.
| GfxPixelFormat esengine::FramebufferSpec::colorFormat = GfxPixelFormat::RGBA8 |
Color attachment format. RGBA16F needs GfxDevice::supportsFloatTargets.
Definition at line 58 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire(), esengine::PostProcessPipeline::declareCover(), esengine::PostProcessPipeline::declareVelocity(), and esengine::RenderTarget::init().
| bool esengine::FramebufferSpec::depthStencil = true |
Whether to create depth/stencil attachment.
Definition at line 54 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire(), esengine::PostProcessPipeline::declareCover(), esengine::PostProcessPipeline::declareVelocity(), and esengine::RenderTarget::init().
| bool esengine::FramebufferSpec::gbuffer = false |
A second colour attachment (RGBA8) drawn in the same pass: the surface's material, for effects that need to know what they are looking at.
Definition at line 60 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire().
| u32 esengine::FramebufferSpec::height = 720 |
Framebuffer height in pixels.
Definition at line 50 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire(), esengine::PostProcessPipeline::declareCover(), esengine::PostProcessPipeline::declareVelocity(), and esengine::RenderTarget::init().
| bool esengine::FramebufferSpec::linearFilter = false |
Texture filter mode: false=GL_NEAREST, true=GL_LINEAR.
Definition at line 56 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire(), esengine::PostProcessPipeline::declareCover(), esengine::PostProcessPipeline::declareVelocity(), and esengine::RenderTarget::init().
| bool esengine::FramebufferSpec::mipmaps = false |
Definition at line 63 of file Framebuffer.hpp.
| u32 esengine::FramebufferSpec::samples = 1 |
Number of samples for MSAA (1 = no multisampling).
Definition at line 52 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire().
| bool esengine::FramebufferSpec::storage = false |
The colour attachment can also be written by a compute shader (GfxDevice::supportsCompute).
Definition at line 62 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire().
| u32 esengine::FramebufferSpec::width = 1280 |
Framebuffer width in pixels.
Definition at line 48 of file Framebuffer.hpp.
Referenced by esengine::rg::TargetPool::acquire(), esengine::PostProcessPipeline::declareCover(), esengine::PostProcessPipeline::declareVelocity(), esengine::RenderTarget::init(), and esengine::Framebuffer::resize().