Package org.lwjgl.vulkan
Class VkSubpassDescription2
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
- Direct Known Subclasses:
VkSubpassDescription2KHR
struct VkSubpassDescription2 {
VkStructureType sType;
void const * pNext;
VkSubpassDescriptionFlags flags;
VkPipelineBindPoint pipelineBindPoint;
uint32_t viewMask;
uint32_t inputAttachmentCount;
{@link VkAttachmentReference2 VkAttachmentReference2} const * pInputAttachments;
uint32_t colorAttachmentCount;
{@link VkAttachmentReference2 VkAttachmentReference2} const * pColorAttachments;
{@link VkAttachmentReference2 VkAttachmentReference2} const * pResolveAttachments;
{@link VkAttachmentReference2 VkAttachmentReference2} const * pDepthStencilAttachment;
uint32_t preserveAttachmentCount;
uint32_t const * pPreserveAttachments;
}
-
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 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
ConstructorsConstructorDescriptionVkSubpassDescription2
(ByteBuffer container) Creates aVkSubpassDescription2
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSubpassDescription2
calloc()
Returns a newVkSubpassDescription2
instance allocated withmemCalloc
.static VkSubpassDescription2.Buffer
calloc
(int capacity) Returns a newVkSubpassDescription2.Buffer
instance allocated withmemCalloc
.static VkSubpassDescription2.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescription2
calloc
(MemoryStack stack) Returns a newVkSubpassDescription2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
colorAttachmentCount
(int value) Sets the specified value to thecolorAttachmentCount
field.static VkSubpassDescription2
create()
Returns a newVkSubpassDescription2
instance allocated withBufferUtils
.static VkSubpassDescription2.Buffer
create
(int capacity) Returns a newVkSubpassDescription2.Buffer
instance allocated withBufferUtils
.static VkSubpassDescription2
create
(long address) Returns a newVkSubpassDescription2
instance for the specified memory address.static VkSubpassDescription2.Buffer
create
(long address, int capacity) Create aVkSubpassDescription2.Buffer
instance at the specified memory.static @Nullable VkSubpassDescription2
createSafe
(long address) static @Nullable VkSubpassDescription2.Buffer
createSafe
(long address, int capacity) int
flags()
flags
(int value) Sets the specified value to theflags
field.int
static VkSubpassDescription2
malloc()
Returns a newVkSubpassDescription2
instance allocated withmemAlloc
.static VkSubpassDescription2.Buffer
malloc
(int capacity) Returns a newVkSubpassDescription2.Buffer
instance allocated withmemAlloc
.static VkSubpassDescription2.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkSubpassDescription2.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDescription2
malloc
(MemoryStack stack) Returns a newVkSubpassDescription2
instance allocated on the specifiedMemoryStack
.static int
ncolorAttachmentCount
(long struct) Unsafe version ofcolorAttachmentCount()
.static void
ncolorAttachmentCount
(long struct, int value) Sets the specified value to thecolorAttachmentCount
field of the specifiedstruct
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static int
ninputAttachmentCount
(long struct) Unsafe version ofinputAttachmentCount()
.static void
ninputAttachmentCount
(long struct, int value) Sets the specified value to theinputAttachmentCount
field of the specifiedstruct
.static @Nullable VkAttachmentReference2.Buffer
npColorAttachments
(long struct) Unsafe version ofpColorAttachments()
.static void
npColorAttachments
(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpColorAttachments
.static @Nullable VkAttachmentReference2
npDepthStencilAttachment
(long struct) Unsafe version ofpDepthStencilAttachment()
.static void
npDepthStencilAttachment
(long struct, @Nullable VkAttachmentReference2 value) Unsafe version ofpDepthStencilAttachment
.static @Nullable VkAttachmentReference2.Buffer
npInputAttachments
(long struct) Unsafe version ofpInputAttachments()
.static void
npInputAttachments
(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpInputAttachments
.static int
npipelineBindPoint
(long struct) Unsafe version ofpipelineBindPoint()
.static void
npipelineBindPoint
(long struct, int value) Unsafe version ofpipelineBindPoint
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static @Nullable IntBuffer
npPreserveAttachments
(long struct) Unsafe version ofpPreserveAttachments
.static void
npPreserveAttachments
(long struct, @Nullable IntBuffer value) Unsafe version ofpPreserveAttachments
.static int
npreserveAttachmentCount
(long struct) Unsafe version ofpreserveAttachmentCount()
.static void
npreserveAttachmentCount
(long struct, int value) Sets the specified value to thepreserveAttachmentCount
field of the specifiedstruct
.static @Nullable VkAttachmentReference2.Buffer
npResolveAttachments
(long struct) Unsafe version ofpResolveAttachments()
.static void
npResolveAttachments
(long struct, @Nullable VkAttachmentReference2.Buffer value) Unsafe version ofpResolveAttachments
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static int
nviewMask
(long struct) Unsafe version ofviewMask()
.static void
nviewMask
(long struct, int value) Unsafe version ofviewMask
.@Nullable VkAttachmentReference2.Buffer
pColorAttachments
(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepColorAttachments
field.@Nullable VkAttachmentReference2
pDepthStencilAttachment
(@Nullable VkAttachmentReference2 value) Sets the address of the specifiedVkAttachmentReference2
to thepDepthStencilAttachment
field.@Nullable VkAttachmentReference2.Buffer
pInputAttachments
(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepInputAttachments
field.int
pipelineBindPoint
(int value) Sets the specified value to thepipelineBindPoint
field.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHR
value to thepNext
chain.Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXT
value to thepNext
chain.Prepends the specifiedVkRenderPassCreationControlEXT
value to thepNext
chain.Prepends the specifiedVkRenderPassSubpassFeedbackCreateInfoEXT
value to thepNext
chain.Prepends the specifiedVkSubpassDescriptionDepthStencilResolve
value to thepNext
chain.Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHR
value to thepNext
chain.@Nullable IntBuffer
pPreserveAttachments
(@Nullable IntBuffer value) Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field.int
@Nullable VkAttachmentReference2.Buffer
pResolveAttachments
(@Nullable VkAttachmentReference2.Buffer value) Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepResolveAttachments
field.set
(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2.Buffer pColorAttachments, @Nullable VkAttachmentReference2.Buffer pResolveAttachments, @Nullable VkAttachmentReference2 pDepthStencilAttachment, @Nullable IntBuffer pPreserveAttachments) Initializes this struct with the specified values.set
(VkSubpassDescription2 src) 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_SUBPASS_DESCRIPTION_2
value to thesType
field.static void
validate
(long struct) Validates pointer members that should not beNULL
.int
viewMask()
viewMask
(int value) Sets the specified value to theviewMask
field.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. -
PIPELINEBINDPOINT
public static final int PIPELINEBINDPOINTThe struct member offsets. -
VIEWMASK
public static final int VIEWMASKThe struct member offsets. -
INPUTATTACHMENTCOUNT
public static final int INPUTATTACHMENTCOUNTThe struct member offsets. -
PINPUTATTACHMENTS
public static final int PINPUTATTACHMENTSThe struct member offsets. -
COLORATTACHMENTCOUNT
public static final int COLORATTACHMENTCOUNTThe struct member offsets. -
PCOLORATTACHMENTS
public static final int PCOLORATTACHMENTSThe struct member offsets. -
PRESOLVEATTACHMENTS
public static final int PRESOLVEATTACHMENTSThe struct member offsets. -
PDEPTHSTENCILATTACHMENT
public static final int PDEPTHSTENCILATTACHMENTThe struct member offsets. -
PRESERVEATTACHMENTCOUNT
public static final int PRESERVEATTACHMENTCOUNTThe struct member offsets. -
PPRESERVEATTACHMENTS
public static final int PPRESERVEATTACHMENTSThe struct member offsets.
-
-
Constructor Details
-
VkSubpassDescription2
Creates aVkSubpassDescription2
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<VkSubpassDescription2>
-
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.
-
pipelineBindPoint
public int pipelineBindPoint()- Returns:
- the value of the
pipelineBindPoint
field.
-
viewMask
public int viewMask()- Returns:
- the value of the
viewMask
field.
-
inputAttachmentCount
public int inputAttachmentCount()- Returns:
- the value of the
inputAttachmentCount
field.
-
pInputAttachments
- Returns:
- a
VkAttachmentReference2.Buffer
view of the struct array pointed to by thepInputAttachments
field.
-
colorAttachmentCount
public int colorAttachmentCount()- Returns:
- the value of the
colorAttachmentCount
field.
-
pColorAttachments
- Returns:
- a
VkAttachmentReference2.Buffer
view of the struct array pointed to by thepColorAttachments
field.
-
pResolveAttachments
- Returns:
- a
VkAttachmentReference2.Buffer
view of the struct array pointed to by thepResolveAttachments
field.
-
pDepthStencilAttachment
- Returns:
- a
VkAttachmentReference2
view of the struct pointed to by thepDepthStencilAttachment
field.
-
preserveAttachmentCount
public int preserveAttachmentCount()- Returns:
- the value of the
preserveAttachmentCount
field.
-
pPreserveAttachments
- Returns:
- a
IntBuffer
view of the data pointed to by thepPreserveAttachments
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHR
value to thepNext
chain. -
pNext
Prepends the specifiedVkMultisampledRenderToSingleSampledInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkRenderPassCreationControlEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkRenderPassSubpassFeedbackCreateInfoEXT
value to thepNext
chain. -
pNext
Prepends the specifiedVkSubpassDescriptionDepthStencilResolve
value to thepNext
chain. -
pNext
Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHR
value to thepNext
chain. -
flags
Sets the specified value to theflags
field. -
pipelineBindPoint
Sets the specified value to thepipelineBindPoint
field. -
viewMask
Sets the specified value to theviewMask
field. -
pInputAttachments
Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepInputAttachments
field. -
colorAttachmentCount
Sets the specified value to thecolorAttachmentCount
field. -
pColorAttachments
Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepColorAttachments
field. -
pResolveAttachments
Sets the address of the specifiedVkAttachmentReference2.Buffer
to thepResolveAttachments
field. -
pDepthStencilAttachment
Sets the address of the specifiedVkAttachmentReference2
to thepDepthStencilAttachment
field. -
pPreserveAttachments
Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field. -
set
public VkSubpassDescription2 set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2.Buffer pColorAttachments, @Nullable VkAttachmentReference2.Buffer pResolveAttachments, @Nullable VkAttachmentReference2 pDepthStencilAttachment, @Nullable IntBuffer pPreserveAttachments) 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 newVkSubpassDescription2
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSubpassDescription2
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSubpassDescription2
instance allocated withBufferUtils
. -
create
Returns a newVkSubpassDescription2
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSubpassDescription2.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSubpassDescription2.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSubpassDescription2.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSubpassDescription2.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkSubpassDescription2
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSubpassDescription2.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSubpassDescription2.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()
. -
npipelineBindPoint
public static int npipelineBindPoint(long struct) Unsafe version ofpipelineBindPoint()
. -
nviewMask
public static int nviewMask(long struct) Unsafe version ofviewMask()
. -
ninputAttachmentCount
public static int ninputAttachmentCount(long struct) Unsafe version ofinputAttachmentCount()
. -
npInputAttachments
Unsafe version ofpInputAttachments()
. -
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct) Unsafe version ofcolorAttachmentCount()
. -
npColorAttachments
Unsafe version ofpColorAttachments()
. -
npResolveAttachments
Unsafe version ofpResolveAttachments()
. -
npDepthStencilAttachment
Unsafe version ofpDepthStencilAttachment()
. -
npreserveAttachmentCount
public static int npreserveAttachmentCount(long struct) Unsafe version ofpreserveAttachmentCount()
. -
npPreserveAttachments
Unsafe version ofpPreserveAttachments
. -
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
. -
npipelineBindPoint
public static void npipelineBindPoint(long struct, int value) Unsafe version ofpipelineBindPoint
. -
nviewMask
public static void nviewMask(long struct, int value) Unsafe version ofviewMask
. -
ninputAttachmentCount
public static void ninputAttachmentCount(long struct, int value) Sets the specified value to theinputAttachmentCount
field of the specifiedstruct
. -
npInputAttachments
Unsafe version ofpInputAttachments
. -
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value) Sets the specified value to thecolorAttachmentCount
field of the specifiedstruct
. -
npColorAttachments
Unsafe version ofpColorAttachments
. -
npResolveAttachments
Unsafe version ofpResolveAttachments
. -
npDepthStencilAttachment
Unsafe version ofpDepthStencilAttachment
. -
npreserveAttachmentCount
public static void npreserveAttachmentCount(long struct, int value) Sets the specified value to thepreserveAttachmentCount
field of the specifiedstruct
. -
npPreserveAttachments
Unsafe version ofpPreserveAttachments
. -
validate
public static void validate(long struct) Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-