Depth-buffer attachment for off-screen rendering.
More...
#include <attachment.hpp>
|
| | DepthAttachment (cs237::Application *app, uint32_t wid, uint32_t ht) |
| | Construct a depth-buffer attachment using the "best" format for a depth buffer.
|
| |
| | ~DepthAttachment () |
| | destructor
|
| |
| | 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
|
| |
Depth-buffer attachment for off-screen rendering.
◆ DepthAttachment()
| cs237::DepthAttachment::DepthAttachment |
( |
cs237::Application * | app, |
|
|
uint32_t | wid, |
|
|
uint32_t | ht ) |
|
inline |
Construct a depth-buffer attachment using the "best" format for a depth buffer.
- Parameters
-
| app | the owning application |
| wid | the width of the attachment |
| ht | the height of the attachment |
◆ ~DepthAttachment()
| cs237::DepthAttachment::~DepthAttachment |
( |
| ) |
|
|
inline |
The documentation for this class was generated from the following file:
- /Users/jhr/Classes/23700/f2024/cs237-upstream/cs237-library/include/cs237/attachment.hpp