Class VkAttachmentDescription
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkAttachmentDescription
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkAttachmentDescription extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying an attachment description.Description
If the attachment uses a color format, then
loadOpandstoreOpare used, andstencilLoadOpandstencilStoreOpare ignored. If the format has depth and/or stencil components,loadOpandstoreOpapply only to the depth data, whilestencilLoadOpandstencilStoreOpdefine how the stencil data is handled.loadOpandstencilLoadOpdefine the load operations that execute as part of the first subpass that uses the attachment.storeOpandstencilStoreOpdefine the store operations that execute as part of the last subpass that uses the attachment.The load operation for each sample in an attachment happens-before any recorded command which accesses the sample in the first subpass where the attachment is used. Load operations for attachments with a depth/stencil format execute in the
PIPELINE_STAGE_EARLY_FRAGMENT_TESTS_BITpipeline stage. Load operations for attachments with a color format execute in thePIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BITpipeline stage.The store operation for each sample in an attachment happens-after any recorded command which accesses the sample in the last subpass where the attachment is used. Store operations for attachments with a depth/stencil format execute in the
PIPELINE_STAGE_LATE_FRAGMENT_TESTS_BITpipeline stage. Store operations for attachments with a color format execute in thePIPELINE_STAGE_COLOR_ATTACHMENT_OUTPUT_BITpipeline stage.If an attachment is not used by any subpass, then
loadOp,storeOp,stencilStoreOp, andstencilLoadOpare ignored, and the attachment’s memory contents will not be modified by execution of a render pass instance.The load and store operations apply on the first and last use of each view in the render pass, respectively. If a view index of an attachment is not included in the view mask in any subpass that uses it, then the load and store operations are ignored, and the attachment’s memory contents will not be modified by execution of a render pass instance.
During a render pass instance, input/color attachments with color formats that have a component size of 8, 16, or 32 bits must be represented in the attachment’s format throughout the instance. Attachments with other floating- or fixed-point color formats, or with depth components may be represented in a format with a precision higher than the attachment format, but must be represented with the same range. When such a component is loaded via the
loadOp, it will be converted into an implementation-dependent format used by the render pass. Such components must be converted from the render pass format, to the format of the attachment, before they are resolved or stored at the end of a render pass instance viastoreOp. Conversions occur as described in Numeric Representation and Computation and Fixed-Point Data Conversions.If
flagsincludesATTACHMENT_DESCRIPTION_MAY_ALIAS_BIT, then the attachment is treated as if it shares physical memory with another attachment in the same render pass. This information limits the ability of the implementation to reorder certain operations (like layout transitions and theloadOp) such that it is not improperly reordered against other uses of the same physical memory via a different attachment. This is described in more detail below.If a render pass uses multiple attachments that alias the same device memory, those attachments must each include the
ATTACHMENT_DESCRIPTION_MAY_ALIAS_BITbit in their attachment description flags. Attachments aliasing the same memory occurs in multiple ways:- Multiple attachments being assigned the same image view as part of framebuffer creation.
- Attachments using distinct image views that correspond to the same image subresource of an image.
- Attachments using views of distinct image subresources which are bound to overlapping memory ranges.
Note
Render passes must include subpass dependencies (either directly or via a subpass dependency chain) between any two subpasses that operate on the same attachment or aliasing attachments and those subpass dependencies must include execution and memory dependencies separating uses of the aliases, if at least one of those subpasses writes to one of the aliases. These dependencies must not include the
DEPENDENCY_BY_REGION_BITif the aliases are views of distinct image subresources which overlap in memory.Multiple attachments that alias the same memory must not be used in a single subpass. A given attachment index must not be used multiple times in a single subpass, with one exception: two subpass attachments can use the same attachment index if at least one use is as an input attachment and neither use is as a resolve or preserve attachment. In other words, the same view can be used simultaneously as an input and color or depth/stencil attachment, but must not be used as multiple color or depth/stencil attachments nor as resolve or preserve attachments. The precise set of valid scenarios is described in more detail below.
If a set of attachments alias each other, then all except the first to be used in the render pass must use an
initialLayoutofIMAGE_LAYOUT_UNDEFINED, since the earlier uses of the other aliases make their contents undefined. Once an alias has been used and a different alias has been used after it, the first alias must not be used in any later subpasses. However, an application can assign the same image view to multiple aliasing attachment indices, which allows that image view to be used multiple times even if other aliases are used in between.Note
Once an attachment needs the
ATTACHMENT_DESCRIPTION_MAY_ALIAS_BITbit, there should be no additional cost of introducing additional aliases, and using these additional aliases may allow more efficient clearing of the attachments on multiple uses viaATTACHMENT_LOAD_OP_CLEAR.Valid Usage
finalLayoutmust not beIMAGE_LAYOUT_UNDEFINEDorIMAGE_LAYOUT_PREINITIALIZED- If
formatis a color format,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL - If
formatis a color format,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMALorIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL - If
formatis a depth/stencil format,initialLayoutmust not beIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL - If
formatis a color format,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMAL - If
formatis a color format,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMALorIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMAL - If
formatis a depth/stencil format,finalLayoutmust not beIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL - If the
separateDepthStencilLayoutsfeature is not enabled,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If the
separateDepthStencilLayoutsfeature is not enabled,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a color format,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a color format,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes both depth and stencil aspects,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes both depth and stencil aspects,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMAL,IMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL,IMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMAL, orIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes only the depth aspect,initialLayoutmust not beIMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes only the depth aspect,finalLayoutmust not beIMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes only the stencil aspect,initialLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL - If
formatis a depth/stencil format which includes only the stencil aspect,finalLayoutmust not beIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMALorIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMAL
Valid Usage (Implicit)
flagsmust be a valid combination ofVkAttachmentDescriptionFlagBitsvaluesformatmust be a validVkFormatvaluesamplesmust be a validVkSampleCountFlagBitsvalueloadOpmust be a validVkAttachmentLoadOpvaluestoreOpmust be a validVkAttachmentStoreOpvaluestencilLoadOpmust be a validVkAttachmentLoadOpvaluestencilStoreOpmust be a validVkAttachmentStoreOpvalueinitialLayoutmust be a validVkImageLayoutvaluefinalLayoutmust be a validVkImageLayoutvalue
See Also
Layout
struct VkAttachmentDescription { VkAttachmentDescriptionFlagsflags(); VkFormatformat(); VkSampleCountFlagBitssamples(); VkAttachmentLoadOploadOp(); VkAttachmentStoreOpstoreOp(); VkAttachmentLoadOpstencilLoadOp(); VkAttachmentStoreOpstencilStoreOp(); VkImageLayoutinitialLayout(); VkImageLayoutfinalLayout(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkAttachmentDescription.BufferAn array ofVkAttachmentDescriptionstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intFINALLAYOUT
FLAGS
FORMAT
INITIALLAYOUT
LOADOP
SAMPLESThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTENCILLOADOP
STENCILSTOREOP
STOREOPThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkAttachmentDescription(java.nio.ByteBuffer container)Creates aVkAttachmentDescriptioninstance 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 VkAttachmentDescriptioncalloc()Returns a newVkAttachmentDescriptioninstance allocated withmemCalloc.static VkAttachmentDescription.Buffercalloc(int capacity)Returns a newVkAttachmentDescription.Bufferinstance allocated withmemCalloc.static VkAttachmentDescription.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptioncalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkAttachmentDescriptioncallocStack()Deprecated.static VkAttachmentDescription.BuffercallocStack(int capacity)Deprecated.static VkAttachmentDescription.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescriptioncallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescriptioncreate()Returns a newVkAttachmentDescriptioninstance allocated withBufferUtils.static VkAttachmentDescription.Buffercreate(int capacity)Returns a newVkAttachmentDescription.Bufferinstance allocated withBufferUtils.static VkAttachmentDescriptioncreate(long address)Returns a newVkAttachmentDescriptioninstance for the specified memory address.static VkAttachmentDescription.Buffercreate(long address, int capacity)Create aVkAttachmentDescription.Bufferinstance at the specified memory.static VkAttachmentDescriptioncreateSafe(long address)static VkAttachmentDescription.BuffercreateSafe(long address, int capacity)intfinalLayout()the layout the attachment image subresource will be transitioned to when a render pass instance ends.VkAttachmentDescriptionfinalLayout(int value)Sets the specified value to thefinalLayout()field.intflags()a bitmask ofVkAttachmentDescriptionFlagBitsspecifying additional properties of the attachment.VkAttachmentDescriptionflags(int value)Sets the specified value to theflags()field.intformat()aVkFormatvalue specifying the format of the image view that will be used for the attachment.VkAttachmentDescriptionformat(int value)Sets the specified value to theformat()field.intinitialLayout()the layout the attachment image subresource will be in when a render pass instance begins.VkAttachmentDescriptioninitialLayout(int value)Sets the specified value to theinitialLayout()field.intloadOp()aVkAttachmentLoadOpvalue specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used.VkAttachmentDescriptionloadOp(int value)Sets the specified value to theloadOp()field.static VkAttachmentDescriptionmalloc()Returns a newVkAttachmentDescriptioninstance allocated withmemAlloc.static VkAttachmentDescription.Buffermalloc(int capacity)Returns a newVkAttachmentDescription.Bufferinstance allocated withmemAlloc.static VkAttachmentDescription.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStack.static VkAttachmentDescriptionmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStack.static VkAttachmentDescriptionmallocStack()Deprecated.static VkAttachmentDescription.BuffermallocStack(int capacity)Deprecated.static VkAttachmentDescription.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkAttachmentDescriptionmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static intnfinalLayout(long struct)Unsafe version offinalLayout().static voidnfinalLayout(long struct, int value)Unsafe version offinalLayout.static intnflags(long struct)Unsafe version offlags().static voidnflags(long struct, int value)Unsafe version offlags.static intnformat(long struct)Unsafe version offormat().static voidnformat(long struct, int value)Unsafe version offormat.static intninitialLayout(long struct)Unsafe version ofinitialLayout().static voidninitialLayout(long struct, int value)Unsafe version ofinitialLayout.static intnloadOp(long struct)Unsafe version ofloadOp().static voidnloadOp(long struct, int value)Unsafe version ofloadOp.static intnsamples(long struct)Unsafe version ofsamples().static voidnsamples(long struct, int value)Unsafe version ofsamples.static intnstencilLoadOp(long struct)Unsafe version ofstencilLoadOp().static voidnstencilLoadOp(long struct, int value)Unsafe version ofstencilLoadOp.static intnstencilStoreOp(long struct)Unsafe version ofstencilStoreOp().static voidnstencilStoreOp(long struct, int value)Unsafe version ofstencilStoreOp.static intnstoreOp(long struct)Unsafe version ofstoreOp().static voidnstoreOp(long struct, int value)Unsafe version ofstoreOp.intsamples()aVkSampleCountFlagBitsvalue specifying the number of samples of the image.VkAttachmentDescriptionsamples(int value)Sets the specified value to thesamples()field.VkAttachmentDescriptionset(int flags, int format, int samples, int loadOp, int storeOp, int stencilLoadOp, int stencilStoreOp, int initialLayout, int finalLayout)Initializes this struct with the specified values.VkAttachmentDescriptionset(VkAttachmentDescription src)Copies the specified struct data to this struct.intsizeof()intstencilLoadOp()aVkAttachmentLoadOpvalue specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used.VkAttachmentDescriptionstencilLoadOp(int value)Sets the specified value to thestencilLoadOp()field.intstencilStoreOp()aVkAttachmentStoreOpvalue specifying how the contents of stencil components of the attachment are treated at the end of the last subpass where it is used.VkAttachmentDescriptionstencilStoreOp(int value)Sets the specified value to thestencilStoreOp()field.intstoreOp()aVkAttachmentStoreOpvalue specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used.VkAttachmentDescriptionstoreOp(int value)Sets the specified value to thestoreOp()field.
-
-
-
Constructor Detail
-
VkAttachmentDescription
public VkAttachmentDescription(java.nio.ByteBuffer container)
Creates aVkAttachmentDescriptioninstance 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 ofVkAttachmentDescriptionFlagBitsspecifying additional properties of the attachment.
-
format
public int format()
aVkFormatvalue specifying the format of the image view that will be used for the attachment.
-
samples
public int samples()
aVkSampleCountFlagBitsvalue specifying the number of samples of the image.
-
loadOp
public int loadOp()
aVkAttachmentLoadOpvalue specifying how the contents of color and depth components of the attachment are treated at the beginning of the subpass where it is first used.
-
storeOp
public int storeOp()
aVkAttachmentStoreOpvalue specifying how the contents of color and depth components of the attachment are treated at the end of the subpass where it is last used.
-
stencilLoadOp
public int stencilLoadOp()
aVkAttachmentLoadOpvalue specifying how the contents of stencil components of the attachment are treated at the beginning of the subpass where it is first used.
-
stencilStoreOp
public int stencilStoreOp()
aVkAttachmentStoreOpvalue specifying how the contents of stencil components of the attachment are treated at the end of the last subpass where it is used.
-
initialLayout
public int initialLayout()
the layout the attachment image subresource will be in when a render pass instance begins.
-
finalLayout
public int finalLayout()
the layout the attachment image subresource will be transitioned to when a render pass instance ends.
-
flags
public VkAttachmentDescription flags(int value)
Sets the specified value to theflags()field.
-
format
public VkAttachmentDescription format(int value)
Sets the specified value to theformat()field.
-
samples
public VkAttachmentDescription samples(int value)
Sets the specified value to thesamples()field.
-
loadOp
public VkAttachmentDescription loadOp(int value)
Sets the specified value to theloadOp()field.
-
storeOp
public VkAttachmentDescription storeOp(int value)
Sets the specified value to thestoreOp()field.
-
stencilLoadOp
public VkAttachmentDescription stencilLoadOp(int value)
Sets the specified value to thestencilLoadOp()field.
-
stencilStoreOp
public VkAttachmentDescription stencilStoreOp(int value)
Sets the specified value to thestencilStoreOp()field.
-
initialLayout
public VkAttachmentDescription initialLayout(int value)
Sets the specified value to theinitialLayout()field.
-
finalLayout
public VkAttachmentDescription finalLayout(int value)
Sets the specified value to thefinalLayout()field.
-
set
public VkAttachmentDescription set(int flags, int format, int samples, int loadOp, int storeOp, int stencilLoadOp, int stencilStoreOp, int initialLayout, int finalLayout)
Initializes this struct with the specified values.
-
set
public VkAttachmentDescription set(VkAttachmentDescription src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkAttachmentDescription malloc()
Returns a newVkAttachmentDescriptioninstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkAttachmentDescription calloc()
Returns a newVkAttachmentDescriptioninstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkAttachmentDescription create()
Returns a newVkAttachmentDescriptioninstance allocated withBufferUtils.
-
create
public static VkAttachmentDescription create(long address)
Returns a newVkAttachmentDescriptioninstance for the specified memory address.
-
createSafe
@Nullable public static VkAttachmentDescription createSafe(long address)
-
malloc
public static VkAttachmentDescription.Buffer malloc(int capacity)
Returns a newVkAttachmentDescription.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkAttachmentDescription.Buffer calloc(int capacity)
Returns a newVkAttachmentDescription.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescription.Buffer create(int capacity)
Returns a newVkAttachmentDescription.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkAttachmentDescription.Buffer create(long address, int capacity)
Create aVkAttachmentDescription.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkAttachmentDescription.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkAttachmentDescription mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkAttachmentDescription.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkAttachmentDescription.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 VkAttachmentDescription.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkAttachmentDescription malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkAttachmentDescription calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescriptioninstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkAttachmentDescription.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkAttachmentDescription.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkAttachmentDescription.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().
-
nformat
public static int nformat(long struct)
Unsafe version offormat().
-
nsamples
public static int nsamples(long struct)
Unsafe version ofsamples().
-
nloadOp
public static int nloadOp(long struct)
Unsafe version ofloadOp().
-
nstoreOp
public static int nstoreOp(long struct)
Unsafe version ofstoreOp().
-
nstencilLoadOp
public static int nstencilLoadOp(long struct)
Unsafe version ofstencilLoadOp().
-
nstencilStoreOp
public static int nstencilStoreOp(long struct)
Unsafe version ofstencilStoreOp().
-
ninitialLayout
public static int ninitialLayout(long struct)
Unsafe version ofinitialLayout().
-
nfinalLayout
public static int nfinalLayout(long struct)
Unsafe version offinalLayout().
-
nflags
public static void nflags(long struct, int value)Unsafe version offlags.
-
nformat
public static void nformat(long struct, int value)Unsafe version offormat.
-
nsamples
public static void nsamples(long struct, int value)Unsafe version ofsamples.
-
nloadOp
public static void nloadOp(long struct, int value)Unsafe version ofloadOp.
-
nstoreOp
public static void nstoreOp(long struct, int value)Unsafe version ofstoreOp.
-
nstencilLoadOp
public static void nstencilLoadOp(long struct, int value)Unsafe version ofstencilLoadOp.
-
nstencilStoreOp
public static void nstencilStoreOp(long struct, int value)Unsafe version ofstencilStoreOp.
-
ninitialLayout
public static void ninitialLayout(long struct, int value)Unsafe version ofinitialLayout.
-
nfinalLayout
public static void nfinalLayout(long struct, int value)Unsafe version offinalLayout.
-
-