Function TRAP::Graphics::API::VulkanInits::SubPassDescription(VkPipelineBindPoint, std::span<const VkAttachmentReference2KHR>, std::span<const VkAttachmentReference2KHR>, const VkFragmentShadingRateAttachmentInfoKHR *)#

Function Documentation#

constexpr VkSubpassDescription2KHR TRAP::Graphics::API::VulkanInits::SubPassDescription(VkPipelineBindPoint bindPoint, std::span<const VkAttachmentReference2KHR> inputAttachments, std::span<const VkAttachmentReference2KHR> colorAttachments, const VkFragmentShadingRateAttachmentInfoKHR *shadingRateAttachment = nullptr) noexcept#

Create a Vulkan subpass description.

Parameters:
  • bindPoint – Vulkan pipeline bind point.

  • inputAttachments – Vulkan input attachments.

  • colorAttachments – Vulkan color attachments.

  • shadingRateAttachmentOptional: Vulkan fragment shading rate attchment.

Returns:

VkSubpassDescription2KHR.