the collected information about the swap-chain for a window
More...
#include <window.hpp>
|
| | SwapChain (vk::Device dev) |
| int | size () const |
| | return the number of buffers in the swap chain
|
| bool | hasDepthBuffer () const |
| | does the swap-chain support a depth buffer?
|
| bool | hasStencilBuffer () const |
| | does the swap-chain support a stencil buffer?
|
| std::optional< vk::ImageView > | depthImageView () |
| | get the image view for the depth buffer
|
| void | genRenderBarrier (vk::CommandBuffer &cmdBuf, FrameData *frame) |
| | generate a barrier command into the given command buffer that will synchronize rendering access and convert the frame's attachment images to the optimal layout
|
| void | genPresentBarrier (vk::CommandBuffer &cmdBuf, FrameData *frame) |
| | generate a barrier command into the given command buffer that will synchronize presentation access and convert the frame's color-attachment image to the presentation layout
|
| void | cleanup () |
| | destroy the Vulkan state for the swap chain
|
|
| vk::Device | device |
| | the owning logical device
|
| vk::SwapchainKHR | chain |
| | the swap chain object
|
| vk::Format | imageFormat |
| | pixel format of image buffers
|
| vk::Extent2D | extent |
| | size of swap buffer images
|
| int | numAttachments |
| std::vector< vk::Image > | images |
| | images for the swap buffers
|
| std::vector< vk::ImageView > | views |
| | image views for the swap buffers
|
| std::optional< DepthStencilBuffer > | dsBuf |
| | optional depth/stencil-buffer
|
the collected information about the swap-chain for a window
◆ SwapChain()
| cs237::Window::SwapChain::SwapChain |
( |
vk::Device | dev | ) |
|
|
inline |
◆ cleanup()
| void cs237::Window::SwapChain::cleanup |
( |
| ) |
|
destroy the Vulkan state for the swap chain
◆ depthImageView()
| std::optional< vk::ImageView > cs237::Window::SwapChain::depthImageView |
( |
| ) |
|
|
inline |
get the image view for the depth buffer
- Returns
- the depth-buffer image or None if there is no depth-buffer
◆ genPresentBarrier()
| void cs237::Window::SwapChain::genPresentBarrier |
( |
vk::CommandBuffer & | cmdBuf, |
|
|
FrameData * | frame ) |
generate a barrier command into the given command buffer that will synchronize presentation access and convert the frame's color-attachment image to the presentation layout
◆ genRenderBarrier()
| void cs237::Window::SwapChain::genRenderBarrier |
( |
vk::CommandBuffer & | cmdBuf, |
|
|
FrameData * | frame ) |
generate a barrier command into the given command buffer that will synchronize rendering access and convert the frame's attachment images to the optimal layout
◆ hasDepthBuffer()
| bool cs237::Window::SwapChain::hasDepthBuffer |
( |
| ) |
const |
|
inline |
does the swap-chain support a depth buffer?
◆ hasStencilBuffer()
| bool cs237::Window::SwapChain::hasStencilBuffer |
( |
| ) |
const |
|
inline |
does the swap-chain support a stencil buffer?
◆ size()
| int cs237::Window::SwapChain::size |
( |
| ) |
const |
|
inline |
return the number of buffers in the swap chain
◆ chain
| vk::SwapchainKHR cs237::Window::SwapChain::chain |
◆ device
| vk::Device cs237::Window::SwapChain::device |
the owning logical device
◆ dsBuf
optional depth/stencil-buffer
◆ extent
| vk::Extent2D cs237::Window::SwapChain::extent |
size of swap buffer images
◆ imageFormat
| vk::Format cs237::Window::SwapChain::imageFormat |
pixel format of image buffers
◆ images
| std::vector<vk::Image> cs237::Window::SwapChain::images |
images for the swap buffers
◆ numAttachments
| int cs237::Window::SwapChain::numAttachments |
the number of framebuffer attachments; should be either 1 or 2, depending on if there is a depth buffer attached.
◆ views
| std::vector<vk::ImageView> cs237::Window::SwapChain::views |
image views for the swap buffers
The documentation for this struct was generated from the following file:
- /Users/jhr/Classes/23740/f2026/solutions/cs237-library/include/cs237/window.hpp