Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkRenderPassCreateInfo2

extends Struct<VkRenderPassCreateInfo2>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkRenderPassCreateInfo2KHR
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of a newly created render pass.
Description

Parameters defined by this structure with the same name as those in VkRenderPassCreateInfo have the identical effect to those parameters; the child structures are variants of those used in VkRenderPassCreateInfo which add sType and pNext parameters, allowing them to be extended.

If the VkSubpassDescription2::viewMask member of any element of pSubpasses is not zero, multiview functionality is considered to be enabled for this render pass.

correlatedViewMaskCount and pCorrelatedViewMasks have the same effect as VkRenderPassMultiviewCreateInfo::correlationMaskCount and VkRenderPassMultiviewCreateInfo::pCorrelationMasks, respectively.

Valid Usage
Valid Usage (Implicit)
See Also

VkAttachmentDescription2, VkSubpassDependency2, VkSubpassDescription2, CreateRenderPass2, CreateRenderPass2KHR

Layout


struct VkRenderPassCreateInfo2 {
    VkStructureType sType;
    void const * pNext;
    VkRenderPassCreateFlags flags;
    uint32_t attachmentCount;
    VkAttachmentDescription2 const * pAttachments;
    uint32_t subpassCount;
    VkSubpassDescription2 const * pSubpasses;
    uint32_t dependencyCount;
    VkSubpassDependency2 const * pDependencies;
    uint32_t correlatedViewMaskCount;
    uint32_t const * pCorrelatedViewMasks;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
ATTACHMENTCOUNT

The struct member offsets.

public static final int
CORRELATEDVIEWMASKCOUNT

The struct member offsets.

public static final int
DEPENDENCYCOUNT

The struct member offsets.

public static final int
FLAGS

The struct member offsets.

public static final int
PATTACHMENTS

The struct member offsets.

public static final int
PCORRELATEDVIEWMASKS

The struct member offsets.

public static final int
PDEPENDENCIES

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PSUBPASSES

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

public static final int
SUBPASSCOUNT

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkRenderPassCreateInfo2(long address, ByteBuffer container)

public
VkRenderPassCreateInfo2(ByteBuffer container)

Creates a VkRenderPassCreateInfo2 instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public int
attachmentCount()

the number of attachments used by this render pass.

public static VkRenderPassCreateInfo2
calloc()

Returns a new VkRenderPassCreateInfo2 instance allocated with memCalloc.

public static VkRenderPassCreateInfo2.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkRenderPassCreateInfo2.Buffer instance allocated with memCalloc.

public static VkRenderPassCreateInfo2
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRenderPassCreateInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkRenderPassCreateInfo2.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRenderPassCreateInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

public int
correlatedViewMaskCount()

the number of correlation masks.

protected VkRenderPassCreateInfo2
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkRenderPassCreateInfo2
create()

Returns a new VkRenderPassCreateInfo2 instance allocated with BufferUtils.

public static VkRenderPassCreateInfo2
create(long address)

Returns a new VkRenderPassCreateInfo2 instance for the specified memory address.

public static VkRenderPassCreateInfo2.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkRenderPassCreateInfo2.Buffer instance allocated with BufferUtils.

public static VkRenderPassCreateInfo2.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkRenderPassCreateInfo2.Buffer instance at the specified memory.

public static VkRenderPassCreateInfo2
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkRenderPassCreateInfo2.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public int
dependencyCount()

the number of dependencies between pairs of subpasses.

public int
flags()

reserved for future use.

public VkRenderPassCreateInfo2
flags(int value)

Sets the specified value to the flags field.

public static VkRenderPassCreateInfo2
malloc()

Returns a new VkRenderPassCreateInfo2 instance allocated with memAlloc.

public static VkRenderPassCreateInfo2.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkRenderPassCreateInfo2.Buffer instance allocated with memAlloc.

public static VkRenderPassCreateInfo2
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRenderPassCreateInfo2 instance allocated on the specified MemoryStack.

public static VkRenderPassCreateInfo2.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkRenderPassCreateInfo2.Buffer instance allocated on the specified MemoryStack.

public static int
nattachmentCount(long struct)

Unsafe version of attachmentCount.

public static void
nattachmentCount(long struct, int value)

Sets the specified value to the attachmentCount field of the specified struct.

public static int
ncorrelatedViewMaskCount(long struct)

Unsafe version of correlatedViewMaskCount.

public static void
ncorrelatedViewMaskCount(long struct, int value)

Sets the specified value to the correlatedViewMaskCount field of the specified struct.

public static int
ndependencyCount(long struct)

Unsafe version of dependencyCount.

public static void
ndependencyCount(long struct, int value)

Sets the specified value to the dependencyCount field of the specified struct.

public static int
nflags(long struct)

Unsafe version of flags.

public static void
nflags(long struct, int value)

Unsafe version of flags.

public static VkAttachmentDescription2.Buffer
npAttachments(long struct)

Unsafe version of pAttachments.

public static void
npAttachments(long struct, VkAttachmentDescription2.Buffer value)

Unsafe version of pAttachments.

public static IntBuffer
npCorrelatedViewMasks(long struct)

Unsafe version of pCorrelatedViewMasks.

public static void
npCorrelatedViewMasks(long struct, IntBuffer value)

Unsafe version of pCorrelatedViewMasks.

public static VkSubpassDependency2.Buffer
npDependencies(long struct)

Unsafe version of pDependencies.

public static void
npDependencies(long struct, VkSubpassDependency2.Buffer value)

Unsafe version of pDependencies.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkSubpassDescription2.Buffer
npSubpasses(long struct)

Unsafe version of pSubpasses.

public static void
npSubpasses(long struct, VkSubpassDescription2.Buffer value)

Unsafe version of pSubpasses.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public static int
nsubpassCount(long struct)

Unsafe version of subpassCount.

public static void
nsubpassCount(long struct, int value)

Sets the specified value to the subpassCount field of the specified struct.

public VkAttachmentDescription2.Buffer
pAttachments()

a pointer to an array of attachmentCount VkAttachmentDescription2 structures describing the attachments used by the render pass.

public VkRenderPassCreateInfo2
pAttachments(VkAttachmentDescription2.Buffer value)

Sets the address of the specified VkAttachmentDescription2.Buffer to the pAttachments field.

public IntBuffer
pCorrelatedViewMasks()

a pointer to an array of view masks indicating sets of views that may be more efficient to render concurrently.

public VkRenderPassCreateInfo2
pCorrelatedViewMasks(IntBuffer value)

Sets the address of the specified IntBuffer to the pCorrelatedViewMasks field.

public VkSubpassDependency2.Buffer
pDependencies()

a pointer to an array of dependencyCount VkSubpassDependency2 structures describing dependencies between pairs of subpasses.

public VkRenderPassCreateInfo2
pDependencies(VkSubpassDependency2.Buffer value)

Sets the address of the specified VkSubpassDependency2.Buffer to the pDependencies field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkRenderPassCreateInfo2
pNext(long value)

Sets the specified value to the pNext field.

public VkRenderPassCreateInfo2
pNext(VkRenderPassCreationControlEXT value)

Prepends the specified VkRenderPassCreationControlEXT value to the pNext chain.

public VkRenderPassCreateInfo2
pNext(VkRenderPassCreationFeedbackCreateInfoEXT value)

Prepends the specified VkRenderPassCreationFeedbackCreateInfoEXT value to the pNext chain.

public VkRenderPassCreateInfo2
public VkSubpassDescription2.Buffer
pSubpasses()

a pointer to an array of subpassCount VkSubpassDescription2 structures describing each subpass.

public VkRenderPassCreateInfo2
pSubpasses(VkSubpassDescription2.Buffer value)

Sets the address of the specified VkSubpassDescription2.Buffer to the pSubpasses field.

public VkRenderPassCreateInfo2
set(int sType, long pNext, int flags, VkAttachmentDescription2.Buffer pAttachments, VkSubpassDescription2.Buffer pSubpasses, VkSubpassDependency2.Buffer pDependencies, IntBuffer pCorrelatedViewMasks)

Initializes this struct with the specified values.

public VkRenderPassCreateInfo2

Returns:

this struct
set
(VkRenderPassCreateInfo2
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkRenderPassCreateInfo2
sType(int value)

Sets the specified value to the sType field.

public VkRenderPassCreateInfo2
public int
subpassCount()

the number of subpasses to create.

public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate