Vulkan implementation of RenderPass.
More...
#include <VulkanRenderPass.hpp>
Vulkan implementation of RenderPass.
◆ VulkanRenderPass() [1/2]
Create new Vulkan render pass.
- Parameters
-
| device | The Vulkan device. |
| colorAttachment | The color attachment to draw to. |
| colorLoadOperation | What to do with the previous contents of the color attachment. |
| depthAttachment | The depth attachment to draw to. |
| depthLoadOperation | What to do with the previous contents of the depth attachment. |
◆ VulkanRenderPass() [2/2]
| Video::VulkanRenderPass::VulkanRenderPass |
( |
VkDevice |
device, |
|
|
const glm::uvec2 & |
size, |
|
|
uint32_t |
msaaSamples |
|
) |
| |
Create new attachmentless Vulkan render pass.
- Parameters
-
| device | The Vulkan device. |
| size | The size of the framebuffer. |
| msaaSamples | The number of MSAA samples. |
◆ ~VulkanRenderPass()
| Video::VulkanRenderPass::~VulkanRenderPass |
( |
| ) |
|
|
final |
◆ GetColorAttachment()
| VulkanTexture * Video::VulkanRenderPass::GetColorAttachment |
( |
| ) |
const |
Get the first color attachment.
- Returns
- The first color attachment.
◆ GetCompatiblity()
Get the render pass' compatibility information.
- Returns
- The compatibility information.
◆ GetDepthAttachment()
| VulkanTexture * Video::VulkanRenderPass::GetDepthAttachment |
( |
| ) |
const |
Get the depth attachment.
- Returns
- The depth attachment.
◆ GetFramebuffer()
| VkFramebuffer Video::VulkanRenderPass::GetFramebuffer |
( |
| ) |
const |
Get the Vulkan framebuffer.
- Returns
- The internal Vulkan framebuffer.
◆ GetRenderPass()
| VkRenderPass Video::VulkanRenderPass::GetRenderPass |
( |
| ) |
const |
Get the Vulkan render pass.
- Returns
- The internal Vulkan render pass.
◆ GetSize()
| const glm::uvec2 & Video::VulkanRenderPass::GetSize |
( |
| ) |
const |
|
finalvirtual |
Get the size of the frame buffer.
- Returns
- The size of the frame buffer in pixels.
Implements Video::RenderPass.
◆ HasColorAttachment()
| bool Video::VulkanRenderPass::HasColorAttachment |
( |
| ) |
const |
Get whether there is a color attachment.
- Returns
- Whether there is a color attachment.
◆ HasDepthAttachment()
| bool Video::VulkanRenderPass::HasDepthAttachment |
( |
| ) |
const |
Get whether there is a depth attachment.
- Returns
- Whether there is a depth attachment.
The documentation for this class was generated from the following files: