public class VkRenderPassCreateInfo2KHR
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
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 VkSubpassDescription2KHR::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.
VkDeviceMemory object, and at least one subpass writes to that area of VkDeviceMemory, a subpass dependency must be included (either directly or via some intermediate subpasses) between themattachment member of any element of pInputAttachments, pColorAttachments, pResolveAttachments or pDepthStencilAttachment, or the attachment indexed by any element of pPreserveAttachments in any given element of pSubpasses is bound to a range of a VkDeviceMemory object that overlaps with any other attachment in any subpass (including the same subpass), the VkAttachmentDescription2KHR structures describing them must include ATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT in flagsattachment member of any element of pInputAttachments, pColorAttachments, pResolveAttachments or pDepthStencilAttachment, or any element of pPreserveAttachments in any given element of pSubpasses is not ATTACHMENT_UNUSED, it must be less than attachmentCountpAttachments with a loadOp equal to ATTACHMENT_LOAD_OP_CLEAR, the first use of that attachment must not specify a layout equal to IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, or IMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALpAttachments with a stencilLoadOp equal to ATTACHMENT_LOAD_OP_CLEAR, the first use of that attachment must not specify a layout equal to IMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMAL, IMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL, or IMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMAL.pDependencies, if the srcSubpass is not SUBPASS_EXTERNAL, all stage flags included in the srcStageMask member of that dependency must be a pipeline stage supported by the pipeline identified by the pipelineBindPoint member of the source subpasspDependencies, if the dstSubpass is not SUBPASS_EXTERNAL, all stage flags included in the dstStageMask member of that dependency must be a pipeline stage supported by the pipeline identified by the pipelineBindPoint member of the destination subpasspCorrelatedViewMasks must not overlap with the set of bits included in any other element of pCorrelatedViewMasksVkSubpassDescription2KHR::viewMask member of all elements of pSubpasses is 0, correlatedViewMaskCount must be 0VkSubpassDescription2KHR::viewMask member of all elements of pSubpasses must either all be 0, or all not be 0VkSubpassDescription2KHR::viewMask member of all elements of pSubpasses is 0, the dependencyFlags member of any element of pDependencies must not include DEPENDENCY_VIEW_LOCAL_BITpDependencies where its srcSubpass member equals its dstSubpass member, if the viewMask member of the corresponding element of pSubpasses includes more than one bit, its dependencyFlags member must include DEPENDENCY_VIEW_LOCAL_BITviewMask member must not have a bit set at an index greater than or equal to VkPhysicalDeviceLimits::maxFramebufferLayersattachment member of any element of the pInputAttachments member of any element of pSubpasses is not ATTACHMENT_UNUSED, the aspectMask member of that element of pInputAttachments must only include aspects that are present in images of the format specified by the element of pAttachments specified by attachmentsrcSubpass member of each element of pDependencies must be less than subpassCountdstSubpass member of each element of pDependencies must be less than subpassCountsType must be STRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2_KHRpNext must be NULL or a pointer to a valid instance of VkRenderPassFragmentDensityMapCreateInfoEXTflags must be 0attachmentCount is not 0, pAttachments must be a valid pointer to an array of attachmentCount valid VkAttachmentDescription2KHR structurespSubpasses must be a valid pointer to an array of subpassCount valid VkSubpassDescription2KHR structuresdependencyCount is not 0, pDependencies must be a valid pointer to an array of dependencyCount valid VkSubpassDependency2KHR structurescorrelatedViewMaskCount is not 0, pCorrelatedViewMasks must be a valid pointer to an array of correlatedViewMaskCount uint32_t valuessubpassCount must be greater than 0VkAttachmentDescription2KHR, VkSubpassDependency2KHR, VkSubpassDescription2KHR, CreateRenderPass2KHR
sType – the type of this structure.pNext – NULL or a pointer to an extension-specific structure.flags – reserved for future use.attachmentCount – the number of attachments used by this render pass.pAttachments – a pointer to an array of attachmentCount VkAttachmentDescription2KHR structures describing the attachments used by the render pass.subpassCount – the number of subpasses to create.pSubpasses – a pointer to an array of subpassCount VkSubpassDescription2KHR structures describing each subpass.dependencyCount – the number of dependencies between pairs of subpasses.pDependencies – a pointer to an array of dependencyCount VkSubpassDependency2KHR structures describing dependencies between pairs of subpasses.correlatedViewMaskCount – the number of correlation masks.pCorrelatedViewMasks – a pointer to an array of view masks indicating sets of views that may be more efficient to render concurrently.
struct VkRenderPassCreateInfo2KHR {
VkStructureType sType;
void const * pNext;
VkRenderPassCreateFlags flags;
uint32_t attachmentCount;
VkAttachmentDescription2KHR const * pAttachments;
uint32_t subpassCount;
VkSubpassDescription2KHR const * pSubpasses;
uint32_t dependencyCount;
VkSubpassDependency2KHR const * pDependencies;
uint32_t correlatedViewMaskCount;
uint32_t const * pCorrelatedViewMasks;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkRenderPassCreateInfo2KHR.Buffer
An array of
VkRenderPassCreateInfo2KHR structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
ATTACHMENTCOUNT
The struct member offsets.
|
static int |
CORRELATEDVIEWMASKCOUNT
The struct member offsets.
|
static int |
DEPENDENCYCOUNT
The struct member offsets.
|
static int |
FLAGS
The struct member offsets.
|
static int |
PATTACHMENTS
The struct member offsets.
|
static int |
PCORRELATEDVIEWMASKS
The struct member offsets.
|
static int |
PDEPENDENCIES
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
PSUBPASSES
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
SUBPASSCOUNT
The struct member offsets.
|
| Constructor and Description |
|---|
VkRenderPassCreateInfo2KHR(java.nio.ByteBuffer container)
Creates a
VkRenderPassCreateInfo2KHR instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
int |
attachmentCount()
Returns the value of the
attachmentCount field. |
static VkRenderPassCreateInfo2KHR |
calloc()
Returns a new
VkRenderPassCreateInfo2KHR instance allocated with memCalloc. |
static VkRenderPassCreateInfo2KHR.Buffer |
calloc(int capacity)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated with memCalloc. |
static VkRenderPassCreateInfo2KHR |
callocStack()
Returns a new
VkRenderPassCreateInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRenderPassCreateInfo2KHR.Buffer |
callocStack(int capacity)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkRenderPassCreateInfo2KHR.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkRenderPassCreateInfo2KHR |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassCreateInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero. |
int |
correlatedViewMaskCount()
Returns the value of the
correlatedViewMaskCount field. |
static VkRenderPassCreateInfo2KHR |
create()
Returns a new
VkRenderPassCreateInfo2KHR instance allocated with BufferUtils. |
static VkRenderPassCreateInfo2KHR.Buffer |
create(int capacity)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated with BufferUtils. |
static VkRenderPassCreateInfo2KHR |
create(long address)
Returns a new
VkRenderPassCreateInfo2KHR instance for the specified memory address. |
static VkRenderPassCreateInfo2KHR.Buffer |
create(long address,
int capacity)
Create a
VkRenderPassCreateInfo2KHR.Buffer instance at the specified memory. |
static VkRenderPassCreateInfo2KHR |
createSafe(long address)
|
static VkRenderPassCreateInfo2KHR.Buffer |
createSafe(long address,
int capacity)
|
int |
dependencyCount()
Returns the value of the
dependencyCount field. |
int |
flags()
Returns the value of the
flags field. |
VkRenderPassCreateInfo2KHR |
flags(int value)
Sets the specified value to the
flags field. |
static VkRenderPassCreateInfo2KHR |
malloc()
Returns a new
VkRenderPassCreateInfo2KHR instance allocated with memAlloc. |
static VkRenderPassCreateInfo2KHR.Buffer |
malloc(int capacity)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated with memAlloc. |
static VkRenderPassCreateInfo2KHR |
mallocStack()
Returns a new
VkRenderPassCreateInfo2KHR instance allocated on the thread-local MemoryStack. |
static VkRenderPassCreateInfo2KHR.Buffer |
mallocStack(int capacity)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the thread-local MemoryStack. |
static VkRenderPassCreateInfo2KHR.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the specified MemoryStack. |
static VkRenderPassCreateInfo2KHR |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkRenderPassCreateInfo2KHR instance allocated on the specified MemoryStack. |
static int |
nattachmentCount(long struct)
Unsafe version of
attachmentCount(). |
static void |
nattachmentCount(long struct,
int value)
Sets the specified value to the
attachmentCount field of the specified struct. |
static int |
ncorrelatedViewMaskCount(long struct)
Unsafe version of
correlatedViewMaskCount(). |
static void |
ncorrelatedViewMaskCount(long struct,
int value)
Sets the specified value to the
correlatedViewMaskCount field of the specified struct. |
static int |
ndependencyCount(long struct)
Unsafe version of
dependencyCount(). |
static void |
ndependencyCount(long struct,
int value)
Sets the specified value to the
dependencyCount field of the specified struct. |
static int |
nflags(long struct)
Unsafe version of
flags(). |
static void |
nflags(long struct,
int value)
Unsafe version of
flags. |
static VkAttachmentDescription2KHR.Buffer |
npAttachments(long struct)
Unsafe version of
pAttachments(). |
static void |
npAttachments(long struct,
VkAttachmentDescription2KHR.Buffer value)
Unsafe version of
pAttachments. |
static java.nio.IntBuffer |
npCorrelatedViewMasks(long struct)
Unsafe version of
pCorrelatedViewMasks. |
static void |
npCorrelatedViewMasks(long struct,
java.nio.IntBuffer value)
Unsafe version of
pCorrelatedViewMasks. |
static VkSubpassDependency2KHR.Buffer |
npDependencies(long struct)
Unsafe version of
pDependencies(). |
static void |
npDependencies(long struct,
VkSubpassDependency2KHR.Buffer value)
Unsafe version of
pDependencies. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static VkSubpassDescription2KHR.Buffer |
npSubpasses(long struct)
Unsafe version of
pSubpasses(). |
static void |
npSubpasses(long struct,
VkSubpassDescription2KHR.Buffer value)
Unsafe version of
pSubpasses. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static int |
nsubpassCount(long struct)
Unsafe version of
subpassCount(). |
static void |
nsubpassCount(long struct,
int value)
Sets the specified value to the
subpassCount field of the specified struct. |
VkAttachmentDescription2KHR.Buffer |
pAttachments()
Returns a
VkAttachmentDescription2KHR.Buffer view of the struct array pointed to by the pAttachments field. |
VkRenderPassCreateInfo2KHR |
pAttachments(VkAttachmentDescription2KHR.Buffer value)
Sets the address of the specified
VkAttachmentDescription2KHR.Buffer to the pAttachments field. |
java.nio.IntBuffer |
pCorrelatedViewMasks()
Returns a
IntBuffer view of the data pointed to by the pCorrelatedViewMasks field. |
VkRenderPassCreateInfo2KHR |
pCorrelatedViewMasks(java.nio.IntBuffer value)
Sets the address of the specified
IntBuffer to the pCorrelatedViewMasks field. |
VkSubpassDependency2KHR.Buffer |
pDependencies()
Returns a
VkSubpassDependency2KHR.Buffer view of the struct array pointed to by the pDependencies field. |
VkRenderPassCreateInfo2KHR |
pDependencies(VkSubpassDependency2KHR.Buffer value)
Sets the address of the specified
VkSubpassDependency2KHR.Buffer to the pDependencies field. |
long |
pNext()
Returns the value of the
pNext field. |
VkRenderPassCreateInfo2KHR |
pNext(long value)
Sets the specified value to the
pNext field. |
VkSubpassDescription2KHR.Buffer |
pSubpasses()
Returns a
VkSubpassDescription2KHR.Buffer view of the struct array pointed to by the pSubpasses field. |
VkRenderPassCreateInfo2KHR |
pSubpasses(VkSubpassDescription2KHR.Buffer value)
Sets the address of the specified
VkSubpassDescription2KHR.Buffer to the pSubpasses field. |
VkRenderPassCreateInfo2KHR |
set(int sType,
long pNext,
int flags,
VkAttachmentDescription2KHR.Buffer pAttachments,
VkSubpassDescription2KHR.Buffer pSubpasses,
VkSubpassDependency2KHR.Buffer pDependencies,
java.nio.IntBuffer pCorrelatedViewMasks)
Initializes this struct with the specified values.
|
VkRenderPassCreateInfo2KHR |
set(VkRenderPassCreateInfo2KHR src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkRenderPassCreateInfo2KHR |
sType(int value)
Sets the specified value to the
sType field. |
int |
subpassCount()
Returns the value of the
subpassCount field. |
static void |
validate(long struct)
Validates pointer members that should not be
NULL. |
static void |
validate(long array,
int count)
Calls
validate(long) for each struct contained in the specified struct array. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int FLAGS
public static final int ATTACHMENTCOUNT
public static final int PATTACHMENTS
public static final int SUBPASSCOUNT
public static final int PSUBPASSES
public static final int DEPENDENCYCOUNT
public static final int PDEPENDENCIES
public static final int CORRELATEDVIEWMASKCOUNT
public static final int PCORRELATEDVIEWMASKS
public VkRenderPassCreateInfo2KHR(java.nio.ByteBuffer container)
VkRenderPassCreateInfo2KHR instance at the current position of the specified ByteBuffer container. Changes to the buffer's content will be
visible to the struct instance and vice versa.
The created instance holds a strong reference to the container object.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public int flags()
flags field.public int attachmentCount()
attachmentCount field.@Nullable public VkAttachmentDescription2KHR.Buffer pAttachments()
VkAttachmentDescription2KHR.Buffer view of the struct array pointed to by the pAttachments field.public int subpassCount()
subpassCount field.public VkSubpassDescription2KHR.Buffer pSubpasses()
VkSubpassDescription2KHR.Buffer view of the struct array pointed to by the pSubpasses field.public int dependencyCount()
dependencyCount field.@Nullable public VkSubpassDependency2KHR.Buffer pDependencies()
VkSubpassDependency2KHR.Buffer view of the struct array pointed to by the pDependencies field.public int correlatedViewMaskCount()
correlatedViewMaskCount field.@Nullable public java.nio.IntBuffer pCorrelatedViewMasks()
IntBuffer view of the data pointed to by the pCorrelatedViewMasks field.public VkRenderPassCreateInfo2KHR sType(int value)
sType field.public VkRenderPassCreateInfo2KHR pNext(long value)
pNext field.public VkRenderPassCreateInfo2KHR flags(int value)
flags field.public VkRenderPassCreateInfo2KHR pAttachments(@Nullable VkAttachmentDescription2KHR.Buffer value)
VkAttachmentDescription2KHR.Buffer to the pAttachments field.public VkRenderPassCreateInfo2KHR pSubpasses(VkSubpassDescription2KHR.Buffer value)
VkSubpassDescription2KHR.Buffer to the pSubpasses field.public VkRenderPassCreateInfo2KHR pDependencies(@Nullable VkSubpassDependency2KHR.Buffer value)
VkSubpassDependency2KHR.Buffer to the pDependencies field.public VkRenderPassCreateInfo2KHR pCorrelatedViewMasks(@Nullable java.nio.IntBuffer value)
IntBuffer to the pCorrelatedViewMasks field.public VkRenderPassCreateInfo2KHR set(int sType, long pNext, int flags, @Nullable VkAttachmentDescription2KHR.Buffer pAttachments, VkSubpassDescription2KHR.Buffer pSubpasses, @Nullable VkSubpassDependency2KHR.Buffer pDependencies, @Nullable java.nio.IntBuffer pCorrelatedViewMasks)
public VkRenderPassCreateInfo2KHR set(VkRenderPassCreateInfo2KHR src)
src - the source structpublic static VkRenderPassCreateInfo2KHR malloc()
VkRenderPassCreateInfo2KHR instance allocated with memAlloc. The instance must be explicitly freed.public static VkRenderPassCreateInfo2KHR calloc()
VkRenderPassCreateInfo2KHR instance allocated with memCalloc. The instance must be explicitly freed.public static VkRenderPassCreateInfo2KHR create()
VkRenderPassCreateInfo2KHR instance allocated with BufferUtils.public static VkRenderPassCreateInfo2KHR create(long address)
VkRenderPassCreateInfo2KHR instance for the specified memory address.@Nullable public static VkRenderPassCreateInfo2KHR createSafe(long address)
public static VkRenderPassCreateInfo2KHR.Buffer malloc(int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer calloc(int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer create(int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer create(long address, int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkRenderPassCreateInfo2KHR.Buffer createSafe(long address, int capacity)
public static VkRenderPassCreateInfo2KHR mallocStack()
VkRenderPassCreateInfo2KHR instance allocated on the thread-local MemoryStack.public static VkRenderPassCreateInfo2KHR callocStack()
VkRenderPassCreateInfo2KHR instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkRenderPassCreateInfo2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
VkRenderPassCreateInfo2KHR instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkRenderPassCreateInfo2KHR callocStack(org.lwjgl.system.MemoryStack stack)
VkRenderPassCreateInfo2KHR instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkRenderPassCreateInfo2KHR.Buffer mallocStack(int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer callocStack(int capacity)
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkRenderPassCreateInfo2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkRenderPassCreateInfo2KHR.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static int nflags(long struct)
flags().public static int nattachmentCount(long struct)
attachmentCount().@Nullable public static VkAttachmentDescription2KHR.Buffer npAttachments(long struct)
pAttachments().public static int nsubpassCount(long struct)
subpassCount().public static VkSubpassDescription2KHR.Buffer npSubpasses(long struct)
pSubpasses().public static int ndependencyCount(long struct)
dependencyCount().@Nullable public static VkSubpassDependency2KHR.Buffer npDependencies(long struct)
pDependencies().public static int ncorrelatedViewMaskCount(long struct)
correlatedViewMaskCount().@Nullable public static java.nio.IntBuffer npCorrelatedViewMasks(long struct)
pCorrelatedViewMasks.public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void nflags(long struct,
int value)
flags.public static void nattachmentCount(long struct,
int value)
attachmentCount field of the specified struct.public static void npAttachments(long struct,
@Nullable
VkAttachmentDescription2KHR.Buffer value)
pAttachments.public static void nsubpassCount(long struct,
int value)
subpassCount field of the specified struct.public static void npSubpasses(long struct,
VkSubpassDescription2KHR.Buffer value)
pSubpasses.public static void ndependencyCount(long struct,
int value)
dependencyCount field of the specified struct.public static void npDependencies(long struct,
@Nullable
VkSubpassDependency2KHR.Buffer value)
pDependencies.public static void ncorrelatedViewMaskCount(long struct,
int value)
correlatedViewMaskCount field of the specified struct.public static void npCorrelatedViewMasks(long struct,
@Nullable
java.nio.IntBuffer value)
pCorrelatedViewMasks.public static void validate(long struct)
NULL.struct - the struct to validatepublic static void validate(long array,
int count)
validate(long) for each struct contained in the specified struct array.array - the struct array to validatecount - the number of structs in arrayCopyright LWJGL. All Rights Reserved. License terms.