Package org.lwjgl.vulkan
Class KHRCreateRenderpass2
java.lang.Object
org.lwjgl.vulkan.KHRCreateRenderpass2
This extension provides a new command to create render passes in a way that can be easily extended by other extensions through the substructures of render pass creation. The Vulkan 1.0 render pass creation sub-structures do not include
sType/pNext members. Additionally, the render pass begin/next/end commands have been augmented with new extensible structures for passing additional subpass information.
The VkRenderPassMultiviewCreateInfo and VkInputAttachmentAspectReference structures that extended the original VkRenderPassCreateInfo are not accepted into the new creation functions, and instead their parameters are folded into this extension as follows:
- Elements of
VkRenderPassMultiviewCreateInfo::pViewMasksare now specified inVkSubpassDescription2KHR::viewMask. - Elements of
VkRenderPassMultiviewCreateInfo::pViewOffsetsare now specified inVkSubpassDependency2KHR::viewOffset. VkRenderPassMultiviewCreateInfo::correlationMaskCountandVkRenderPassMultiviewCreateInfo::pCorrelationMasksare directly specified inVkRenderPassCreateInfo2KHR.VkInputAttachmentAspectReference::aspectMaskis now specified in the relevant input attachment reference inVkAttachmentReference2KHR::aspectMask
The details of these mappings are explained fully in the new structures.
Promotion to Vulkan 1.2
All functionality in this extension is included in core Vulkan 1.2, with the KHR suffix omitted. The original type, enum, and command names are still available as aliases of the core functionality.
- Name String
VK_KHR_create_renderpass2- Extension Type
- Device extension
- Registered Extension Number
- 110
- Revision
- 1
- Extension and Version Dependencies
VK_KHR_multiviewandVK_KHR_maintenance2or Version 1.1- Deprecation State
- Promoted to Vulkan 1.2
- Contact
- Tobias Hector tobias
Other Extension Metadata
- Last Modified Date
- 2018-02-07
- Contributors
- Tobias Hector
- Jeff Bolz
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringThe extension name.static final intThe extension specification version.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType.static final intExtendsVkStructureType. -
Method Summary
Modifier and TypeMethodDescriptionstatic voidnvkCmdBeginRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pRenderPassBegin, long pSubpassBeginInfo) Unsafe version of:CmdBeginRenderPass2KHRstatic voidnvkCmdEndRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pSubpassEndInfo) Unsafe version of:CmdEndRenderPass2KHRstatic voidnvkCmdNextSubpass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pSubpassBeginInfo, long pSubpassEndInfo) Unsafe version of:CmdNextSubpass2KHRstatic intnvkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, long pCreateInfo, long pAllocator, long pRenderPass) Unsafe version of:CreateRenderPass2KHRstatic voidvkCmdBeginRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkRenderPassBeginInfo pRenderPassBegin, VkSubpassBeginInfo pSubpassBeginInfo) SeeCmdBeginRenderPass2.static voidvkCmdEndRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkSubpassEndInfo pSubpassEndInfo) SeeCmdEndRenderPass2.static voidvkCmdNextSubpass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkSubpassBeginInfo pSubpassBeginInfo, VkSubpassEndInfo pSubpassEndInfo) SeeCmdNextSubpass2.static intvkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pRenderPass) Array version of:CreateRenderPass2KHRstatic intvkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pRenderPass) SeeCreateRenderPass2.
-
Field Details
-
VK_KHR_CREATE_RENDERPASS_2_SPEC_VERSION
public static final int VK_KHR_CREATE_RENDERPASS_2_SPEC_VERSIONThe extension specification version.- See Also:
-
VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME
The extension name.- See Also:
-
VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHR
public static final int VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHR
public static final int VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHR
public static final int VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHR
public static final int VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHR
public static final int VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO_KHR
public static final int VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
VK_STRUCTURE_TYPE_SUBPASS_END_INFO_KHR
public static final int VK_STRUCTURE_TYPE_SUBPASS_END_INFO_KHRExtendsVkStructureType.Enum values:
- See Also:
-
-
Method Details
-
nvkCreateRenderPass2KHR
public static int nvkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, long pCreateInfo, long pAllocator, long pRenderPass) Unsafe version of:CreateRenderPass2KHR -
vkCreateRenderPass2KHR
public static int vkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, LongBuffer pRenderPass) SeeCreateRenderPass2.- Parameters:
device- the logical device that creates the render pass.pCreateInfo- a pointer to aVkRenderPassCreateInfo2structure describing the parameters of the render pass.pAllocator- controls host memory allocation as described in the Memory Allocation chapter.pRenderPass- a pointer to aVkRenderPasshandle in which the resulting render pass object is returned.
-
nvkCmdBeginRenderPass2KHR
public static void nvkCmdBeginRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pRenderPassBegin, long pSubpassBeginInfo) Unsafe version of:CmdBeginRenderPass2KHR -
vkCmdBeginRenderPass2KHR
public static void vkCmdBeginRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkRenderPassBeginInfo pRenderPassBegin, VkSubpassBeginInfo pSubpassBeginInfo) SeeCmdBeginRenderPass2.- Parameters:
commandBuffer- the command buffer in which to record the command.pRenderPassBegin- a pointer to aVkRenderPassBeginInfostructure specifying the render pass to begin an instance of, and the framebuffer the instance uses.pSubpassBeginInfo- a pointer to aVkSubpassBeginInfostructure containing information about the subpass which is about to begin rendering.
-
nvkCmdNextSubpass2KHR
public static void nvkCmdNextSubpass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pSubpassBeginInfo, long pSubpassEndInfo) Unsafe version of:CmdNextSubpass2KHR -
vkCmdNextSubpass2KHR
public static void vkCmdNextSubpass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkSubpassBeginInfo pSubpassBeginInfo, VkSubpassEndInfo pSubpassEndInfo) SeeCmdNextSubpass2.- Parameters:
commandBuffer- the command buffer in which to record the command.pSubpassBeginInfo- a pointer to aVkSubpassBeginInfostructure containing information about the subpass which is about to begin rendering.pSubpassEndInfo- a pointer to aVkSubpassEndInfostructure containing information about how the previous subpass will be ended.
-
nvkCmdEndRenderPass2KHR
public static void nvkCmdEndRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, long pSubpassEndInfo) Unsafe version of:CmdEndRenderPass2KHR -
vkCmdEndRenderPass2KHR
public static void vkCmdEndRenderPass2KHR(org.lwjgl.vulkan.VkCommandBuffer commandBuffer, VkSubpassEndInfo pSubpassEndInfo) SeeCmdEndRenderPass2.- Parameters:
commandBuffer- the command buffer in which to end the current render pass instance.pSubpassEndInfo- a pointer to aVkSubpassEndInfostructure containing information about how the last subpass will be ended.
-
vkCreateRenderPass2KHR
public static int vkCreateRenderPass2KHR(org.lwjgl.vulkan.VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, @Nullable VkAllocationCallbacks pAllocator, long[] pRenderPass) Array version of:CreateRenderPass2KHR
-