Creates specific information for performing a render pass within Vulkan.
More...
|
|
ConstPointer< VulkanDevice > | m_device |
| | The Vulkan device.
|
|
Dictionary< uint04, VkRenderPass > | m_render_pass_grab |
| | Render passes for grab images, keyed by multisample count.
|
|
Dictionary< uint04, VkRenderPass > | m_render_pass_khr |
| | Render passes for KHR swap chain images, keyed by multisample count.
|
|
VkFormat | m_swap_chain_image_format |
| | The image format used by the swap chain.
|
|
bool | m_use_depth |
| | Whether depth testing is enabled for these render passes.
|
Creates specific information for performing a render pass within Vulkan.
Definition at line 45 of file VulkanRenderDefinition.h.
◆ VulkanRenderDefinition()
Constructs a render definition for the given device.
- Parameters
-
| [in] | instance | The Vulkan device. |
◆ createRenderPass()
| void VulkanRenderDefinition::createRenderPass |
( |
uint04 | multisample, |
|
|
bool | is_grab_image ) |
Creates a render pass with the given multisample count.
- Parameters
-
| [in] | multisample | The multisample count. |
| [in] | is_grab_image | Whether this render pass targets a grab (readback) image. |
◆ getAttachments()
| Buffer< VkAttachmentDescription, BufferAllocator< VkAttachmentDescription, 64, true > > VulkanRenderDefinition::getAttachments |
( |
uint04 | multisample_count, |
|
|
bool | is_grab_image, |
|
|
uint08 | format ) const |
Returns the attachment descriptions for a render pass configuration.
- Parameters
-
| [in] | multisample_count | The multisample count. |
| [in] | is_grab_image | Whether this is for a grab image render pass. |
| [in] | format | The swap chain image format. |
- Returns
- A buffer of VkAttachmentDescription structs.
◆ getSwapChainImageFormat()
| VkFormat VulkanRenderDefinition::getSwapChainImageFormat |
( |
| ) |
const |
Returns the swap chain image format.
- Returns
- The VkFormat.
◆ renderPass()
| VkRenderPass VulkanRenderDefinition::renderPass |
( |
uint04 | multisample, |
|
|
bool | is_grab_image ) const |
Returns the render pass for the given configuration.
- Parameters
-
| [in] | multisample | The multisample count. |
| [in] | is_grab_image | Whether to return the grab image render pass. |
- Returns
- The VkRenderPass handle.
◆ setDevice()
Sets the Vulkan device.
- Parameters
-
| [in] | instance | The Vulkan device. |
◆ setSwapChainImageFormat()
| void VulkanRenderDefinition::setSwapChainImageFormat |
( |
VkFormat | format | ) |
|
|
inline |
The documentation for this class was generated from the following file: