Talvos  0.1
SPIR-V interpreter and dynamic analysis framework
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
Public Member Functions | Private Attributes | List of all members
talvos::Framebuffer Class Reference

This class represents a framebuffer that can be used for rendering. More...

#include <talvos/RenderPass.h>

Public Member Functions

 Framebuffer (Device &Dev, uint32_t Width, uint32_t Height, uint32_t NumLayers, const std::vector< ImageView * > &Attachments)
 Create a framebuffer. More...
 
const std::vector< ImageView * > & getAttachments () const
 Returns the list of attachments backing this framebuffer. More...
 
DevicegetDevice () const
 Returns the device that this framebuffer is associated with. More...
 
uint32_t getHeight () const
 Returns the height of this framebuffer in pixels. More...
 
uint32_t getNumLayers () const
 Returns the number of layers in this framebuffer. More...
 
uint32_t getWidth () const
 Returns the width of this framebuffer in pixels. More...
 

Private Attributes

DeviceDev
 The device this framebuffer belongs to. More...
 
uint32_t Width
 The width of the framebuffer in pixels. More...
 
uint32_t Height
 The height of the framebuffer in pixels. More...
 
uint32_t NumLayers
 The numbers of layers in the framebuffer. More...
 
std::vector< ImageView * > Attachments
 The framebuffer attachments. More...
 

Detailed Description

This class represents a framebuffer that can be used for rendering.

Definition at line 22 of file RenderPass.h.

Constructor & Destructor Documentation

talvos::Framebuffer::Framebuffer ( Device Dev,
uint32_t  Width,
uint32_t  Height,
uint32_t  NumLayers,
const std::vector< ImageView * > &  Attachments 
)
inline

Create a framebuffer.

Definition at line 26 of file RenderPass.h.

Member Function Documentation

const std::vector<ImageView *>& talvos::Framebuffer::getAttachments ( ) const
inline

Returns the list of attachments backing this framebuffer.

Definition at line 32 of file RenderPass.h.

Device& talvos::Framebuffer::getDevice ( ) const
inline

Returns the device that this framebuffer is associated with.

Definition at line 35 of file RenderPass.h.

uint32_t talvos::Framebuffer::getHeight ( ) const
inline

Returns the height of this framebuffer in pixels.

Definition at line 38 of file RenderPass.h.

uint32_t talvos::Framebuffer::getNumLayers ( ) const
inline

Returns the number of layers in this framebuffer.

Definition at line 41 of file RenderPass.h.

uint32_t talvos::Framebuffer::getWidth ( ) const
inline

Returns the width of this framebuffer in pixels.

Definition at line 44 of file RenderPass.h.

Member Data Documentation

std::vector<ImageView *> talvos::Framebuffer::Attachments
private

The framebuffer attachments.

Definition at line 55 of file RenderPass.h.

Device& talvos::Framebuffer::Dev
private

The device this framebuffer belongs to.

Definition at line 47 of file RenderPass.h.

uint32_t talvos::Framebuffer::Height
private

The height of the framebuffer in pixels.

Definition at line 50 of file RenderPass.h.

uint32_t talvos::Framebuffer::NumLayers
private

The numbers of layers in the framebuffer.

Definition at line 52 of file RenderPass.h.

uint32_t talvos::Framebuffer::Width
private

The width of the framebuffer in pixels.

Definition at line 49 of file RenderPass.h.