|
|
PixelBullet
0.0.1
A C++ game engine
|
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 Color & | GetClearColour () const |
Class that represents an attachment in a renderpass.
|
inline |
Creates a new attachment that represents a object in the render pipeline.
| binding | The index the attachment is bound to in the renderpass. |
| name | The unique name given to the object for all renderpasses. |
| type | The attachment type this represents. |
| multisampled | If this attachment is multisampled. |
| format | The format that will be created (only applies to type ATTACHMENT_IMAGE). |
| clearColour | The colour to clear to before rendering to it. |