Package org.lwjgl.vulkan
Class VkRenderPassCreateInfo2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkRenderPassCreateInfo2KHR
public class VkRenderPassCreateInfo2
extends Struct<VkRenderPassCreateInfo2>
implements NativeResource
struct VkRenderPassCreateInfo2 {
VkStructureType sType;
void const * pNext;
VkRenderPassCreateFlags flags;
uint32_t attachmentCount;
{@link VkAttachmentDescription2 VkAttachmentDescription2} const * pAttachments;
uint32_t subpassCount;
{@link VkSubpassDescription2 VkSubpassDescription2} const * pSubpasses;
uint32_t dependencyCount;
{@link VkSubpassDependency2 VkSubpassDependency2} const * pDependencies;
uint32_t correlatedViewMaskCount;
uint32_t const * pCorrelatedViewMasks;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkRenderPassCreateInfo2
(ByteBuffer container) Creates aVkRenderPassCreateInfo2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionint
static VkRenderPassCreateInfo2
calloc()
Returns a newVkRenderPassCreateInfo2
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkRenderPassCreateInfo2
calloc
(MemoryStack stack) Returns a newVkRenderPassCreateInfo2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
static VkRenderPassCreateInfo2
create()
Returns a newVkRenderPassCreateInfo2
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withBufferUtils
.static VkRenderPassCreateInfo2
create
(long address) Returns a newVkRenderPassCreateInfo2
instance for the specified memory address.create
(long address, int capacity) Create aVkRenderPassCreateInfo2.Buffer
instance at the specified memory.static @Nullable VkRenderPassCreateInfo2
createSafe
(long address) static @Nullable VkRenderPassCreateInfo2.Buffer
createSafe
(long address, int capacity) int
int
flags()
flags
(int value) Sets the specified value to theflags
field.static VkRenderPassCreateInfo2
malloc()
Returns a newVkRenderPassCreateInfo2
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated on the specifiedMemoryStack
.static VkRenderPassCreateInfo2
malloc
(MemoryStack stack) Returns a newVkRenderPassCreateInfo2
instance allocated on the specifiedMemoryStack
.static int
nattachmentCount
(long struct) Unsafe version ofattachmentCount()
.static void
nattachmentCount
(long struct, int value) Sets the specified value to theattachmentCount
field of the specifiedstruct
.static int
ncorrelatedViewMaskCount
(long struct) Unsafe version ofcorrelatedViewMaskCount()
.static void
ncorrelatedViewMaskCount
(long struct, int value) Sets the specified value to thecorrelatedViewMaskCount
field of the specifiedstruct
.static int
ndependencyCount
(long struct) Unsafe version ofdependencyCount()
.static void
ndependencyCount
(long struct, int value) Sets the specified value to thedependencyCount
field of the specifiedstruct
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static @Nullable VkAttachmentDescription2.Buffer
npAttachments
(long struct) Unsafe version ofpAttachments()
.static void
npAttachments
(long struct, @Nullable VkAttachmentDescription2.Buffer value) Unsafe version ofpAttachments
.static @Nullable IntBuffer
npCorrelatedViewMasks
(long struct) Unsafe version ofpCorrelatedViewMasks
.static void
npCorrelatedViewMasks
(long struct, @Nullable IntBuffer value) Unsafe version ofpCorrelatedViewMasks
.static @Nullable VkSubpassDependency2.Buffer
npDependencies
(long struct) Unsafe version ofpDependencies()
.static void
npDependencies
(long struct, @Nullable VkSubpassDependency2.Buffer value) Unsafe version ofpDependencies
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static VkSubpassDescription2.Buffer
npSubpasses
(long struct) Unsafe version ofpSubpasses()
.static void
npSubpasses
(long struct, VkSubpassDescription2.Buffer value) Unsafe version ofpSubpasses
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
nsubpassCount
(long struct) Unsafe version ofsubpassCount()
.static void
nsubpassCount
(long struct, int value) Sets the specified value to thesubpassCount
field of the specifiedstruct
.@Nullable VkAttachmentDescription2.Buffer
pAttachments
(@Nullable VkAttachmentDescription2.Buffer value) Sets the address of the specifiedVkAttachmentDescription2.Buffer
to thepAttachments
field.@Nullable IntBuffer
pCorrelatedViewMasks
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepCorrelatedViewMasks
field.@Nullable VkSubpassDependency2.Buffer
pDependencies
(@Nullable VkSubpassDependency2.Buffer value) Sets the address of the specifiedVkSubpassDependency2.Buffer
to thepDependencies
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkRenderPassCreationControlEXT
value to thepNext
chain.Prepends the specifiedVkRenderPassCreationFeedbackCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkRenderPassFragmentDensityMapCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOM
value to thepNext
chain.pNext
(VkTileMemorySizeInfoQCOM value) Prepends the specifiedVkTileMemorySizeInfoQCOM
value to thepNext
chain.Sets the address of the specifiedVkSubpassDescription2.Buffer
to thepSubpasses
field.set
(int sType, long pNext, int flags, @Nullable VkAttachmentDescription2.Buffer pAttachments, VkSubpassDescription2.Buffer pSubpasses, @Nullable VkSubpassDependency2.Buffer pDependencies, @Nullable IntBuffer pCorrelatedViewMasks) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2
value to thesType
field.int
static void
validate
(long struct) Validates pointer members that should not beNULL
.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets. -
ATTACHMENTCOUNT
public static final int ATTACHMENTCOUNTThe struct member offsets. -
PATTACHMENTS
public static final int PATTACHMENTSThe struct member offsets. -
SUBPASSCOUNT
public static final int SUBPASSCOUNTThe struct member offsets. -
PSUBPASSES
public static final int PSUBPASSESThe struct member offsets. -
DEPENDENCYCOUNT
public static final int DEPENDENCYCOUNTThe struct member offsets. -
PDEPENDENCIES
public static final int PDEPENDENCIESThe struct member offsets. -
CORRELATEDVIEWMASKCOUNT
public static final int CORRELATEDVIEWMASKCOUNTThe struct member offsets. -
PCORRELATEDVIEWMASKS
public static final int PCORRELATEDVIEWMASKSThe struct member offsets.
-
-
Constructor Details
-
VkRenderPassCreateInfo2
Creates aVkRenderPassCreateInfo2
instance at the current position of the specifiedByteBuffer
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.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkRenderPassCreateInfo2>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
attachmentCount
public int attachmentCount()- Returns:
- the value of the
attachmentCount
field.
-
pAttachments
- Returns:
- a
VkAttachmentDescription2.Buffer
view of the struct array pointed to by thepAttachments
field.
-
subpassCount
public int subpassCount()- Returns:
- the value of the
subpassCount
field.
-
pSubpasses
- Returns:
- a
VkSubpassDescription2.Buffer
view of the struct array pointed to by thepSubpasses
field.
-
dependencyCount
public int dependencyCount()- Returns:
- the value of the
dependencyCount
field.
-
pDependencies
- Returns:
- a
VkSubpassDependency2.Buffer
view of the struct array pointed to by thepDependencies
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_RENDER_PASS_CREATE_INFO_2
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkRenderPassCreationControlEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkRenderPassCreationFeedbackCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkRenderPassFragmentDensityMapCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkRenderPassTileShadingCreateInfoQCOM
value to thepNext
chain. -
pNext
Prepends the specifiedVkTileMemorySizeInfoQCOM
value to thepNext
chain. -
flags
Sets the specified value to theflags
field. -
pAttachments
Sets the address of the specifiedVkAttachmentDescription2.Buffer
to thepAttachments
field. -
pSubpasses
Sets the address of the specifiedVkSubpassDescription2.Buffer
to thepSubpasses
field. -
pDependencies
Sets the address of the specifiedVkSubpassDependency2.Buffer
to thepDependencies
field. -
set
public VkRenderPassCreateInfo2 set(int sType, long pNext, int flags, @Nullable VkAttachmentDescription2.Buffer pAttachments, VkSubpassDescription2.Buffer pSubpasses, @Nullable VkSubpassDependency2.Buffer pDependencies, @Nullable IntBuffer pCorrelatedViewMasks) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkRenderPassCreateInfo2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkRenderPassCreateInfo2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkRenderPassCreateInfo2
instance allocated withBufferUtils
. -
create
Returns a newVkRenderPassCreateInfo2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkRenderPassCreateInfo2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkRenderPassCreateInfo2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkRenderPassCreateInfo2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkRenderPassCreateInfo2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nattachmentCount
public static int nattachmentCount(long struct) Unsafe version ofattachmentCount()
. -
npAttachments
Unsafe version ofpAttachments()
. -
nsubpassCount
public static int nsubpassCount(long struct) Unsafe version ofsubpassCount()
. -
npSubpasses
Unsafe version ofpSubpasses()
. -
ndependencyCount
public static int ndependencyCount(long struct) Unsafe version ofdependencyCount()
. -
npDependencies
Unsafe version ofpDependencies()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
. -
nattachmentCount
public static void nattachmentCount(long struct, int value) Sets the specified value to theattachmentCount
field of the specifiedstruct
. -
npAttachments
Unsafe version ofpAttachments
. -
nsubpassCount
public static void nsubpassCount(long struct, int value) Sets the specified value to thesubpassCount
field of the specifiedstruct
. -
npSubpasses
Unsafe version ofpSubpasses
. -
ndependencyCount
public static void ndependencyCount(long struct, int value) Sets the specified value to thedependencyCount
field of the specifiedstruct
. -
npDependencies
Unsafe version ofpDependencies
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-