PixelBullet  0.0.1
A C++ game engine
Loading...
Searching...
No Matches
PixelBullet::Attachment Class Reference

Class that represents an attachment in a renderpass. More...

#include <RenderStage.hpp>

Public Types

enum class  Type { Image , Depth , Swapchain }
 

Public Member Functions

 Attachment (uint32_t binding, std::string name, Type type, bool multisampled=false, VkFormat format=VK_FORMAT_R8G8B8A8_UNORM, const Color &clearColour=Color::Black)
 
uint32_t GetBinding () const
 
const std::string & GetName () const
 
Type GetType () const
 
bool IsMultisampled () const
 
VkFormat GetFormat () const
 
const ColorGetClearColour () const
 

Detailed Description

Class that represents an attachment in a renderpass.

Constructor & Destructor Documentation

◆ Attachment()

PixelBullet::Attachment::Attachment ( uint32_t binding,
std::string name,
Type type,
bool multisampled = false,
VkFormat format = VK_FORMAT_R8G8B8A8_UNORM,
const Color & clearColour = Color::Black )
inline

Creates a new attachment that represents a object in the render pipeline.

Parameters
bindingThe index the attachment is bound to in the renderpass.
nameThe unique name given to the object for all renderpasses.
typeThe attachment type this represents.
multisampledIf this attachment is multisampled.
formatThe format that will be created (only applies to type ATTACHMENT_IMAGE).
clearColourThe colour to clear to before rendering to it.

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