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.NativeResourceStructure specifying a subpass description.Description
Parameters defined by this structure with the same name as those in
VkSubpassDescriptionhave the identical effect to those parameters.viewMaskhas the same effect for the described subpass asVkRenderPassMultiviewCreateInfo::pViewMaskshas on each corresponding subpass.Valid Usage
pipelineBindPointmust bePIPELINE_BIND_POINT_GRAPHICScolorAttachmentCountmust 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
loadOpmust not beATTACHMENT_LOAD_OP_CLEAR - If
pResolveAttachmentsis notNULL, for each resolve attachment that does not have the valueATTACHMENT_UNUSED, the corresponding color attachment must not have the valueATTACHMENT_UNUSED - If
pResolveAttachmentsis notNULL, for each resolve attachment that is notATTACHMENT_UNUSED, the corresponding color attachment must not have a sample count ofSAMPLE_COUNT_1_BIT - If
pResolveAttachmentsis notNULL, each resolve attachment that is notATTACHMENT_UNUSEDmust have a sample count ofSAMPLE_COUNT_1_BIT - Any given element of
pResolveAttachmentsmust have the sameVkFormatas its corresponding color attachment - All attachments in
pColorAttachmentsthat are notATTACHMENT_UNUSEDmust have the same sample count - If the
VK_AMD_mixed_attachment_samplesextension is enabled, all attachments inpColorAttachmentsthat are notATTACHMENT_UNUSEDmust have a sample count that is smaller than or equal to the sample count ofpDepthStencilAttachmentif it is notATTACHMENT_UNUSED - If neither the
VK_AMD_mixed_attachment_samplesnor theVK_NV_framebuffer_mixed_samplesextensions are enabled, and ifpDepthStencilAttachmentis notATTACHMENT_UNUSEDand any attachments inpColorAttachmentsare notATTACHMENT_UNUSED, they must have the same sample count - The
attachmentmember of any element ofpPreserveAttachmentsmust not beATTACHMENT_UNUSED - Any given element of
pPreserveAttachmentsmust not also be an element of any other member of the subpass description - If any attachment is used by more than one
VkAttachmentReferencemember, then each use must use the samelayout - If
flagsincludesSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX, it must also includeSUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX. - The
aspectMaskmember of any element ofpInputAttachmentsmust be a valid combination ofVkImageAspectFlagBits - The
aspectMaskmember of any element ofpInputAttachmentsmust not be 0 - The
aspectMaskmember of each element ofpInputAttachmentsmust not includeIMAGE_ASPECT_METADATA_BIT
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2_KHRflagsmust be a valid combination ofVkSubpassDescriptionFlagBitsvaluespipelineBindPointmust be a validVkPipelineBindPointvalue- If
inputAttachmentCountis not 0,pInputAttachmentsmust be a valid pointer to an array ofinputAttachmentCountvalidVkAttachmentReference2KHRstructures - If
colorAttachmentCountis not 0,pColorAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReference2KHRstructures - If
colorAttachmentCountis not 0, andpResolveAttachmentsis notNULL,pResolveAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReference2KHRstructures - If
pDepthStencilAttachmentis notNULL,pDepthStencilAttachmentmust be a valid pointer to a validVkAttachmentReference2KHRstructure - If
preserveAttachmentCountis not 0,pPreserveAttachmentsmust be a valid pointer to an array ofpreserveAttachmentCountuint32_tvalues
See Also
VkAttachmentReference2KHR,VkRenderPassCreateInfo2KHRMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.flags– a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.pipelineBindPoint– aVkPipelineBindPointvalue 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 ofVkAttachmentReference2KHRstructures defining the input attachments for this subpass and their layouts.colorAttachmentCount– the number of color attachments.pColorAttachments– an array ofVkAttachmentReference2KHRstructures defining the color attachments for this subpass and their layouts.pResolveAttachments– an optional array ofcolorAttachmentCountVkAttachmentReference2KHRstructures defining the resolve attachments for this subpass and their layouts.pDepthStencilAttachment– a pointer to aVkAttachmentReference2KHRspecifying the depth/stencil attachment for this subpass and its layout.preserveAttachmentCount– the number of preserved attachments.pPreserveAttachments– an array ofpreserveAttachmentCountrender 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;VkAttachmentReference2KHRconst * pInputAttachments; uint32_t colorAttachmentCount;VkAttachmentReference2KHRconst * pColorAttachments;VkAttachmentReference2KHRconst * pResolveAttachments;VkAttachmentReference2KHRconst * pDepthStencilAttachment; uint32_t preserveAttachmentCount; uint32_t const * pPreserveAttachments; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassDescription2KHR.BufferAn array ofVkSubpassDescription2KHRstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORATTACHMENTCOUNT
FLAGS
INPUTATTACHMENTCOUNT
PCOLORATTACHMENTS
PDEPTHSTENCILATTACHMENT
PINPUTATTACHMENTS
PIPELINEBINDPOINT
PNEXT
PPRESERVEATTACHMENTS
PRESERVEATTACHMENTCOUNT
PRESOLVEATTACHMENTSThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
VIEWMASKThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescription2KHR(java.nio.ByteBuffer container)Creates aVkSubpassDescription2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescription2KHRcalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc.static VkSubpassDescription2KHR.Buffercalloc(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc.static VkSubpassDescription2KHRcallocStack()Returns a newVkSubpassDescription2KHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHR.BuffercallocStack(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHR.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2KHRcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()Returns the value of thecolorAttachmentCountfield.VkSubpassDescription2KHRcolorAttachmentCount(int value)Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescription2KHRcreate()Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils.static VkSubpassDescription2KHR.Buffercreate(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.static VkSubpassDescription2KHRcreate(long address)Returns a newVkSubpassDescription2KHRinstance for the specified memory address.static VkSubpassDescription2KHR.Buffercreate(long address, int capacity)Create aVkSubpassDescription2KHR.Bufferinstance at the specified memory.static VkSubpassDescription2KHRcreateSafe(long address)static VkSubpassDescription2KHR.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkSubpassDescription2KHRflags(int value)Sets the specified value to theflagsfield.intinputAttachmentCount()Returns the value of theinputAttachmentCountfield.static VkSubpassDescription2KHRmalloc()Returns a newVkSubpassDescription2KHRinstance allocated withmemAlloc.static VkSubpassDescription2KHR.Buffermalloc(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc.static VkSubpassDescription2KHRmallocStack()Returns a newVkSubpassDescription2KHRinstance allocated on the thread-localMemoryStack.static VkSubpassDescription2KHR.BuffermallocStack(int capacity)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the thread-localMemoryStack.static VkSubpassDescription2KHR.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2KHRmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.static intncolorAttachmentCount(long struct)Unsafe version ofcolorAttachmentCount().static voidncolorAttachmentCount(long struct, int value)Sets the specified value to thecolorAttachmentCountfield of the specifiedstruct.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intninputAttachmentCount(long struct)Unsafe version ofinputAttachmentCount().static voidninputAttachmentCount(long struct, int value)Sets the specified value to theinputAttachmentCountfield of the specifiedstruct.static VkAttachmentReference2KHR.BuffernpColorAttachments(long struct)Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, VkAttachmentReference2KHR.Buffer value)Unsafe version ofpColorAttachments.static VkAttachmentReference2KHRnpDepthStencilAttachment(long struct)Unsafe version ofpDepthStencilAttachment().static voidnpDepthStencilAttachment(long struct, VkAttachmentReference2KHR value)Unsafe version ofpDepthStencilAttachment.static VkAttachmentReference2KHR.BuffernpInputAttachments(long struct)Unsafe version ofpInputAttachments().static voidnpInputAttachments(long struct, VkAttachmentReference2KHR.Buffer value)Unsafe version ofpInputAttachments.static intnpipelineBindPoint(long struct)Unsafe version ofpipelineBindPoint().static voidnpipelineBindPoint(long struct, int value)Unsafe version ofpipelineBindPoint.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static java.nio.IntBuffernpPreserveAttachments(long struct)Unsafe version ofpPreserveAttachments.static voidnpPreserveAttachments(long struct, java.nio.IntBuffer value)Unsafe version ofpPreserveAttachments.static intnpreserveAttachmentCount(long struct)Unsafe version ofpreserveAttachmentCount().static voidnpreserveAttachmentCount(long struct, int value)Sets the specified value to thepreserveAttachmentCountfield of the specifiedstruct.static VkAttachmentReference2KHR.BuffernpResolveAttachments(long struct)Unsafe version ofpResolveAttachments().static voidnpResolveAttachments(long struct, VkAttachmentReference2KHR.Buffer value)Unsafe version ofpResolveAttachments.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static intnviewMask(long struct)Unsafe version ofviewMask().static voidnviewMask(long struct, int value)Unsafe version ofviewMask.VkAttachmentReference2KHR.BufferpColorAttachments()Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepColorAttachmentsfield.VkSubpassDescription2KHRpColorAttachments(VkAttachmentReference2KHR.Buffer value)Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepColorAttachmentsfield.VkAttachmentReference2KHRpDepthStencilAttachment()Returns aVkAttachmentReference2KHRview of the struct pointed to by thepDepthStencilAttachmentfield.VkSubpassDescription2KHRpDepthStencilAttachment(VkAttachmentReference2KHR value)Sets the address of the specifiedVkAttachmentReference2KHRto thepDepthStencilAttachmentfield.VkAttachmentReference2KHR.BufferpInputAttachments()Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepInputAttachmentsfield.VkSubpassDescription2KHRpInputAttachments(VkAttachmentReference2KHR.Buffer value)Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepInputAttachmentsfield.intpipelineBindPoint()Returns the value of thepipelineBindPointfield.VkSubpassDescription2KHRpipelineBindPoint(int value)Sets the specified value to thepipelineBindPointfield.longpNext()Returns the value of thepNextfield.VkSubpassDescription2KHRpNext(long value)Sets the specified value to thepNextfield.java.nio.IntBufferpPreserveAttachments()Returns aIntBufferview of the data pointed to by thepPreserveAttachmentsfield.VkSubpassDescription2KHRpPreserveAttachments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.intpreserveAttachmentCount()Returns the value of thepreserveAttachmentCountfield.VkAttachmentReference2KHR.BufferpResolveAttachments()Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.VkSubpassDescription2KHRpResolveAttachments(VkAttachmentReference2KHR.Buffer value)Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepResolveAttachmentsfield.VkSubpassDescription2KHRset(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.VkSubpassDescription2KHRset(VkSubpassDescription2KHR src)Copies the specified struct data to this struct.intsizeof()intsType()Returns the value of thesTypefield.VkSubpassDescription2KHRsType(int value)Sets the specified value to thesTypefield.static voidvalidate(long struct)Validates pointer members that should not beNULL.static voidvalidate(long array, int count)Callsvalidate(long)for each struct contained in the specified struct array.intviewMask()Returns the value of theviewMaskfield.VkSubpassDescription2KHRviewMask(int value)Sets the specified value to theviewMaskfield.
-
-
-
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 aVkSubpassDescription2KHRinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
flags
public int flags()
Returns the value of theflagsfield.
-
pipelineBindPoint
public int pipelineBindPoint()
Returns the value of thepipelineBindPointfield.
-
viewMask
public int viewMask()
Returns the value of theviewMaskfield.
-
inputAttachmentCount
public int inputAttachmentCount()
Returns the value of theinputAttachmentCountfield.
-
pInputAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pInputAttachments()
Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepInputAttachmentsfield.
-
colorAttachmentCount
public int colorAttachmentCount()
Returns the value of thecolorAttachmentCountfield.
-
pColorAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pColorAttachments()
Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepColorAttachmentsfield.
-
pResolveAttachments
@Nullable public VkAttachmentReference2KHR.Buffer pResolveAttachments()
Returns aVkAttachmentReference2KHR.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference2KHR pDepthStencilAttachment()
Returns aVkAttachmentReference2KHRview of the struct pointed to by thepDepthStencilAttachmentfield.
-
preserveAttachmentCount
public int preserveAttachmentCount()
Returns the value of thepreserveAttachmentCountfield.
-
pPreserveAttachments
@Nullable public java.nio.IntBuffer pPreserveAttachments()
Returns aIntBufferview of the data pointed to by thepPreserveAttachmentsfield.
-
sType
public VkSubpassDescription2KHR sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkSubpassDescription2KHR pNext(long value)
Sets the specified value to thepNextfield.
-
flags
public VkSubpassDescription2KHR flags(int value)
Sets the specified value to theflagsfield.
-
pipelineBindPoint
public VkSubpassDescription2KHR pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPointfield.
-
viewMask
public VkSubpassDescription2KHR viewMask(int value)
Sets the specified value to theviewMaskfield.
-
pInputAttachments
public VkSubpassDescription2KHR pInputAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepInputAttachmentsfield.
-
colorAttachmentCount
public VkSubpassDescription2KHR colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCountfield.
-
pColorAttachments
public VkSubpassDescription2KHR pColorAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepColorAttachmentsfield.
-
pResolveAttachments
public VkSubpassDescription2KHR pResolveAttachments(@Nullable VkAttachmentReference2KHR.Buffer value)
Sets the address of the specifiedVkAttachmentReference2KHR.Bufferto thepResolveAttachmentsfield.
-
pDepthStencilAttachment
public VkSubpassDescription2KHR pDepthStencilAttachment(@Nullable VkAttachmentReference2KHR value)
Sets the address of the specifiedVkAttachmentReference2KHRto thepDepthStencilAttachmentfield.
-
pPreserveAttachments
public VkSubpassDescription2KHR pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.
-
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 newVkSubpassDescription2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription2KHR calloc()
Returns a newVkSubpassDescription2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDescription2KHR create()
Returns a newVkSubpassDescription2KHRinstance allocated withBufferUtils.
-
create
public static VkSubpassDescription2KHR create(long address)
Returns a newVkSubpassDescription2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription2KHR createSafe(long address)
-
malloc
public static VkSubpassDescription2KHR.Buffer malloc(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDescription2KHR.Buffer calloc(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2KHR.Buffer create(long address, int capacity)
Create aVkSubpassDescription2KHR.Bufferinstance 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 newVkSubpassDescription2KHRinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSubpassDescription2KHR callocStack()
Returns a newVkSubpassDescription2KHRinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescription2KHR mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSubpassDescription2KHR callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2KHRinstance allocated on the specifiedMemoryStackand 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.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSubpassDescription2KHR.Buffer callocStack(int capacity)
Returns a newVkSubpassDescription2KHR.Bufferinstance allocated on the thread-localMemoryStackand 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.Bufferinstance 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.Bufferinstance allocated on the specifiedMemoryStackand 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 theinputAttachmentCountfield 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 thecolorAttachmentCountfield 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 thepreserveAttachmentCountfield 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
-
-