Class VkSubpassDescription
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkSubpassDescription
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkSubpassDescription extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a subpass description.Description
Each element of the
pInputAttachmentsarray corresponds to an input attachment index in a fragment shader, i.e. if a shader declares an image variable decorated with aInputAttachmentIndexvalue of X, then it uses the attachment provided inpInputAttachments[X]. Input attachments must also be bound to the pipeline in a descriptor set. If theattachmentmember of any element ofpInputAttachmentsisATTACHMENT_UNUSED, the application must not read from the corresponding input attachment index. Fragment shaders can use subpass input variables to access the contents of an input attachment at the fragment's (x, y, layer) framebuffer coordinates.Each element of the
pColorAttachmentsarray corresponds to an output location in the shader, i.e. if the shader declares an output variable decorated with aLocationvalue of X, then it uses the attachment provided inpColorAttachments[X]. If theattachmentmember of any element ofpColorAttachmentsisATTACHMENT_UNUSED, writes to the corresponding location by a fragment are discarded.If
pResolveAttachmentsis notNULL, each of its elements corresponds to a color attachment (the element inpColorAttachmentsat the same index), and a multisample resolve operation is defined for each attachment. At the end of each subpass, multisample resolve operations read the subpass's color attachments, and resolve the samples for each pixel to the same pixel location in the corresponding resolve attachments, unless the resolve attachment index isATTACHMENT_UNUSED.Similarly, if
VkSubpassDescriptionDepthStencilResolveKHR::pDepthStencilResolveAttachmentis notNULLand does not have the valueATTACHMENT_UNUSED, it corresponds to the depth/stencil attachment inpDepthStencilAttachment, and multisample resolve operations for depth and stencil are defined byVkSubpassDescriptionDepthStencilResolveKHR::depthResolveModeandVkSubpassDescriptionDepthStencilResolveKHR::stencilResolveMode, respectively. At the end of each subpass, multisample resolve operations read the subpass's depth/stencil attachment, and resolve the samples for each pixel to the same pixel location in the corresponding resolve attachment. IfVkSubpassDescriptionDepthStencilResolveKHR::depthResolveModeisRESOLVE_MODE_NONE_KHR, then the depth component of the resolve attachment is not written to and its contents are preserved. Similarly, ifVkSubpassDescriptionDepthStencilResolveKHR::stencilResolveModeisRESOLVE_MODE_NONE_KHR, then the stencil component of the resolve attachment is not written to and its contents are preserved.VkSubpassDescriptionDepthStencilResolveKHR::depthResolveModeis ignored if theVkFormatof thepDepthStencilResolveAttachmentdoes not have a depth component. Similarly,VkSubpassDescriptionDepthStencilResolveKHR::stencilResolveModeis ignored if theVkFormatof thepDepthStencilResolveAttachmentdoes not have a stencil component.If the image subresource range referenced by the depth/stencil attachment is created with
IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXT, then the multisample resolve operation uses the sample locations state specified in thesampleLocationsInfomember of the element of theVkRenderPassSampleLocationsBeginInfoEXT::pPostSubpassSampleLocationsfor the subpass.If
pDepthStencilAttachmentisNULL, or if its attachment index isATTACHMENT_UNUSED, it indicates that no depth/stencil attachment will be used in the subpass.The contents of an attachment within the render area become undefined at the start of a subpass S if all of the following conditions are true:
- The attachment is used as a color, depth/stencil, or resolve attachment in any subpass in the render pass.
- There is a subpass S1 that uses or preserves the attachment, and a subpass dependency from S1 to S.
- The attachment is not used or preserved in subpass S.
Once the contents of an attachment become undefined in subpass S, they remain undefined for subpasses in subpass dependency chains starting with subpass S until they are written again. However, they remain valid for subpasses in other subpass dependency chains starting with subpass S1 if those subpasses use or preserve the attachment.
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 is notATTACHMENT_UNUSED, the corresponding color attachment must not beATTACHMENT_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 - If
pResolveAttachmentsis notNULL, each resolve attachment that is notATTACHMENT_UNUSEDmust 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 formats whose features contain at least one ofFORMAT_FEATURE_COLOR_ATTACHMENT_BITorFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT. - All attachments in
pColorAttachmentsthat are notATTACHMENT_UNUSEDmust have formats whose features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - All attachments in
pResolveAttachmentsthat are notATTACHMENT_UNUSEDmust have formats whose features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT - If
pDepthStencilAttachmentis notNULLand the attachment is notATTACHMENT_UNUSEDthen it must have a format whose features containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT - If the
VK_AMD_mixed_attachment_samplesextension is enabled, and 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 each element ofpPreserveAttachmentsmust not beATTACHMENT_UNUSED - Each 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.
Valid Usage (Implicit)
flagsmust be a valid combination ofVkSubpassDescriptionFlagBitsvaluespipelineBindPointmust be a validVkPipelineBindPointvalue- If
inputAttachmentCountis not 0,pInputAttachmentsmust be a valid pointer to an array ofinputAttachmentCountvalidVkAttachmentReferencestructures - If
colorAttachmentCountis not 0,pColorAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReferencestructures - If
colorAttachmentCountis not 0, andpResolveAttachmentsis notNULL,pResolveAttachmentsmust be a valid pointer to an array ofcolorAttachmentCountvalidVkAttachmentReferencestructures - If
pDepthStencilAttachmentis notNULL,pDepthStencilAttachmentmust be a valid pointer to a validVkAttachmentReferencestructure - If
preserveAttachmentCountis not 0,pPreserveAttachmentsmust be a valid pointer to an array ofpreserveAttachmentCountuint32_tvalues
See Also
VkAttachmentReference,VkRenderPassCreateInfoMember documentation
flags– a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.pipelineBindPoint– aVkPipelineBindPointvalue specifying the pipeline type supported for this subpass.inputAttachmentCount– the number of input attachments.pInputAttachments– an array ofVkAttachmentReferencestructures defining the input attachments for this subpass and their layouts.colorAttachmentCount– the number of color attachments.pColorAttachments– an array ofVkAttachmentReferencestructures defining the color attachments for this subpass and their layouts.pResolveAttachments– an optional array ofcolorAttachmentCountVkAttachmentReferencestructures defining the resolve attachments for this subpass and their layouts.pDepthStencilAttachment– a pointer to aVkAttachmentReferencespecifying 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 VkSubpassDescription { VkSubpassDescriptionFlags flags; VkPipelineBindPoint pipelineBindPoint; uint32_t inputAttachmentCount;VkAttachmentReferenceconst * pInputAttachments; uint32_t colorAttachmentCount;VkAttachmentReferenceconst * pColorAttachments;VkAttachmentReferenceconst * pResolveAttachments;VkAttachmentReferenceconst * pDepthStencilAttachment; uint32_t preserveAttachmentCount; uint32_t const * pPreserveAttachments; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkSubpassDescription.BufferAn array ofVkSubpassDescriptionstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCOLORATTACHMENTCOUNT
FLAGS
INPUTATTACHMENTCOUNT
PCOLORATTACHMENTS
PDEPTHSTENCILATTACHMENT
PINPUTATTACHMENTS
PIPELINEBINDPOINT
PPRESERVEATTACHMENTS
PRESERVEATTACHMENTCOUNT
PRESOLVEATTACHMENTSThe struct member offsets.static intSIZEOFThe struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescription(java.nio.ByteBuffer container)Creates aVkSubpassDescriptioninstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescriptioncalloc()Returns a newVkSubpassDescriptioninstance allocated withmemCalloc.static VkSubpassDescription.Buffercalloc(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated withmemCalloc.static VkSubpassDescriptioncallocStack()Returns a newVkSubpassDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescription.BuffercallocStack(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkSubpassDescription.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptioncallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.intcolorAttachmentCount()Returns the value of thecolorAttachmentCountfield.VkSubpassDescriptioncolorAttachmentCount(int value)Sets the specified value to thecolorAttachmentCountfield.static VkSubpassDescriptioncreate()Returns a newVkSubpassDescriptioninstance allocated withBufferUtils.static VkSubpassDescription.Buffercreate(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated withBufferUtils.static VkSubpassDescriptioncreate(long address)Returns a newVkSubpassDescriptioninstance for the specified memory address.static VkSubpassDescription.Buffercreate(long address, int capacity)Create aVkSubpassDescription.Bufferinstance at the specified memory.static VkSubpassDescriptioncreateSafe(long address)static VkSubpassDescription.BuffercreateSafe(long address, int capacity)intflags()Returns the value of theflagsfield.VkSubpassDescriptionflags(int value)Sets the specified value to theflagsfield.intinputAttachmentCount()Returns the value of theinputAttachmentCountfield.static VkSubpassDescriptionmalloc()Returns a newVkSubpassDescriptioninstance allocated withmemAlloc.static VkSubpassDescription.Buffermalloc(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated withmemAlloc.static VkSubpassDescriptionmallocStack()Returns a newVkSubpassDescriptioninstance allocated on the thread-localMemoryStack.static VkSubpassDescription.BuffermallocStack(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated on the thread-localMemoryStack.static VkSubpassDescription.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptioninstance 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 VkAttachmentReference.BuffernpColorAttachments(long struct)Unsafe version ofpColorAttachments().static voidnpColorAttachments(long struct, VkAttachmentReference.Buffer value)Unsafe version ofpColorAttachments.static VkAttachmentReferencenpDepthStencilAttachment(long struct)Unsafe version ofpDepthStencilAttachment().static voidnpDepthStencilAttachment(long struct, VkAttachmentReference value)Unsafe version ofpDepthStencilAttachment.static VkAttachmentReference.BuffernpInputAttachments(long struct)Unsafe version ofpInputAttachments().static voidnpInputAttachments(long struct, VkAttachmentReference.Buffer value)Unsafe version ofpInputAttachments.static intnpipelineBindPoint(long struct)Unsafe version ofpipelineBindPoint().static voidnpipelineBindPoint(long struct, int value)Unsafe version ofpipelineBindPoint.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 VkAttachmentReference.BuffernpResolveAttachments(long struct)Unsafe version ofpResolveAttachments().static voidnpResolveAttachments(long struct, VkAttachmentReference.Buffer value)Unsafe version ofpResolveAttachments.VkAttachmentReference.BufferpColorAttachments()Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepColorAttachmentsfield.VkSubpassDescriptionpColorAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachmentsfield.VkAttachmentReferencepDepthStencilAttachment()Returns aVkAttachmentReferenceview of the struct pointed to by thepDepthStencilAttachmentfield.VkSubpassDescriptionpDepthStencilAttachment(VkAttachmentReference value)Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachmentfield.VkAttachmentReference.BufferpInputAttachments()Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepInputAttachmentsfield.VkSubpassDescriptionpInputAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachmentsfield.intpipelineBindPoint()Returns the value of thepipelineBindPointfield.VkSubpassDescriptionpipelineBindPoint(int value)Sets the specified value to thepipelineBindPointfield.java.nio.IntBufferpPreserveAttachments()Returns aIntBufferview of the data pointed to by thepPreserveAttachmentsfield.VkSubpassDescriptionpPreserveAttachments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.intpreserveAttachmentCount()Returns the value of thepreserveAttachmentCountfield.VkAttachmentReference.BufferpResolveAttachments()Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.VkSubpassDescriptionpResolveAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachmentsfield.VkSubpassDescriptionset(int flags, int pipelineBindPoint, VkAttachmentReference.Buffer pInputAttachments, int colorAttachmentCount, VkAttachmentReference.Buffer pColorAttachments, VkAttachmentReference.Buffer pResolveAttachments, VkAttachmentReference pDepthStencilAttachment, java.nio.IntBuffer pPreserveAttachments)Initializes this struct with the specified values.VkSubpassDescriptionset(VkSubpassDescription src)Copies the specified struct data to this struct.intsizeof()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.
-
-
-
Field Detail
-
SIZEOF
The struct size in bytes.
-
ALIGNOF
The struct alignment in bytes.
-
FLAGS, PIPELINEBINDPOINT, INPUTATTACHMENTCOUNT, PINPUTATTACHMENTS, COLORATTACHMENTCOUNT, PCOLORATTACHMENTS, PRESOLVEATTACHMENTS, PDEPTHSTENCILATTACHMENT, PRESERVEATTACHMENTCOUNT, PPRESERVEATTACHMENTS
The struct member offsets.
-
-
Constructor Detail
-
VkSubpassDescription
public VkSubpassDescription(java.nio.ByteBuffer container)
Creates aVkSubpassDescriptioninstance 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
-
flags
public int flags()
Returns the value of theflagsfield.
-
pipelineBindPoint
public int pipelineBindPoint()
Returns the value of thepipelineBindPointfield.
-
inputAttachmentCount
public int inputAttachmentCount()
Returns the value of theinputAttachmentCountfield.
-
pInputAttachments
@Nullable public VkAttachmentReference.Buffer pInputAttachments()
Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepInputAttachmentsfield.
-
colorAttachmentCount
public int colorAttachmentCount()
Returns the value of thecolorAttachmentCountfield.
-
pColorAttachments
@Nullable public VkAttachmentReference.Buffer pColorAttachments()
Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepColorAttachmentsfield.
-
pResolveAttachments
@Nullable public VkAttachmentReference.Buffer pResolveAttachments()
Returns aVkAttachmentReference.Bufferview of the struct array pointed to by thepResolveAttachmentsfield.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference pDepthStencilAttachment()
Returns aVkAttachmentReferenceview 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.
-
flags
public VkSubpassDescription flags(int value)
Sets the specified value to theflagsfield.
-
pipelineBindPoint
public VkSubpassDescription pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPointfield.
-
pInputAttachments
public VkSubpassDescription pInputAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachmentsfield.
-
colorAttachmentCount
public VkSubpassDescription colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCountfield.
-
pColorAttachments
public VkSubpassDescription pColorAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachmentsfield.
-
pResolveAttachments
public VkSubpassDescription pResolveAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachmentsfield.
-
pDepthStencilAttachment
public VkSubpassDescription pDepthStencilAttachment(@Nullable VkAttachmentReference value)
Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachmentfield.
-
pPreserveAttachments
public VkSubpassDescription pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepPreserveAttachmentsfield.
-
set
public VkSubpassDescription set(int flags, int pipelineBindPoint, @Nullable VkAttachmentReference.Buffer pInputAttachments, int colorAttachmentCount, @Nullable VkAttachmentReference.Buffer pColorAttachments, @Nullable VkAttachmentReference.Buffer pResolveAttachments, @Nullable VkAttachmentReference pDepthStencilAttachment, @Nullable java.nio.IntBuffer pPreserveAttachments)
Initializes this struct with the specified values.
-
set
public VkSubpassDescription set(VkSubpassDescription src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkSubpassDescription malloc()
Returns a newVkSubpassDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription calloc()
Returns a newVkSubpassDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkSubpassDescription create()
Returns a newVkSubpassDescriptioninstance allocated withBufferUtils.
-
create
public static VkSubpassDescription create(long address)
Returns a newVkSubpassDescriptioninstance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription createSafe(long address)
-
malloc
public static VkSubpassDescription.Buffer malloc(int capacity)
Returns a newVkSubpassDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkSubpassDescription.Buffer calloc(int capacity)
Returns a newVkSubpassDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription.Buffer create(int capacity)
Returns a newVkSubpassDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkSubpassDescription.Buffer create(long address, int capacity)
Create aVkSubpassDescription.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkSubpassDescription.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkSubpassDescription mallocStack()
Returns a newVkSubpassDescriptioninstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkSubpassDescription callocStack()
Returns a newVkSubpassDescriptioninstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkSubpassDescription callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkSubpassDescription.Buffer mallocStack(int capacity)
Returns a newVkSubpassDescription.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkSubpassDescription.Buffer callocStack(int capacity)
Returns a newVkSubpassDescription.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkSubpassDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkSubpassDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nflags
public static int nflags(long struct)
Unsafe version offlags().
-
npipelineBindPoint
public static int npipelineBindPoint(long struct)
Unsafe version ofpipelineBindPoint().
-
ninputAttachmentCount
public static int ninputAttachmentCount(long struct)
Unsafe version ofinputAttachmentCount().
-
npInputAttachments
@Nullable public static VkAttachmentReference.Buffer npInputAttachments(long struct)
Unsafe version ofpInputAttachments().
-
ncolorAttachmentCount
public static int ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount().
-
npColorAttachments
@Nullable public static VkAttachmentReference.Buffer npColorAttachments(long struct)
Unsafe version ofpColorAttachments().
-
npResolveAttachments
@Nullable public static VkAttachmentReference.Buffer npResolveAttachments(long struct)
Unsafe version ofpResolveAttachments().
-
npDepthStencilAttachment
@Nullable public static VkAttachmentReference 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.
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
npipelineBindPoint
public static void npipelineBindPoint(long struct, int value)Unsafe version ofpipelineBindPoint.
-
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 VkAttachmentReference.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 VkAttachmentReference.Buffer value)Unsafe version ofpColorAttachments.
-
npResolveAttachments
public static void npResolveAttachments(long struct, @Nullable VkAttachmentReference.Buffer value)Unsafe version ofpResolveAttachments.
-
npDepthStencilAttachment
public static void npDepthStencilAttachment(long struct, @Nullable VkAttachmentReference 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
-
-