Top Description Fields Constructors Methods
org.lwjgl.vulkan

public Class KHRCreateRenderpass2

extends Object
Class Inheritance
Imports
javax.annotation.*, java.nio.*, org.lwjgl.system.*

This extension provides a new entry point 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:

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.

VK_KHR_create_renderpass2
Name String
VK_KHR_create_renderpass2
Extension Type
Device extension
Registered Extension Number
110
Revision
1
Extension and Version Dependencies
VK_KHR_multiview and VK_KHR_maintenance2
Deprecation state
Contact
Other Extension Metadata
Last Modified Date
2018-02-07
Interactions and External Dependencies
  • Promoted to Vulkan 1.2 Core
Contributors
  • Tobias Hector
  • Jeff Bolz

Field Summary

Modifier and TypeField and Description
public static final String
public static final int
VK_KHR_CREATE_RENDERPASS_2_SPEC_VERSION

The extension specification version.

public static final int
public static final int
public static final int
public static final int
public static final int
public static final int
public static final int

Constructor Summary

AccessConstructor and Description
protected

Method Summary

Modifier and TypeMethod and Description
public static void
nvkCmdBeginRenderPass2KHR(VkCommandBuffer commandBuffer, long pRenderPassBegin, long pSubpassBeginInfo)

Unsafe version of: CmdBeginRenderPass2KHR

public static void
nvkCmdEndRenderPass2KHR(VkCommandBuffer commandBuffer, long pSubpassEndInfo)

Unsafe version of: CmdEndRenderPass2KHR

public static void
nvkCmdNextSubpass2KHR(VkCommandBuffer commandBuffer, long pSubpassBeginInfo, long pSubpassEndInfo)

Unsafe version of: CmdNextSubpass2KHR

public static int
nvkCreateRenderPass2KHR(VkDevice device, long pCreateInfo, long pAllocator, long pRenderPass)

Unsafe version of: CreateRenderPass2KHR

public static void
vkCmdBeginRenderPass2KHR(VkCommandBuffer
the command buffer in which to record the command.
commandBuffer
,
VkRenderPassBeginInfo
a pointer to a VkRenderPassBeginInfo structure specifying the render pass to begin an instance of, and the framebuffer the instance uses.
pRenderPassBegin
,
VkSubpassBeginInfo
a pointer to a VkSubpassBeginInfo structure containing information about the subpass which is about to begin rendering.
pSubpassBeginInfo
)

See CmdBeginRenderPass2.

public static void
vkCmdEndRenderPass2KHR(VkCommandBuffer
the command buffer in which to end the current render pass instance.
commandBuffer
,
VkSubpassEndInfo
a pointer to a VkSubpassEndInfo structure containing information about how the last subpass will be ended.
pSubpassEndInfo
)

See CmdEndRenderPass2.

public static void
vkCmdNextSubpass2KHR(VkCommandBuffer
the command buffer in which to record the command.
commandBuffer
,
VkSubpassBeginInfo
a pointer to a VkSubpassBeginInfo structure containing information about the subpass which is about to begin rendering.
pSubpassBeginInfo
,
VkSubpassEndInfo
a pointer to a VkSubpassEndInfo structure containing information about how the previous subpass will be ended.
pSubpassEndInfo
)

See CmdNextSubpass2.

public static int
vkCreateRenderPass2KHR(VkDevice
the logical device that creates the render pass.
device
,
VkRenderPassCreateInfo2
a pointer to a VkRenderPassCreateInfo2 structure describing the parameters of the render pass.
pCreateInfo
,
VkAllocationCallbacks
controls host memory allocation as described in the Memory Allocation chapter.
pAllocator
,
LongBuffer
a pointer to a VkRenderPass handle in which the resulting render pass object is returned.
pRenderPass
)

See CreateRenderPass2.

public static int
vkCreateRenderPass2KHR(VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, VkAllocationCallbacks pAllocator, long[] pRenderPass)

Array version of: CreateRenderPass2KHR

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAMEback to summary
public static final String VK_KHR_CREATE_RENDERPASS_2_EXTENSION_NAME

The extension name.

VK_KHR_CREATE_RENDERPASS_2_SPEC_VERSIONback to summary
public static final int VK_KHR_CREATE_RENDERPASS_2_SPEC_VERSION

The extension specification version.

VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_ATTACHMENT_DESCRIPTION_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_ATTACHMENT_REFERENCE_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SUBPASS_BEGIN_INFO_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SUBPASS_DEPENDENCY_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHR

Extends VkStructureType.

Enum values:
VK_STRUCTURE_TYPE_SUBPASS_END_INFO_KHRback to summary
public static final int VK_STRUCTURE_TYPE_SUBPASS_END_INFO_KHR

Extends VkStructureType.

Enum values:

Constructor Detail

KHRCreateRenderpass2back to summary
protected KHRCreateRenderpass2()

Method Detail

nvkCmdBeginRenderPass2KHRback to summary
public static void nvkCmdBeginRenderPass2KHR(VkCommandBuffer commandBuffer, long pRenderPassBegin, long pSubpassBeginInfo)

Unsafe version of: CmdBeginRenderPass2KHR

nvkCmdEndRenderPass2KHRback to summary
public static void nvkCmdEndRenderPass2KHR(VkCommandBuffer commandBuffer, long pSubpassEndInfo)

Unsafe version of: CmdEndRenderPass2KHR

nvkCmdNextSubpass2KHRback to summary
public static void nvkCmdNextSubpass2KHR(VkCommandBuffer commandBuffer, long pSubpassBeginInfo, long pSubpassEndInfo)

Unsafe version of: CmdNextSubpass2KHR

nvkCreateRenderPass2KHRback to summary
public static int nvkCreateRenderPass2KHR(VkDevice device, long pCreateInfo, long pAllocator, long pRenderPass)

Unsafe version of: CreateRenderPass2KHR

vkCmdBeginRenderPass2KHRback to summary
public static void vkCmdBeginRenderPass2KHR(VkCommandBuffer commandBuffer, VkRenderPassBeginInfo pRenderPassBegin, VkSubpassBeginInfo pSubpassBeginInfo)

See CmdBeginRenderPass2.

Parameters
commandBuffer:VkCommandBuffer

the command buffer in which to record the command.

pRenderPassBegin:VkRenderPassBeginInfo

a pointer to a VkRenderPassBeginInfo structure specifying the render pass to begin an instance of, and the framebuffer the instance uses.

pSubpassBeginInfo:VkSubpassBeginInfo

a pointer to a VkSubpassBeginInfo structure containing information about the subpass which is about to begin rendering.

vkCmdEndRenderPass2KHRback to summary
public static void vkCmdEndRenderPass2KHR(VkCommandBuffer commandBuffer, VkSubpassEndInfo pSubpassEndInfo)

See CmdEndRenderPass2.

Parameters
commandBuffer:VkCommandBuffer

the command buffer in which to end the current render pass instance.

pSubpassEndInfo:VkSubpassEndInfo

a pointer to a VkSubpassEndInfo structure containing information about how the last subpass will be ended.

vkCmdNextSubpass2KHRback to summary
public static void vkCmdNextSubpass2KHR(VkCommandBuffer commandBuffer, VkSubpassBeginInfo pSubpassBeginInfo, VkSubpassEndInfo pSubpassEndInfo)

See CmdNextSubpass2.

Parameters
commandBuffer:VkCommandBuffer

the command buffer in which to record the command.

pSubpassBeginInfo:VkSubpassBeginInfo

a pointer to a VkSubpassBeginInfo structure containing information about the subpass which is about to begin rendering.

pSubpassEndInfo:VkSubpassEndInfo

a pointer to a VkSubpassEndInfo structure containing information about how the previous subpass will be ended.

vkCreateRenderPass2KHRback to summary
public static int vkCreateRenderPass2KHR(VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, VkAllocationCallbacks pAllocator, LongBuffer pRenderPass)

See CreateRenderPass2.

Parameters
device:VkDevice

the logical device that creates the render pass.

pCreateInfo:VkRenderPassCreateInfo2

a pointer to a VkRenderPassCreateInfo2 structure describing the parameters of the render pass.

pAllocator:VkAllocationCallbacks

controls host memory allocation as described in the Memory Allocation chapter.

pRenderPass:LongBuffer

a pointer to a VkRenderPass handle in which the resulting render pass object is returned.

Annotations
@NativeType:VkResult
vkCreateRenderPass2KHRback to summary
public static int vkCreateRenderPass2KHR(VkDevice device, VkRenderPassCreateInfo2 pCreateInfo, VkAllocationCallbacks pAllocator, long[] pRenderPass)

Array version of: CreateRenderPass2KHR

Annotations
@NativeType:VkResult