Package org.lwjgl.vulkan
Class VkSubpassDescription2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDescription2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable
,org.lwjgl.system.NativeResource
,org.lwjgl.system.Pointer
public class VkSubpassDescription2KHR extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResource
Structure specifying a subpass description.Description
Parameters defined by this structure with the same name as those in
VkSubpassDescription
have the identical effect to those parameters.viewMask
has the same effect for the described subpass asVkRenderPassMultiviewCreateInfo
::pViewMasks
has on each corresponding subpass.Valid Usage
pipelineBindPoint
must bePIPELINE_BIND_POINT_GRAPHICS
colorAttachmentCount
must be less than or equal toVkPhysicalDeviceLimits
::maxColorAttachments
- If the first use of an attachment in this render pass is as an input attachment, and the attachment is not also used as a color or depth/stencil attachment in the same subpass, then
loadOp
must not beATTACHMENT_LOAD_OP_CLEAR
- If
pResolveAttachments
is notNULL
, for each resolve attachment that does not have the valueATTACHMENT_UNUSED
, the corresponding color attachment must not have the valueATTACHMENT_UNUSED
- If
pResolveAttachments
is notNULL
, for each resolve attachment that is notATTACHMENT_UNUSED
, the corresponding color attachment must not have a sample count ofSAMPLE_COUNT_1_BIT
- If
pResolveAttachments
is notNULL
, each resolve attachment that is notATTACHMENT_UNUSED
must have a sample count ofSAMPLE_COUNT_1_BIT
- Any given element of
pResolveAttachments
must have the sameVkFormat
as its corresponding color attachment - All attachments in
pColorAttachments
that are notATTACHMENT_UNUSED
must have the same sample count - If the
VK_AMD_mixed_attachment_samples
extension is enabled, all attachments inpColorAttachments
that are notATTACHMENT_UNUSED
must have a sample count that is smaller than or equal to the sample count ofpDepthStencilAttachment
if it is notATTACHMENT_UNUSED
- If neither the
VK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, and ifpDepthStencilAttachment
is notATTACHMENT_UNUSED
and any attachments inpColorAttachments
are notATTACHMENT_UNUSED
, they must have the same sample count - The
attachment
member of any element ofpPreserveAttachments
must not beATTACHMENT_UNUSED
- Any given element of
pPreserveAttachments
must not also be an element of any other member of the subpass description - If any attachment is used by more than one
VkAttachmentReference
member, then each use must use the samelayout
- If
flags
includesSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX
, it must also includeSUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX
. - The
aspectMask
member of any element ofpInputAttachments
must be a valid combination ofVkImageAspectFlagBits
- The
aspectMask
member of any element ofpInputAttachments
must not be 0 - The
aspectMask
member of each element ofpInputAttachments
must not includeIMAGE_ASPECT_METADATA_BIT
Valid Usage (Implicit)
sType
must beSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHR
flags
must be a valid combination ofVkSubpassDescriptionFlagBits
valuespipelineBindPoint
must be a validVkPipelineBindPoint
value- If
inputAttachmentCount
is not 0,pInputAttachments
must be a valid pointer to an array ofinputAttachmentCount
validVkAttachmentReference2KHR
structures - If
colorAttachmentCount
is not 0,pColorAttachments
must be a valid pointer to an array ofcolorAttachmentCount
validVkAttachmentReference2KHR
structures - If
colorAttachmentCount
is not 0, andpResolveAttachments
is notNULL
,pResolveAttachments
must be a valid pointer to an array ofcolorAttachmentCount
validVkAttachmentReference2KHR
structures - If
pDepthStencilAttachment
is notNULL
,pDepthStencilAttachment
must be a valid pointer to a validVkAttachmentReference2KHR
structure - If
preserveAttachmentCount
is not 0,pPreserveAttachments
must be a valid pointer to an array ofpreserveAttachmentCount
uint32_t
values
See Also
VkAttachmentReference2KHR
,VkRenderPassCreateInfo2KHR
Member documentation
sType
– the type of this structure.pNext
–NULL
or a pointer to an extension-specific structure.flags
– a bitmask ofVkSubpassDescriptionFlagBits
specifying usage of the subpass.pipelineBindPoint
– aVkPipelineBindPoint
value specifying the pipeline type supported for this subpass.viewMask
– a bitfield of view indices describing which views rendering is broadcast to in this subpass, when multiview is enabled.inputAttachmentCount
– the number of input attachments.pInputAttachments
– an array ofVkAttachmentReference2KHR
structures defining the input attachments for this subpass and their layouts.colorAttachmentCount
– the number of color attachments.pColorAttachments
– an array ofVkAttachmentReference2KHR
structures defining the color attachments for this subpass and their layouts.pResolveAttachments
– an optional array ofcolorAttachmentCount
VkAttachmentReference2KHR
structures defining the resolve attachments for this subpass and their layouts.pDepthStencilAttachment
– a pointer to aVkAttachmentReference2KHR
specifying the depth/stencil attachment for this subpass and its layout.preserveAttachmentCount
– the number of preserved attachments.pPreserveAttachments
– an array ofpreserveAttachmentCount
render pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass.
Layout
struct VkSubpassDescription2KHR { VkStructureType sType; void const * pNext; VkSubpassDescriptionFlags flags; VkPipelineBindPoint pipelineBindPoint; uint32_t viewMask; uint32_t inputAttachmentCount;
VkAttachmentReference2KHR
const * pInputAttachments; uint32_t colorAttachmentCount;VkAttachmentReference2KHR
const * pColorAttachments;VkAttachmentReference2KHR
const * pResolveAttachments;VkAttachmentReference2KHR
const * pDepthStencilAttachment; uint32_t preserveAttachmentCount; uint32_t const * pPreserveAttachments; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSubpassDescription2KHR.Buffer
An array ofVkSubpassDescription2KHR
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COLORATTACHMENTCOUNT
FLAGS
INPUTATTACHMENTCOUNT
PCOLORATTACHMENTS
PDEPTHSTENCILATTACHMENT
PINPUTATTACHMENTS
PIPELINEBINDPOINT
PNEXT
PPRESERVEATTACHMENTS
PRESERVEATTACHMENTCOUNT
PRESOLVEATTACHMENTSThe struct member offsets.static int
SIZEOF
The struct size in bytes.static int
STYPE
VIEWMASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescription2KHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescription2KHR
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescription2KHR
calloc()
Returns a newVkSubpassDescription2KHR
instance allocated withmemCalloc
.static VkSubpassDescription2KHR.Buffer
calloc(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withmemCalloc
.static VkSubpassDescription2KHR
callocStack()
Returns a newVkSubpassDescription2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescription2KHR.Buffer
callocStack(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescription2KHR.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescription2KHR
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
colorAttachmentCount()
Returns the value of thecolorAttachmentCount
field.VkSubpassDescription2KHR
colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCount
field.static VkSubpassDescription2KHR
create()
Returns a newVkSubpassDescription2KHR
instance allocated withBufferUtils
.static VkSubpassDescription2KHR.Buffer
create(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withBufferUtils
.static VkSubpassDescription2KHR
create(long address)
Returns a newVkSubpassDescription2KHR
instance for the specified memory address.static VkSubpassDescription2KHR.Buffer
create(long address, int capacity)
Create aVkSubpassDescription2KHR.Buffer
instance at the specified memory.static VkSubpassDescription2KHR
createSafe(long address)
static VkSubpassDescription2KHR.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkSubpassDescription2KHR
flags(int value)
Sets the specified value to theflags
field.int
inputAttachmentCount()
Returns the value of theinputAttachmentCount
field.static VkSubpassDescription2KHR
malloc()
Returns a newVkSubpassDescription2KHR
instance allocated withmemAlloc
.static VkSubpassDescription2KHR.Buffer
malloc(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withmemAlloc
.static VkSubpassDescription2KHR
mallocStack()
Returns a newVkSubpassDescription2KHR
instance allocated on the thread-localMemoryStack
.static VkSubpassDescription2KHR.Buffer
mallocStack(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the thread-localMemoryStack
.static VkSubpassDescription2KHR.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDescription2KHR
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR
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 VkAttachmentReference2KHR.Buffer
npColorAttachments(long struct)
Unsafe version ofpColorAttachments()
.static void
npColorAttachments(long struct, VkAttachmentReference2KHR.Buffer value)
Unsafe version ofpColorAttachments
.static VkAttachmentReference2KHR
npDepthStencilAttachment(long struct)
Unsafe version ofpDepthStencilAttachment()
.static void
npDepthStencilAttachment(long struct, VkAttachmentReference2KHR value)
Unsafe version ofpDepthStencilAttachment
.static VkAttachmentReference2KHR.Buffer
npInputAttachments(long struct)
Unsafe version ofpInputAttachments()
.static void
npInputAttachments(long struct, VkAttachmentReference2KHR.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 java.nio.IntBuffer
npPreserveAttachments(long struct)
Unsafe version ofpPreserveAttachments
.static void
npPreserveAttachments(long struct, java.nio.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 VkAttachmentReference2KHR.Buffer
npResolveAttachments(long struct)
Unsafe version ofpResolveAttachments()
.static void
npResolveAttachments(long struct, VkAttachmentReference2KHR.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
.VkAttachmentReference2KHR.Buffer
pColorAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepColorAttachments
field.VkSubpassDescription2KHR
pColorAttachments(VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepColorAttachments
field.VkAttachmentReference2KHR
pDepthStencilAttachment()
Returns aVkAttachmentReference2KHR
view of the struct pointed to by thepDepthStencilAttachment
field.VkSubpassDescription2KHR
pDepthStencilAttachment(VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHR
to thepDepthStencilAttachment
field.VkAttachmentReference2KHR.Buffer
pInputAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepInputAttachments
field.VkSubpassDescription2KHR
pInputAttachments(VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepInputAttachments
field.int
pipelineBindPoint()
Returns the value of thepipelineBindPoint
field.VkSubpassDescription2KHR
pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPoint
field.long
pNext()
Returns the value of thepNext
field.VkSubpassDescription2KHR
pNext(long value)
Sets the specified value to thepNext
field.java.nio.IntBuffer
pPreserveAttachments()
Returns aIntBuffer
view of the data pointed to by thepPreserveAttachments
field.VkSubpassDescription2KHR
pPreserveAttachments(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field.int
preserveAttachmentCount()
Returns the value of thepreserveAttachmentCount
field.VkAttachmentReference2KHR.Buffer
pResolveAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepResolveAttachments
field.VkSubpassDescription2KHR
pResolveAttachments(VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepResolveAttachments
field.VkSubpassDescription2KHR
set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, VkAttachmentReference2KHR.Buffer pInputAttachments, int colorAttachmentCount, VkAttachmentReference2KHR.Buffer pColorAttachments, VkAttachmentReference2KHR.Buffer pResolveAttachments, VkAttachmentReference2KHR pDepthStencilAttachment, java.nio.IntBuffer pPreserveAttachments)
Initializes this struct with the specified values.VkSubpassDescription2KHR
set(VkSubpassDescription2KHR src)
Copies the specified struct data to this struct.int
sizeof()
int
sType()
Returns the value of thesType
field.VkSubpassDescription2KHR
sType(int value)
Sets the specified value to thesType
field.static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.int
viewMask()
Returns the value of theviewMask
field.VkSubpassDescription2KHR
viewMask(int value)
Sets the specified value to theviewMask
field.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
STYPE, PNEXT, FLAGS, PIPELINEBINDPOINT, VIEWMASK, INPUTATTACHMENTCOUNT, PINPUTATTACHMENTS, COLORATTACHMENTCOUNT, PCOLORATTACHMENTS, PRESOLVEATTACHMENTS, PDEPTHSTENCILATTACHMENT, PRESERVEATTACHMENTCOUNT, PPRESERVEATTACHMENTS
The struct member offsets.
-
-
Constructor Detail
-
VkSubpassDescription2KHR
public VkSubpassDescription2KHR(java.nio.ByteBuffer container)
Creates aVkSubpassDescription2KHR
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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesType
field.
-
pNext
public long pNext()
Returns the value of thepNext
field.
-
flags
public int flags()
Returns the value of theflags
field.
-
pipelineBindPoint
public int pipelineBindPoint()
Returns the value of thepipelineBindPoint
field.
-
viewMask
public int viewMask()
Returns the value of theviewMask
field.
-
inputAttachmentCount
public int inputAttachmentCount()
Returns the value of theinputAttachmentCount
field.
-
pInputAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pInputAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepInputAttachments
field.
-
colorAttachmentCount
public int colorAttachmentCount()
Returns the value of thecolorAttachmentCount
field.
-
pColorAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pColorAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepColorAttachments
field.
-
pResolveAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pResolveAttachments()
Returns aVkAttachmentReference2KHR.Buffer
view of the struct array pointed to by thepResolveAttachments
field.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference2KHR pDepthStencilAttachment()
Returns aVkAttachmentReference2KHR
view of the struct pointed to by thepDepthStencilAttachment
field.
-
preserveAttachmentCount
public int preserveAttachmentCount()
Returns the value of thepreserveAttachmentCount
field.
-
pPreserveAttachments
@Nullable public java.nio.IntBuffer pPreserveAttachments()
Returns aIntBuffer
view of the data pointed to by thepPreserveAttachments
field.
-
sType
public VkSubpassDescription2KHR sType(int value)
Sets the specified value to thesType
field.
-
pNext
public VkSubpassDescription2KHR pNext(long value)
Sets the specified value to thepNext
field.
-
flags
public VkSubpassDescription2KHR flags(int value)
Sets the specified value to theflags
field.
-
pipelineBindPoint
public VkSubpassDescription2KHR pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPoint
field.
-
viewMask
public VkSubpassDescription2KHR viewMask(int value)
Sets the specified value to theviewMask
field.
-
pInputAttachments
public VkSubpassDescription2KHR pInputAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepInputAttachments
field.
-
colorAttachmentCount
public VkSubpassDescription2KHR colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCount
field.
-
pColorAttachments
public VkSubpassDescription2KHR pColorAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepColorAttachments
field.
-
pResolveAttachments
public VkSubpassDescription2KHR pResolveAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Buffer
to thepResolveAttachments
field.
-
pDepthStencilAttachment
public VkSubpassDescription2KHR pDepthStencilAttachment(@Nullable VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHR
to thepDepthStencilAttachment
field.
-
pPreserveAttachments
public VkSubpassDescription2KHR pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field.
-
set
public VkSubpassDescription2KHR set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, @Nullable VkAttachmentReference2KHR.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference2KHR.Buffer pColorAttachments, @Nullable VkAttachmentReference2KHR.Buffer pResolveAttachments, @Nullable VkAttachmentReference2KHR pDepthStencilAttachment, @Nullable java.nio.IntBuffer pPreserveAttachments)
Initializes this struct with the specified values.
-
set
public VkSubpassDescription2KHR set(VkSubpassDescription2KHR src)
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDescription2KHR malloc()
Returns a newVkSubpassDescription2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription2KHR calloc()
Returns a newVkSubpassDescription2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSubpassDescription2KHR create()
Returns a newVkSubpassDescription2KHR
instance allocated withBufferUtils
.
-
create
public static VkSubpassDescription2KHR create(long address)
Returns a newVkSubpassDescription2KHR
instance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription2KHR createSafe(long address)
-
malloc
public static VkSubpassDescription2KHR.Buffer malloc(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSubpassDescription2KHR.Buffer calloc(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(long address, int capacity)
Create aVkSubpassDescription2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDescription2KHR.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSubpassDescription2KHR mallocStack()
Returns a newVkSubpassDescription2KHR
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSubpassDescription2KHR callocStack()
Returns a newVkSubpassDescription2KHR
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescription2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSubpassDescription2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
mallocStack
public static VkSubpassDescription2KHR.Buffer mallocStack(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSubpassDescription2KHR.Buffer callocStack(int capacity)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacity
-
mallocStack
public static VkSubpassDescription2KHR.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
callocStack
public static VkSubpassDescription2KHR.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocatecapacity
- the buffer capacity
-
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
@Nullable public static VkAttachmentReference2KHR.Buffer npInputAttachments(long struct)
Unsafe version ofpInputAttachments()
.
-
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount()
.
-
npColorAttachments
@Nullable public static VkAttachmentReference2KHR.Buffer npColorAttachments(long struct)
Unsafe version ofpColorAttachments()
.
-
npResolveAttachments
@Nullable public static VkAttachmentReference2KHR.Buffer npResolveAttachments(long struct)
Unsafe version ofpResolveAttachments()
.
-
npDepthStencilAttachment
@Nullable public static VkAttachmentReference2KHR npDepthStencilAttachment(long struct)
Unsafe version ofpDepthStencilAttachment()
.
-
npreserveAttachmentCount
public static int npreserveAttachmentCount(long struct)
Unsafe version ofpreserveAttachmentCount()
.
-
npPreserveAttachments
@Nullable public static java.nio.IntBuffer npPreserveAttachments(long struct)
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
public static void npInputAttachments(long struct, @Nullable VkAttachmentReference2KHR.Buffer value)
Unsafe version ofpInputAttachments
.
-
ncolorAttachmentCount
public static void ncolorAttachmentCount(long struct, int value)
Sets the specified value to thecolorAttachmentCount
field of the specifiedstruct
.
-
npColorAttachments
public static void npColorAttachments(long struct, @Nullable VkAttachmentReference2KHR.Buffer value)
Unsafe version ofpColorAttachments
.
-
npResolveAttachments
public static void npResolveAttachments(long struct, @Nullable VkAttachmentReference2KHR.Buffer value)
Unsafe version ofpResolveAttachments
.
-
npDepthStencilAttachment
public static void npDepthStencilAttachment(long struct, @Nullable VkAttachmentReference2KHR value)
Unsafe version ofpDepthStencilAttachment
.
-
npreserveAttachmentCount
public static void npreserveAttachmentCount(long struct, int value)
Sets the specified value to thepreserveAttachmentCount
field of the specifiedstruct
.
-
npPreserveAttachments
public static void npPreserveAttachments(long struct, @Nullable java.nio.IntBuffer value)
Unsafe version ofpPreserveAttachments
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-