Frame-buffer attachments for off-screen rendering support.
More...
#include <attachment.hpp>
|
| | Attachment (cs237::Application *app, uint32_t wid, uint32_t ht, vk::Format fmt, vk::ImageUsageFlags usage) |
| | Construct a frame-buffer attachment.
|
| |
| | ~Attachment () |
| | destructor
|
| |
| uint32_t | width () const |
| | get the width of the buffer
|
| |
| uint32_t | height () const |
| | get the height of the buffer
|
| |
| vk::Format | format () const |
| | get the pixel format
|
| |
| vk::ImageView | imageView () const |
| | return the image view for the attachment
|
| |
|
| cs237::Application * | _app |
| | the owning application
|
| |
| vk::Image | _img |
| | Vulkan image to hold the attachment.
|
| |
| vk::DeviceMemory | _mem |
| | device memory for the attachment image
|
| |
| vk::ImageView | _view |
| | image view for attachment image
|
| |
| uint32_t | _wid |
| | attachment width
|
| |
| uint32_t | _ht |
| | attachment height
|
| |
| vk::Format | _fmt |
| | the pixel format
|
| |
Frame-buffer attachments for off-screen rendering support.
◆ Attachment()
| cs237::Attachment::Attachment |
( |
cs237::Application * | app, |
|
|
uint32_t | wid, |
|
|
uint32_t | ht, |
|
|
vk::Format | fmt, |
|
|
vk::ImageUsageFlags | usage ) |
Construct a frame-buffer attachment.
- Parameters
-
| app | the owning application |
| wid | the width of the attachment |
| ht | the height of the attachment |
| fmt | the pixel format of the attachment |
| usage | the way that this attachment is going to be used |
◆ ~Attachment()
| cs237::Attachment::~Attachment |
( |
| ) |
|
◆ format()
| vk::Format cs237::Attachment::format |
( |
| ) |
const |
|
inline |
◆ height()
| uint32_t cs237::Attachment::height |
( |
| ) |
const |
|
inline |
get the height of the buffer
◆ imageView()
| vk::ImageView cs237::Attachment::imageView |
( |
| ) |
const |
|
inline |
return the image view for the attachment
◆ width()
| uint32_t cs237::Attachment::width |
( |
| ) |
const |
|
inline |
get the width of the buffer
◆ _app
◆ _fmt
| vk::Format cs237::Attachment::_fmt |
|
protected |
◆ _ht
| uint32_t cs237::Attachment::_ht |
|
protected |
◆ _img
| vk::Image cs237::Attachment::_img |
|
protected |
Vulkan image to hold the attachment.
◆ _mem
| vk::DeviceMemory cs237::Attachment::_mem |
|
protected |
device memory for the attachment image
◆ _view
| vk::ImageView cs237::Attachment::_view |
|
protected |
image view for attachment image
◆ _wid
| uint32_t cs237::Attachment::_wid |
|
protected |
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2024/cs237-upstream/cs237-library/include/cs237/attachment.hpp