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. Input attachments must not be used by any subpasses within a render pass that enables render pass transform.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, or if Color Write Enable has been disabled for the corresponding attachment index, then writes to the corresponding location by a fragment shader are discarded.If
flagsdoes not includeSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, and ifpResolveAttachmentsis 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 within the render area to the same pixel location in the corresponding resolve attachments, unless the resolve attachment index isATTACHMENT_UNUSED.Similarly, if
flagsdoes not includeSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, andVkSubpassDescriptionDepthStencilResolve::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 byVkSubpassDescriptionDepthStencilResolve::depthResolveModeandVkSubpassDescriptionDepthStencilResolve::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. IfVkSubpassDescriptionDepthStencilResolve::depthResolveModeisRESOLVE_MODE_NONE, then the depth component of the resolve attachment is not written to and its contents are preserved. Similarly, ifVkSubpassDescriptionDepthStencilResolve::stencilResolveModeisRESOLVE_MODE_NONE, then the stencil component of the resolve attachment is not written to and its contents are preserved.VkSubpassDescriptionDepthStencilResolve::depthResolveModeis ignored if theVkFormatof thepDepthStencilResolveAttachmentdoes not have a depth component. Similarly,VkSubpassDescriptionDepthStencilResolve::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.
In addition, 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:
SUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOMis set.- The attachment is used as a color or depth/stencil in the subpass.
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_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 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 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, 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 - Each element of
pPreserveAttachmentsmust 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 - Each attachment must follow the image layout requirements specified for its attachment type
- If
flagsincludesSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX, it must also includeSUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX - If
flagsincludesSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, and ifpResolveAttachmentsis notNULL, then each resolve attachment must beATTACHMENT_UNUSED - If
flagsincludesSUBPASS_DESCRIPTION_SHADER_RESOLVE_BIT_QCOM, then the subpass must be the last subpass in a subpass dependency chain - If the render pass is created with
RENDER_PASS_CREATE_TRANSFORM_BIT_QCOMeach of the elements ofpInputAttachmentsmust beATTACHMENT_UNUSED pDepthStencilAttachmentandpColorAttachmentsmust not contain references to the same attachment
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,VkRenderPassCreateInfoLayout
struct VkSubpassDescription { VkSubpassDescriptionFlagsflags(); VkPipelineBindPointpipelineBindPoint(); uint32_tinputAttachmentCount();VkAttachmentReferenceconst *pInputAttachments(); uint32_tcolorAttachmentCount();VkAttachmentReferenceconst *pColorAttachments();VkAttachmentReferenceconst *pResolveAttachments();VkAttachmentReferenceconst *pDepthStencilAttachment(); uint32_tpreserveAttachmentCount(); 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 Deprecated 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 VkSubpassDescription.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSubpassDescriptioncallocStack()Deprecated.static VkSubpassDescription.BuffercallocStack(int capacity)Deprecated.static VkSubpassDescription.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSubpassDescriptioncallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.intcolorAttachmentCount()the number of color attachments.VkSubpassDescriptioncolorAttachmentCount(int value)Sets the specified value to thecolorAttachmentCount()field.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()a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.VkSubpassDescriptionflags(int value)Sets the specified value to theflags()field.intinputAttachmentCount()the number of input attachments.static VkSubpassDescriptionmalloc()Returns a newVkSubpassDescriptioninstance allocated withmemAlloc.static VkSubpassDescription.Buffermalloc(int capacity)Returns a newVkSubpassDescription.Bufferinstance allocated withmemAlloc.static VkSubpassDescription.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkSubpassDescriptionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStack.static VkSubpassDescriptionmallocStack()Deprecated.static VkSubpassDescription.BuffermallocStack(int capacity)Deprecated.static VkSubpassDescription.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkSubpassDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a pointer to an array ofcolorAttachmentCountVkAttachmentReferencestructures defining the color attachments for this subpass and their layouts.VkSubpassDescriptionpColorAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachments()field.VkAttachmentReferencepDepthStencilAttachment()a pointer to aVkAttachmentReferencestructure specifying the depth/stencil attachment for this subpass and its layout.VkSubpassDescriptionpDepthStencilAttachment(VkAttachmentReference value)Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachment()field.VkAttachmentReference.BufferpInputAttachments()a pointer to an array ofVkAttachmentReferencestructures defining the input attachments for this subpass and their layouts.VkSubpassDescriptionpInputAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachments()field.intpipelineBindPoint()aVkPipelineBindPointvalue specifying the pipeline type supported for this subpass.VkSubpassDescriptionpipelineBindPoint(int value)Sets the specified value to thepipelineBindPoint()field.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.VkSubpassDescriptionpPreserveAttachments(java.nio.IntBuffer value)Sets the address of the specifiedIntBufferto thepPreserveAttachments()field.intpreserveAttachmentCount()the number of preserved attachments.VkAttachmentReference.BufferpResolveAttachments()NULLor a pointer to an array ofcolorAttachmentCountVkAttachmentReferencestructures defining the resolve attachments for this subpass and their layouts.VkSubpassDescriptionpResolveAttachments(VkAttachmentReference.Buffer value)Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachments()field.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.
-
-
-
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()
a bitmask ofVkSubpassDescriptionFlagBitsspecifying usage of the subpass.
-
pipelineBindPoint
public int pipelineBindPoint()
aVkPipelineBindPointvalue specifying the pipeline type supported for this subpass.
-
inputAttachmentCount
public int inputAttachmentCount()
the number of input attachments.
-
pInputAttachments
@Nullable public VkAttachmentReference.Buffer pInputAttachments()
a pointer to an array ofVkAttachmentReferencestructures defining the input attachments for this subpass and their layouts.
-
colorAttachmentCount
public int colorAttachmentCount()
the number of color attachments.
-
pColorAttachments
@Nullable public VkAttachmentReference.Buffer pColorAttachments()
a pointer to an array ofcolorAttachmentCountVkAttachmentReferencestructures defining the color attachments for this subpass and their layouts.
-
pResolveAttachments
@Nullable public VkAttachmentReference.Buffer pResolveAttachments()
NULLor a pointer to an array ofcolorAttachmentCountVkAttachmentReferencestructures defining the resolve attachments for this subpass and their layouts.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference pDepthStencilAttachment()
a pointer to aVkAttachmentReferencestructure 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.
-
flags
public VkSubpassDescription flags(int value)
Sets the specified value to theflags()field.
-
pipelineBindPoint
public VkSubpassDescription pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPoint()field.
-
pInputAttachments
public VkSubpassDescription pInputAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepInputAttachments()field.
-
colorAttachmentCount
public VkSubpassDescription colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCount()field.
-
pColorAttachments
public VkSubpassDescription pColorAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepColorAttachments()field.
-
pResolveAttachments
public VkSubpassDescription pResolveAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Bufferto thepResolveAttachments()field.
-
pDepthStencilAttachment
public VkSubpassDescription pDepthStencilAttachment(@Nullable VkAttachmentReference value)
Sets the address of the specifiedVkAttachmentReferenceto thepDepthStencilAttachment()field.
-
pPreserveAttachments
public VkSubpassDescription pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBufferto thepPreserveAttachments()field.
-
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
@Deprecated public static VkSubpassDescription mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkSubpassDescription.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkSubpassDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkSubpassDescription malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkSubpassDescription calloc(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
-
malloc
public static VkSubpassDescription.Buffer malloc(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
-
calloc
public static VkSubpassDescription.Buffer calloc(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
-
-