Berserk
Public Member Functions | Protected Attributes | List of all members
RHIFramebuffer Class Reference

Collection of render targets for drawing. More...

#include <RHIFramebuffer.hpp>

Inheritance diagram for RHIFramebuffer:
Inheritance graph
[legend]
Collaboration diagram for RHIFramebuffer:
Collaboration graph
[legend]

Public Member Functions

BRK_API ~RHIFramebuffer () override=default
 
uint32 GetWidth () const
 
uint32 GetHeight () const
 
size_t GetColorAttachmentsCount () const
 
const StringNameGetName () const
 
const RHIFramebufferDescGetDesc () const
 
- Public Member Functions inherited from RHIResource
BRK_API ~RHIResource () override=default
 
- Public Member Functions inherited from RefCnt
virtual ~RefCnt ()
 
bool IsUnique () const
 
std::int32_t GetRefs () const
 
std::int32_t AddRef () const
 
std::int32_t RelRef () const
 

Protected Attributes

RHIFramebufferDesc mDesc
 

Additional Inherited Members

- Protected Member Functions inherited from RHIResource
void Destroy () const override
 

Detailed Description

Collection of render targets for drawing.

Constructor & Destructor Documentation

◆ ~RHIFramebuffer()

BRK_API RHIFramebuffer::~RHIFramebuffer ( )
overridedefault

Member Function Documentation

◆ GetColorAttachmentsCount()

size_t RHIFramebuffer::GetColorAttachmentsCount ( ) const
inline
Returns
Number of color attachments in this framebuffer

◆ GetDesc()

const RHIFramebufferDesc& RHIFramebuffer::GetDesc ( ) const
inline
Returns
Render target desc

◆ GetHeight()

uint32 RHIFramebuffer::GetHeight ( ) const
inline
Returns
Framebuffer height in pixels

◆ GetName()

const StringName& RHIFramebuffer::GetName ( ) const
inline
Returns
Framebuffer debug name (displayed in the vk debugger)

◆ GetWidth()

uint32 RHIFramebuffer::GetWidth ( ) const
inline
Returns
Framebuffer width in pixels

Member Data Documentation

◆ mDesc

RHIFramebufferDesc RHIFramebuffer::mDesc
protected

Render target desc


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