Function TRAP::Graphics::API::VulkanInits::AttachmentDescription2#

Function Documentation#

VkAttachmentDescription2KHR TRAP::Graphics::API::VulkanInits::AttachmentDescription2(VkFormat format, VkSampleCountFlagBits sampleCount, VkAttachmentLoadOp loadOp, VkAttachmentStoreOp storeOp, VkAttachmentLoadOp stencilLoadOp, VkAttachmentStoreOp stencilStoreOp, VkImageLayout layout, VkImageLayout finalLayout)#

Create a Vulkan attachment description.

Parameters:
  • format – Vulkan format.

  • sampleCount – Number of samples.

  • loadOp – Vulkan Attachment load operation.

  • storeOp – Vulkan Attachment store operation.

  • stencilLoadOp – Vulkan Attachment stencil load operation.

  • stencilStoreOp – Vulkan Attachment stencil store operation.

  • layout – Initial Vulkan image layout used when render pass starts.

  • finalLayout – Final Vulkan image layout to transition to when render pass ends.

Returns:

VkAttachmentDescription2KHR.