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.NativeResource
Structure specifying a subpass description.Description
Each element of the
pInputAttachments
array corresponds to an input attachment index in a fragment shader, i.e. if a shader declares an image variable decorated with aInputAttachmentIndex
value of X, then it uses the attachment provided inpInputAttachments
[X]. Input attachments must also be bound to the pipeline in a descriptor set. If theattachment
member of any element ofpInputAttachments
isATTACHMENT_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
pColorAttachments
array corresponds to an output location in the shader, i.e. if the shader declares an output variable decorated with aLocation
value of X, then it uses the attachment provided inpColorAttachments
[X]. If theattachment
member of any element ofpColorAttachments
isATTACHMENT_UNUSED
, writes to the corresponding location by a fragment are discarded.If
pResolveAttachments
is notNULL
, each of its elements corresponds to a color attachment (the element inpColorAttachments
at 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
::pDepthStencilResolveAttachment
is notNULL
and 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
::depthResolveMode
andVkSubpassDescriptionDepthStencilResolveKHR
::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
::depthResolveMode
isRESOLVE_MODE_NONE_KHR
, then the depth component of the resolve attachment is not written to and its contents are preserved. Similarly, ifVkSubpassDescriptionDepthStencilResolveKHR
::stencilResolveMode
isRESOLVE_MODE_NONE_KHR
, then the stencil component of the resolve attachment is not written to and its contents are preserved.VkSubpassDescriptionDepthStencilResolveKHR
::depthResolveMode
is ignored if theVkFormat
of thepDepthStencilResolveAttachment
does not have a depth component. Similarly,VkSubpassDescriptionDepthStencilResolveKHR
::stencilResolveMode
is ignored if theVkFormat
of thepDepthStencilResolveAttachment
does 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 thesampleLocationsInfo
member of the element of theVkRenderPassSampleLocationsBeginInfoEXT
::pPostSubpassSampleLocations
for the subpass.If
pDepthStencilAttachment
isNULL
, 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
pipelineBindPoint
must bePIPELINE_BIND_POINT_GRAPHICS
colorAttachmentCount
must be less than or equal toVkPhysicalDeviceLimits
::maxColorAttachments
- If the first use of an attachment in this render pass is as an input attachment, and the attachment is not also used as a color or depth/stencil attachment in the same subpass, then
loadOp
must not beATTACHMENT_LOAD_OP_CLEAR
- If
pResolveAttachments
is notNULL
, for each resolve attachment that is notATTACHMENT_UNUSED
, the corresponding color attachment must not beATTACHMENT_UNUSED
- If
pResolveAttachments
is notNULL
, for each resolve attachment that is notATTACHMENT_UNUSED
, the corresponding color attachment must not have a sample count ofSAMPLE_COUNT_1_BIT
- If
pResolveAttachments
is notNULL
, each resolve attachment that is notATTACHMENT_UNUSED
must have a sample count ofSAMPLE_COUNT_1_BIT
- If
pResolveAttachments
is notNULL
, each resolve attachment that is notATTACHMENT_UNUSED
must have the sameVkFormat
as its corresponding color attachment - All attachments in
pColorAttachments
that are notATTACHMENT_UNUSED
must have the same sample count - All attachments in
pInputAttachments
that are notATTACHMENT_UNUSED
must have formats whose features contain at least one ofFORMAT_FEATURE_COLOR_ATTACHMENT_BIT
orFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
. - All attachments in
pColorAttachments
that are notATTACHMENT_UNUSED
must have formats whose features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT
- All attachments in
pResolveAttachments
that are notATTACHMENT_UNUSED
must have formats whose features containFORMAT_FEATURE_COLOR_ATTACHMENT_BIT
- If
pDepthStencilAttachment
is notNULL
and the attachment is notATTACHMENT_UNUSED
then it must have a format whose features containFORMAT_FEATURE_DEPTH_STENCIL_ATTACHMENT_BIT
- If the
VK_AMD_mixed_attachment_samples
extension is enabled, and all attachments inpColorAttachments
that are notATTACHMENT_UNUSED
must have a sample count that is smaller than or equal to the sample count ofpDepthStencilAttachment
if it is notATTACHMENT_UNUSED
- If neither the
VK_AMD_mixed_attachment_samples
nor theVK_NV_framebuffer_mixed_samples
extensions are enabled, and ifpDepthStencilAttachment
is notATTACHMENT_UNUSED
and any attachments inpColorAttachments
are notATTACHMENT_UNUSED
, they must have the same sample count - The
attachment
member of each element ofpPreserveAttachments
must not beATTACHMENT_UNUSED
- Each element of
pPreserveAttachments
must not also be an element of any other member of the subpass description - If any attachment is used by more than one
VkAttachmentReference
member, then each use must use the samelayout
- If
flags
includesSUBPASS_DESCRIPTION_PER_VIEW_POSITION_X_ONLY_BIT_NVX
, it must also includeSUBPASS_DESCRIPTION_PER_VIEW_ATTRIBUTES_BIT_NVX
.
Valid Usage (Implicit)
flags
must be a valid combination ofVkSubpassDescriptionFlagBits
valuespipelineBindPoint
must be a validVkPipelineBindPoint
value- If
inputAttachmentCount
is not 0,pInputAttachments
must be a valid pointer to an array ofinputAttachmentCount
validVkAttachmentReference
structures - If
colorAttachmentCount
is not 0,pColorAttachments
must be a valid pointer to an array ofcolorAttachmentCount
validVkAttachmentReference
structures - If
colorAttachmentCount
is not 0, andpResolveAttachments
is notNULL
,pResolveAttachments
must be a valid pointer to an array ofcolorAttachmentCount
validVkAttachmentReference
structures - If
pDepthStencilAttachment
is notNULL
,pDepthStencilAttachment
must be a valid pointer to a validVkAttachmentReference
structure - If
preserveAttachmentCount
is not 0,pPreserveAttachments
must be a valid pointer to an array ofpreserveAttachmentCount
uint32_t
values
See Also
VkAttachmentReference
,VkRenderPassCreateInfo
Member documentation
flags
– a bitmask ofVkSubpassDescriptionFlagBits
specifying usage of the subpass.pipelineBindPoint
– aVkPipelineBindPoint
value specifying the pipeline type supported for this subpass.inputAttachmentCount
– the number of input attachments.pInputAttachments
– an array ofVkAttachmentReference
structures defining the input attachments for this subpass and their layouts.colorAttachmentCount
– the number of color attachments.pColorAttachments
– an array ofVkAttachmentReference
structures defining the color attachments for this subpass and their layouts.pResolveAttachments
– an optional array ofcolorAttachmentCount
VkAttachmentReference
structures defining the resolve attachments for this subpass and their layouts.pDepthStencilAttachment
– a pointer to aVkAttachmentReference
specifying the depth/stencil attachment for this subpass and its layout.preserveAttachmentCount
– the number of preserved attachments.pPreserveAttachments
– an array ofpreserveAttachmentCount
render pass attachment indices identifying attachments that are not used by this subpass, but whose contents must be preserved throughout the subpass.
Layout
struct VkSubpassDescription { VkSubpassDescriptionFlags flags; VkPipelineBindPoint pipelineBindPoint; uint32_t inputAttachmentCount;
VkAttachmentReference
const * pInputAttachments; uint32_t colorAttachmentCount;VkAttachmentReference
const * pColorAttachments;VkAttachmentReference
const * pResolveAttachments;VkAttachmentReference
const * pDepthStencilAttachment; uint32_t preserveAttachmentCount; uint32_t const * pPreserveAttachments; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
VkSubpassDescription.Buffer
An array ofVkSubpassDescription
structs.
-
Field Summary
Fields Modifier and Type Field Description static int
ALIGNOF
The struct alignment in bytes.static int
COLORATTACHMENTCOUNT
FLAGS
INPUTATTACHMENTCOUNT
PCOLORATTACHMENTS
PDEPTHSTENCILATTACHMENT
PINPUTATTACHMENTS
PIPELINEBINDPOINT
PPRESERVEATTACHMENTS
PRESERVEATTACHMENTCOUNT
PRESOLVEATTACHMENTSThe struct member offsets.static int
SIZEOF
The struct size in bytes.
-
Constructor Summary
Constructors Constructor Description VkSubpassDescription(java.nio.ByteBuffer container)
Creates aVkSubpassDescription
instance at the current position of the specifiedByteBuffer
container.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkSubpassDescription
calloc()
Returns a newVkSubpassDescription
instance allocated withmemCalloc
.static VkSubpassDescription.Buffer
calloc(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withmemCalloc
.static VkSubpassDescription
callocStack()
Returns a newVkSubpassDescription
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescription.Buffer
callocStack(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.static VkSubpassDescription.Buffer
callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSubpassDescription
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.int
colorAttachmentCount()
Returns the value of thecolorAttachmentCount
field.VkSubpassDescription
colorAttachmentCount(int value)
Sets the specified value to thecolorAttachmentCount
field.static VkSubpassDescription
create()
Returns a newVkSubpassDescription
instance allocated withBufferUtils
.static VkSubpassDescription.Buffer
create(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withBufferUtils
.static VkSubpassDescription
create(long address)
Returns a newVkSubpassDescription
instance for the specified memory address.static VkSubpassDescription.Buffer
create(long address, int capacity)
Create aVkSubpassDescription.Buffer
instance at the specified memory.static VkSubpassDescription
createSafe(long address)
static VkSubpassDescription.Buffer
createSafe(long address, int capacity)
int
flags()
Returns the value of theflags
field.VkSubpassDescription
flags(int value)
Sets the specified value to theflags
field.int
inputAttachmentCount()
Returns the value of theinputAttachmentCount
field.static VkSubpassDescription
malloc()
Returns a newVkSubpassDescription
instance allocated withmemAlloc
.static VkSubpassDescription.Buffer
malloc(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withmemAlloc
.static VkSubpassDescription
mallocStack()
Returns a newVkSubpassDescription
instance allocated on the thread-localMemoryStack
.static VkSubpassDescription.Buffer
mallocStack(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated on the thread-localMemoryStack
.static VkSubpassDescription.Buffer
mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription.Buffer
instance allocated on the specifiedMemoryStack
.static VkSubpassDescription
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
.static int
ncolorAttachmentCount(long struct)
Unsafe version ofcolorAttachmentCount()
.static void
ncolorAttachmentCount(long struct, int value)
Sets the specified value to thecolorAttachmentCount
field of the specifiedstruct
.static int
nflags(long struct)
Unsafe version offlags()
.static void
nflags(long struct, int value)
Unsafe version offlags
.static int
ninputAttachmentCount(long struct)
Unsafe version ofinputAttachmentCount()
.static void
ninputAttachmentCount(long struct, int value)
Sets the specified value to theinputAttachmentCount
field of the specifiedstruct
.static VkAttachmentReference.Buffer
npColorAttachments(long struct)
Unsafe version ofpColorAttachments()
.static void
npColorAttachments(long struct, VkAttachmentReference.Buffer value)
Unsafe version ofpColorAttachments
.static VkAttachmentReference
npDepthStencilAttachment(long struct)
Unsafe version ofpDepthStencilAttachment()
.static void
npDepthStencilAttachment(long struct, VkAttachmentReference value)
Unsafe version ofpDepthStencilAttachment
.static VkAttachmentReference.Buffer
npInputAttachments(long struct)
Unsafe version ofpInputAttachments()
.static void
npInputAttachments(long struct, VkAttachmentReference.Buffer value)
Unsafe version ofpInputAttachments
.static int
npipelineBindPoint(long struct)
Unsafe version ofpipelineBindPoint()
.static void
npipelineBindPoint(long struct, int value)
Unsafe version ofpipelineBindPoint
.static java.nio.IntBuffer
npPreserveAttachments(long struct)
Unsafe version ofpPreserveAttachments
.static void
npPreserveAttachments(long struct, java.nio.IntBuffer value)
Unsafe version ofpPreserveAttachments
.static int
npreserveAttachmentCount(long struct)
Unsafe version ofpreserveAttachmentCount()
.static void
npreserveAttachmentCount(long struct, int value)
Sets the specified value to thepreserveAttachmentCount
field of the specifiedstruct
.static VkAttachmentReference.Buffer
npResolveAttachments(long struct)
Unsafe version ofpResolveAttachments()
.static void
npResolveAttachments(long struct, VkAttachmentReference.Buffer value)
Unsafe version ofpResolveAttachments
.VkAttachmentReference.Buffer
pColorAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepColorAttachments
field.VkSubpassDescription
pColorAttachments(VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepColorAttachments
field.VkAttachmentReference
pDepthStencilAttachment()
Returns aVkAttachmentReference
view of the struct pointed to by thepDepthStencilAttachment
field.VkSubpassDescription
pDepthStencilAttachment(VkAttachmentReference value)
Sets the address of the specifiedVkAttachmentReference
to thepDepthStencilAttachment
field.VkAttachmentReference.Buffer
pInputAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepInputAttachments
field.VkSubpassDescription
pInputAttachments(VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepInputAttachments
field.int
pipelineBindPoint()
Returns the value of thepipelineBindPoint
field.VkSubpassDescription
pipelineBindPoint(int value)
Sets the specified value to thepipelineBindPoint
field.java.nio.IntBuffer
pPreserveAttachments()
Returns aIntBuffer
view of the data pointed to by thepPreserveAttachments
field.VkSubpassDescription
pPreserveAttachments(java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to thepPreserveAttachments
field.int
preserveAttachmentCount()
Returns the value of thepreserveAttachmentCount
field.VkAttachmentReference.Buffer
pResolveAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepResolveAttachments
field.VkSubpassDescription
pResolveAttachments(VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepResolveAttachments
field.VkSubpassDescription
set(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.VkSubpassDescription
set(VkSubpassDescription src)
Copies the specified struct data to this struct.int
sizeof()
static void
validate(long struct)
Validates pointer members that should not beNULL
.static void
validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.
-
-
-
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 aVkSubpassDescription
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeof
in classorg.lwjgl.system.Struct
-
flags
public int flags()
Returns the value of theflags
field.
-
pipelineBindPoint
public int pipelineBindPoint()
Returns the value of thepipelineBindPoint
field.
-
inputAttachmentCount
public int inputAttachmentCount()
Returns the value of theinputAttachmentCount
field.
-
pInputAttachments
@Nullable public VkAttachmentReference.Buffer pInputAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepInputAttachments
field.
-
colorAttachmentCount
public int colorAttachmentCount()
Returns the value of thecolorAttachmentCount
field.
-
pColorAttachments
@Nullable public VkAttachmentReference.Buffer pColorAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepColorAttachments
field.
-
pResolveAttachments
@Nullable public VkAttachmentReference.Buffer pResolveAttachments()
Returns aVkAttachmentReference.Buffer
view of the struct array pointed to by thepResolveAttachments
field.
-
pDepthStencilAttachment
@Nullable public VkAttachmentReference pDepthStencilAttachment()
Returns aVkAttachmentReference
view of the struct pointed to by thepDepthStencilAttachment
field.
-
preserveAttachmentCount
public int preserveAttachmentCount()
Returns the value of thepreserveAttachmentCount
field.
-
pPreserveAttachments
@Nullable public java.nio.IntBuffer pPreserveAttachments()
Returns aIntBuffer
view of the data pointed to by thepPreserveAttachments
field.
-
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.Buffer
to 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.Buffer
to thepColorAttachments
field.
-
pResolveAttachments
public VkSubpassDescription pResolveAttachments(@Nullable VkAttachmentReference.Buffer value)
Sets the address of the specifiedVkAttachmentReference.Buffer
to thepResolveAttachments
field.
-
pDepthStencilAttachment
public VkSubpassDescription pDepthStencilAttachment(@Nullable VkAttachmentReference value)
Sets the address of the specifiedVkAttachmentReference
to thepDepthStencilAttachment
field.
-
pPreserveAttachments
public VkSubpassDescription pPreserveAttachments(@Nullable java.nio.IntBuffer value)
Sets the address of the specifiedIntBuffer
to 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 newVkSubpassDescription
instance allocated withmemAlloc
. The instance must be explicitly freed.
-
calloc
public static VkSubpassDescription calloc()
Returns a newVkSubpassDescription
instance allocated withmemCalloc
. The instance must be explicitly freed.
-
create
public static VkSubpassDescription create()
Returns a newVkSubpassDescription
instance allocated withBufferUtils
.
-
create
public static VkSubpassDescription create(long address)
Returns a newVkSubpassDescription
instance for the specified memory address.
-
createSafe
@Nullable public static VkSubpassDescription createSafe(long address)
-
malloc
public static VkSubpassDescription.Buffer malloc(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
public static VkSubpassDescription.Buffer calloc(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescription.Buffer create(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
public static VkSubpassDescription.Buffer create(long address, int capacity)
Create aVkSubpassDescription.Buffer
instance 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 newVkSubpassDescription
instance allocated on the thread-localMemoryStack
.
-
callocStack
public static VkSubpassDescription callocStack()
Returns a newVkSubpassDescription
instance allocated on the thread-localMemoryStack
and initializes all its bits to zero.
-
mallocStack
public static VkSubpassDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
callocStack
public static VkSubpassDescription callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkSubpassDescription
instance allocated on the specifiedMemoryStack
and 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.Buffer
instance allocated on the thread-localMemoryStack
.- Parameters:
capacity
- the buffer capacity
-
callocStack
public static VkSubpassDescription.Buffer callocStack(int capacity)
Returns a newVkSubpassDescription.Buffer
instance allocated on the thread-localMemoryStack
and 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.Buffer
instance 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.Buffer
instance allocated on the specifiedMemoryStack
and 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 theinputAttachmentCount
field 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 thecolorAttachmentCount
field 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 thepreserveAttachmentCount
field of the specifiedstruct
.
-
npPreserveAttachments
public static void npPreserveAttachments(long struct, @Nullable java.nio.IntBuffer value)
Unsafe version ofpPreserveAttachments
.
-
validate
public static void validate(long struct)
Validates pointer members that should not beNULL
.- Parameters:
struct
- the struct to validate
-
validate
public static void validate(long array, int count)
Callsvalidate(long)
for each struct contained in the specified struct array.- Parameters:
array
- the struct array to validatecount
- the number of structs inarray
-
-