Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::FramebufferTextureSpecification Struct Reference

Describes a single texture attachment in a framebuffer. More...

#include <Framebuffer.h>

Public Member Functions

 FramebufferTextureSpecification ()=default
 FramebufferTextureSpecification (ImageFormat format)

Public Attributes

ImageFormat Format = ImageFormat::RGBA8
 Pixel format of the attachment.
bool Blend = true
 Whether blending is enabled.
FramebufferBlendMode BlendMode = FramebufferBlendMode::SrcAlphaOneMinusSrc
 Blend mode.
AttachmentLoadOp LoadOp = AttachmentLoadOp::Inherit
 Load operation for attachment.

Detailed Description

Describes a single texture attachment in a framebuffer.

Includes format, blending options, and load operation.

Constructor & Destructor Documentation

◆ FramebufferTextureSpecification() [1/2]

Raven::FramebufferTextureSpecification::FramebufferTextureSpecification ( )
default

◆ FramebufferTextureSpecification() [2/2]

Raven::FramebufferTextureSpecification::FramebufferTextureSpecification ( ImageFormat format)
inline
Parameters
formatThe image format of the attachment (default: RGBA8).

Member Data Documentation

◆ Blend

bool Raven::FramebufferTextureSpecification::Blend = true

Whether blending is enabled.

◆ BlendMode

FramebufferBlendMode Raven::FramebufferTextureSpecification::BlendMode = FramebufferBlendMode::SrcAlphaOneMinusSrc

Blend mode.

◆ Format

ImageFormat Raven::FramebufferTextureSpecification::Format = ImageFormat::RGBA8

Pixel format of the attachment.

◆ LoadOp

AttachmentLoadOp Raven::FramebufferTextureSpecification::LoadOp = AttachmentLoadOp::Inherit

Load operation for attachment.


The documentation for this struct was generated from the following file: