Package org.lwjgl.vulkan
Class VkSubpassDescription2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDescription2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkSubpassDescription2KHR
public class VkSubpassDescription2 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.If a
VkFragmentShadingRateAttachmentInfoKHRstructure is included in thepNextchain,pFragmentShadingRateAttachmentis notNULL, and itsattachmentmember is notATTACHMENT_UNUSED, the identified attachment defines a fragment shading rate attachment for that subpass.Valid Usage
pipelineBindPointmust bePIPELINE_BIND_POINT_GRAPHICSorPIPELINE_BIND_POINT_SUBPASS_SHADING_HUAWEIcolorAttachmentCountmust 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 - All attachments in
pInputAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features contain at leastFORMAT_FEATURE_COLOR_ATTACHMENT_BITorFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - All attachments in
pColorAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - All attachments in
pResolveAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - If
pDepthStencilAttachmentis notNULLand the attachment is notATTACHMENT_UNUSEDthen it must have an image format whose potential format features containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If the
linearColorAttachmentfeature is enabled and the image is created withIMAGE_TILING_LINEAR, all attachments inpInputAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features must containFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV - If the
linearColorAttachmentfeature is enabled and the image is created withIMAGE_TILING_LINEAR, all attachments inpColorAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features must containFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV - If the
linearColorAttachmentfeature is enabled and the image is created withIMAGE_TILING_LINEAR, all attachments inpResolveAttachmentsthat are notATTACHMENT_UNUSEDmust have image formats whose potential format features must containFORMAT_FEATURE_2_LINEAR_COLOR_ATTACHMENT_BIT_NV - 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 - Each element of
pPreserveAttachmentsmust 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
VkAttachmentReference2member, then each use must use the samelayout - Attachments must follow the image layout requirements based on the type of attachment it is being used as
- If
flagsincludesSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX, it must also includeSUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX - If the
attachmentmember of any element ofpInputAttachmentsis notATTACHMENT_UNUSED, then theaspectMaskmember must be a valid combination ofVkImageAspectFlagBits - If the
attachmentmember of any element ofpInputAttachmentsis notATTACHMENT_UNUSED, then theaspectMaskmember must not be 0 - If the
attachmentmember of any element ofpInputAttachmentsis notATTACHMENT_UNUSED, then theaspectMaskmember must not includeIMAGE_ASPECT_METADATA_BIT - If the
attachmentmember of any element ofpInputAttachmentsis notATTACHMENT_UNUSED, then theaspectMaskmember must not includeVK_IMAGE_ASPECT_MEMORY_PLANE_i_BIT_EXTfor any index i - An attachment must not be used in both
pDepthStencilAttachmentandpColorAttachments
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2- Each
pNextmember of any structure (including this one) in thepNextchain must be eitherNULLor a pointer to a valid instance ofVkFragmentShadingRateAttachmentInfoKHRorVkSubpassDescriptionDepthStencilResolve - The
sTypevalue of each struct in thepNextchain must be unique flagsmust be a valid combination ofVkSubpassDescriptionFlagBitsvaluespipelineBindPointmust be a validVkPipelineBindPointvalue- If
inputAttachmentCountis not 0,pInputAttachmentsmust be a valid pointer to an array ofinputAttachmentCountvalidVkAttachmentReference2structures - If
colorAttachmentCountis not 0,pColorAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReference2structures - If
colorAttachmentCountis not 0, andpResolveAttachmentsis notNULL,pResolveAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReference2structures - If
pDepthStencilAttachmentis notNULL,pDepthStencilAttachmentmust be a valid pointer to a validVkAttachmentReference2structure - If
preserveAttachmentCountis not 0,pPreserveAttachmentsmust be a valid pointer to an array ofpreserveAttachmentCountuint32_tvalues
See Also
VkAttachmentReference2,VkRenderPassCreateInfo2Layout
struct VkSubpassDescription2 { VkStructureTypesType(); void const *pNext(); VkSubpassDescriptionFlagsflags(); VkPipelineBindPointpipelineBindPoint(); uint32_tviewMask(); uint32_tinputAttachmentCount();VkAttachmentReference2const *pInputAttachments(); uint32_tcolorAttachmentCount();VkAttachmentReference2const *pColorAttachments();VkAttachmentReference2const *pResolveAttachments();VkAttachmentReference2const *pDepthStencilAttachment(); uint32_tpreserveAttachmentCount(); uint32_t const *pPreserveAttachments(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassDescription2.BufferAn array ofVkSubpassDescription2structs.
-
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 VkSubpassDescription2(java.nio.ByteBuffer container)Creates aVkSubpassDescription2instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescription2calloc()Returns a newVkSubpassDescription2instance allocated withmemCalloc.static VkSubpassDescription2.Buffercalloc(int capacity)Returns a newVkSubpassDescription2.Bufferinstance allocated withmemCalloc.static VkSubpassDescription2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescription2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()the number of color attachments.VkSubpassDescription2colorAttachmentCount(int value)Sets the specified value to thecolorAttachmentCount()field.static VkSubpassDescription2create()Returns a newVkSubpassDescription2instance allocated withBufferUtils.static VkSubpassDescription2.Buffercreate(int capacity)Returns a newVkSubpassDescription2.Bufferinstance allocated withBufferUtils.static VkSubpassDescription2create(long address)Returns a newVkSubpassDescription2instance for the specified memory address.static VkSubpassDescription2.Buffercreate(long address, int capacity)Create aVkSubpassDescription2.Bufferinstance at the specified memory.static VkSubpassDescription2createSafe(long address)static VkSubpassDescription2.BuffercreateSafe(long address, int capacity)intflags()a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.VkSubpassDescription2flags(int value)Sets the specified value to theflags()field.intinputAttachmentCount()the number of input attachments.static VkSubpassDescription2malloc()Returns a newVkSubpassDescription2instance allocated withmemAlloc.static VkSubpassDescription2.Buffermalloc(int capacity)Returns a newVkSubpassDescription2.Bufferinstance allocated withmemAlloc.static VkSubpassDescription2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescription2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription2instance 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 VkAttachmentReference2.BuffernpColorAttachments(long struct)Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, VkAttachmentReference2.Buffer value)Unsafe version ofpColorAttachments.static VkAttachmentReference2npDepthStencilAttachment(long struct)Unsafe version ofpDepthStencilAttachment().static voidnpDepthStencilAttachment(long struct, VkAttachmentReference2 value)Unsafe version ofpDepthStencilAttachment.static VkAttachmentReference2.BuffernpInputAttachments(long struct)Unsafe version ofpInputAttachments().static voidnpInputAttachments(long struct, VkAttachmentReference2.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 VkAttachmentReference2.BuffernpResolveAttachments(long struct)Unsafe version ofpResolveAttachments().static voidnpResolveAttachments(long struct, VkAttachmentReference2.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.VkAttachmentReference2.BufferpColorAttachments()a pointer to an array ofcolorAttachmentCountVkAttachmentReference2structures defining the color attachments for this subpass and their layouts.VkSubpassDescription2pColorAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachments()field.VkAttachmentReference2pDepthStencilAttachment()a pointer to aVkAttachmentReference2structure specifying the depth/stencil attachment for this subpass and its layout.VkSubpassDescription2pDepthStencilAttachment(VkAttachmentReference2 value)Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachment()field.VkAttachmentReference2.BufferpInputAttachments()a pointer to an array ofVkAttachmentReference2structures defining the input attachments for this subpass and their layouts.VkSubpassDescription2pInputAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachments()field.intpipelineBindPoint()aVkPipelineBindPointvalue specifying the pipeline type supported for this subpass.VkSubpassDescription2pipelineBindPoint(int value)Sets the specified value to thepipelineBindPoint()field.longpNext()NULLor a pointer to a structure extending this structure.VkSubpassDescription2pNext(long value)Sets the specified value to thepNext()field.VkSubpassDescription2pNext(VkFragmentShadingRateAttachmentInfoKHR value)Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain.VkSubpassDescription2pNext(VkSubpassDescriptionDepthStencilResolve value)Prepends the specifiedVkSubpassDescriptionDepthStencilResolvevalue to thepNextchain.VkSubpassDescription2pNext(VkSubpassDescriptionDepthStencilResolveKHR value)Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHRvalue to thepNextchain.java.nio.IntBufferpPreserveAttachments()a pointer to an array ofpreserveAttachmentCountrender pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass.VkSubpassDescription2pPreserveAttachments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepPreserveAttachments()field.intpreserveAttachmentCount()the number of preserved attachments.VkAttachmentReference2.BufferpResolveAttachments()NULLor a pointer to an array ofcolorAttachmentCountVkAttachmentReference2structures defining the resolve attachments for this subpass and their layouts.VkSubpassDescription2pResolveAttachments(VkAttachmentReference2.Buffer value)Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachments()field.VkSubpassDescription2set(int sType, long pNext, int flags, int pipelineBindPoint, int viewMask, VkAttachmentReference2.Buffer pInputAttachments, int colorAttachmentCount, VkAttachmentReference2.Buffer pColorAttachments, VkAttachmentReference2.Buffer pResolveAttachments, VkAttachmentReference2 pDepthStencilAttachment, java.nio.IntBuffer pPreserveAttachments)Initializes this struct with the specified values.VkSubpassDescription2set(VkSubpassDescription2 src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkSubpassDescription2sType(int value)Sets the specified value to thesType()field.VkSubpassDescription2sType$Default()Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesType()field.static voidvalidate(long struct)Validates pointer members that should not beNULL.intviewMask()a bitfield of view indices describing which views rendering is broadcast to in this subpass, when multiview is enabled.VkSubpassDescription2viewMask(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
-
VkSubpassDescription2
public VkSubpassDescription2(java.nio.ByteBuffer container)
Creates aVkSubpassDescription2instance 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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
flags
public int flags()
a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.
-
pipelineBindPoint
public int pipelineBindPoint()
aVkPipelineBindPointvalue specifying the pipeline type supported for this subpass.
-
viewMask
public int viewMask()
a bitfield of view indices describing which views rendering is broadcast to in this subpass, when multiview is enabled.
-
inputAttachmentCount
public int inputAttachmentCount()
the number of input attachments.
-
pInputAttachments
@Nullable public VkAttachmentReference2.Buffer pInputAttachments()
a pointer to an array ofVkAttachmentReference2structures defining the input attachments for this subpass and their layouts.
-
colorAttachmentCount
public int colorAttachmentCount()
the number of color attachments.
-
pColorAttachments
@Nullable public VkAttachmentReference2.Buffer pColorAttachments()
a pointer to an array ofcolorAttachmentCountVkAttachmentReference2structures defining the color attachments for this subpass and their layouts.
-
pResolveAttachments
@Nullable public VkAttachmentReference2.Buffer pResolveAttachments()
NULLor a pointer to an array ofcolorAttachmentCountVkAttachmentReference2structures defining the resolve attachments for this subpass and their layouts.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference2 pDepthStencilAttachment()
a pointer to aVkAttachmentReference2structure specifying the depth/stencil attachment for this subpass and its layout.
-
preserveAttachmentCount
public int preserveAttachmentCount()
the number of preserved attachments.
-
pPreserveAttachments
@Nullable public java.nio.IntBuffer pPreserveAttachments()
a pointer to an array ofpreserveAttachmentCountrender pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass.
-
sType
public VkSubpassDescription2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkSubpassDescription2 sType$Default()
Sets theSTRUCTURE_TYPE_SUBPASS_DESCRIPTION_2value to thesType()field.
-
pNext
public VkSubpassDescription2 pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkSubpassDescription2 pNext(VkFragmentShadingRateAttachmentInfoKHR value)
Prepends the specifiedVkFragmentShadingRateAttachmentInfoKHRvalue to thepNextchain.
-
pNext
public VkSubpassDescription2 pNext(VkSubpassDescriptionDepthStencilResolve value)
Prepends the specifiedVkSubpassDescriptionDepthStencilResolvevalue to thepNextchain.
-
pNext
public VkSubpassDescription2 pNext(VkSubpassDescriptionDepthStencilResolveKHR value)
Prepends the specifiedVkSubpassDescriptionDepthStencilResolveKHRvalue to thepNextchain.
-
flags
public VkSubpassDescription2 flags(int value)
Sets the specified value to theflags()field.
-
pipelineBindPoint
public VkSubpassDescription2 pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPoint()field.
-
viewMask
public VkSubpassDescription2 viewMask(int value)
Sets the specified value to theviewMask()field.
-
pInputAttachments
public VkSubpassDescription2 pInputAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepInputAttachments()field.
-
colorAttachmentCount
public VkSubpassDescription2 colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCount()field.
-
pColorAttachments
public VkSubpassDescription2 pColorAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepColorAttachments()field.
-
pResolveAttachments
public VkSubpassDescription2 pResolveAttachments(@Nullable VkAttachmentReference2.Buffer value)
Sets the address of the specifiedVkAttachmentReference2.Bufferto thepResolveAttachments()field.
-
pDepthStencilAttachment
public VkSubpassDescription2 pDepthStencilAttachment(@Nullable VkAttachmentReference2 value)
Sets the address of the specifiedVkAttachmentReference2to thepDepthStencilAttachment()field.
-
pPreserveAttachments
public VkSubpassDescription2 pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto 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 java.nio.IntBuffer pPreserveAttachments)
Initializes this struct with the specified values.
-
set
public VkSubpassDescription2 set(VkSubpassDescription2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDescription2 malloc()
Returns a newVkSubpassDescription2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription2 calloc()
Returns a newVkSubpassDescription2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDescription2 create()
Returns a newVkSubpassDescription2instance allocated withBufferUtils.
-
create
public static VkSubpassDescription2 create(long address)
Returns a newVkSubpassDescription2instance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription2 createSafe(long address)
-
malloc
public static VkSubpassDescription2.Buffer malloc(int capacity)
Returns a newVkSubpassDescription2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDescription2.Buffer calloc(int capacity)
Returns a newVkSubpassDescription2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2.Buffer create(int capacity)
Returns a newVkSubpassDescription2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription2.Buffer create(long address, int capacity)
Create aVkSubpassDescription2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDescription2.Buffer createSafe(long address, int capacity)
-
malloc
public static VkSubpassDescription2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSubpassDescription2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkSubpassDescription2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkSubpassDescription2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription2.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 VkAttachmentReference2.Buffer npInputAttachments(long struct)
Unsafe version ofpInputAttachments().
-
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount().
-
npColorAttachments
@Nullable public static VkAttachmentReference2.Buffer npColorAttachments(long struct)
Unsafe version ofpColorAttachments().
-
npResolveAttachments
@Nullable public static VkAttachmentReference2.Buffer npResolveAttachments(long struct)
Unsafe version ofpResolveAttachments().
-
npDepthStencilAttachment
@Nullable public static VkAttachmentReference2 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 VkAttachmentReference2.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 VkAttachmentReference2.Buffer value)Unsafe version ofpColorAttachments.
-
npResolveAttachments
public static void npResolveAttachments(long struct, @Nullable VkAttachmentReference2.Buffer value)Unsafe version ofpResolveAttachments.
-
npDepthStencilAttachment
public static void npDepthStencilAttachment(long struct, @Nullable VkAttachmentReference2 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
-
-