![]() |
Raven Engine v0.1
|
Configuration settings for creating or resizing a framebuffer. More...
#include <Framebuffer.h>
Public Attributes | |
| float | Scale = 1.0f |
| Scale relative to target surface. | |
| u32 | Width = 0 |
| Framebuffer width in pixels. | |
| u32 | Height = 0 |
| Framebuffer height in pixels. | |
| Crux::vec4 | ClearColor = {0, 0, 0, 1} |
| Clear color used for color attachments. | |
| float | DepthClearValue = 0.0f |
| Depth clear value. | |
| FramebufferAttachmentSpecification | Attachments |
| Attachment specs. | |
| u8 | Samples = 1 |
| Multisample count. | |
| bool | NoResize = false |
| Prevent automatic resize. | |
| bool | Blend = true |
| Enable blending on framebuffer. | |
| FramebufferBlendMode | BlendMode = FramebufferBlendMode::None |
| Blending mode. | |
| bool | SwapchainTarget = false |
| True if used as swapchain target. | |
| bool | Transfer = false |
| Whether framebuffer participates in transfer operations. | |
| Ref< Image2D > | ExistingImage |
| Existing image to attach instead of creating new. | |
| std::vector< u32 > | ExistingImageLayers |
| Layers of the existing image to attach. | |
| std::map< u32, Ref< Image2D > > | ExistingImages |
| Attachment index to existing image map. | |
| Ref< Framebuffer > | ExistingFramebuffer |
| Existing framebuffer to attach. | |
Configuration settings for creating or resizing a framebuffer.
Contains dimensions, clear colors, sample count, attachments, blending and swapchain flags, and references to existing images/framebuffers.
| FramebufferAttachmentSpecification Raven::FramebufferSpecification::Attachments |
Attachment specs.
| bool Raven::FramebufferSpecification::Blend = true |
Enable blending on framebuffer.
| FramebufferBlendMode Raven::FramebufferSpecification::BlendMode = FramebufferBlendMode::None |
Blending mode.
| Crux::vec4 Raven::FramebufferSpecification::ClearColor = {0, 0, 0, 1} |
Clear color used for color attachments.
| float Raven::FramebufferSpecification::DepthClearValue = 0.0f |
Depth clear value.
| Ref<Framebuffer> Raven::FramebufferSpecification::ExistingFramebuffer |
Existing framebuffer to attach.
Existing image to attach instead of creating new.
| std::vector<u32> Raven::FramebufferSpecification::ExistingImageLayers |
Layers of the existing image to attach.
Attachment index to existing image map.
| u32 Raven::FramebufferSpecification::Height = 0 |
Framebuffer height in pixels.
| bool Raven::FramebufferSpecification::NoResize = false |
Prevent automatic resize.
| u8 Raven::FramebufferSpecification::Samples = 1 |
Multisample count.
| float Raven::FramebufferSpecification::Scale = 1.0f |
Scale relative to target surface.
| bool Raven::FramebufferSpecification::SwapchainTarget = false |
True if used as swapchain target.
| bool Raven::FramebufferSpecification::Transfer = false |
Whether framebuffer participates in transfer operations.
| u32 Raven::FramebufferSpecification::Width = 0 |
Framebuffer width in pixels.