Class VkImageMemoryBarrier
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageMemoryBarrier
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageMemoryBarrier extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying the parameters of an image memory barrier.Description
The first access scope is limited to access to memory through the specified image subresource range, via access types in the source access mask specified by
srcAccessMask. IfsrcAccessMaskincludesACCESS_HOST_WRITE_BIT, memory writes performed by that access type are also made visible, as that access type is not performed through a resource.The second access scope is limited to access to memory through the specified image subresource range, via access types in the destination access mask specified by
dstAccessMask. IfdstAccessMaskincludesACCESS_HOST_WRITE_BITorACCESS_HOST_READ_BIT, available memory writes are also made visible to accesses of those types, as those access types are not performed through a resource.If
srcQueueFamilyIndexis not equal todstQueueFamilyIndex, andsrcQueueFamilyIndexis equal to the current queue family, then the memory barrier defines a queue family release operation for the specified image subresource range, and the second access scope includes no access, as ifdstAccessMaskwas 0.If
dstQueueFamilyIndexis not equal tosrcQueueFamilyIndex, anddstQueueFamilyIndexis equal to the current queue family, then the memory barrier defines a queue family acquire operation for the specified image subresource range, and the first access scope includes no access, as ifsrcAccessMaskwas 0.If
oldLayoutis not equal tonewLayout, then the memory barrier defines an image layout transition for the specified image subresource range.Layout transitions that are performed via image memory barriers execute in their entirety in submission order, relative to other image layout transitions submitted to the same queue, including those performed by render passes. In effect there is an implicit execution dependency from each such layout transition to all layout transitions previously submitted to the same queue.
The image layout of each image subresource of a depth/stencil image created with
IMAGE_CREATE_SAMPLE_LOCATIONS_COMPATIBLE_DEPTH_BIT_EXTis dependent on the last sample locations used to render to the image subresource as a depth/stencil attachment, thus when theimagemember of anVkImageMemoryBarrieris an image created with this flag the application can chain aVkSampleLocationsInfoEXTstructure to thepNextchain ofVkImageMemoryBarrierto specify the sample locations to use during the image layout transition.If the
VkSampleLocationsInfoEXTstructure in thepNextchain ofVkImageMemoryBarrierdoes not match the sample location state last used to render to the image subresource range specified bysubresourceRangeor if noVkSampleLocationsInfoEXTstructure is in thepNextchain ofVkImageMemoryBarrierthen the contents of the given image subresource range becomes undefined as ifoldLayoutwould equalIMAGE_LAYOUT_UNDEFINED.If
imagehas a multi-planar format and the image is disjoint, then includingIMAGE_ASPECT_COLOR_BITin theaspectMaskmember ofsubresourceRangeis equivalent to includingIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BIT, and (for three-plane formats only)IMAGE_ASPECT_PLANE_2_BIT.Valid Usage
oldLayoutmust beIMAGE_LAYOUT_UNDEFINEDor the current layout of the image subresources affected by the barriernewLayoutmust not beIMAGE_LAYOUT_UNDEFINEDorIMAGE_LAYOUT_PREINITIALIZED- If
imagewas created with a sharing mode ofSHARING_MODE_CONCURRENT, at least one ofsrcQueueFamilyIndexanddstQueueFamilyIndexmust beQUEUE_FAMILY_IGNORED - If
imagewas created with a sharing mode ofSHARING_MODE_CONCURRENT, and one ofsrcQueueFamilyIndexanddstQueueFamilyIndexisQUEUE_FAMILY_IGNORED, the other must beQUEUE_FAMILY_IGNOREDor a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
imagewas created with a sharing mode ofSHARING_MODE_EXCLUSIVEandsrcQueueFamilyIndexisQUEUE_FAMILY_IGNORED,dstQueueFamilyIndexmust also beQUEUE_FAMILY_IGNORED. - If
imagewas created with a sharing mode ofSHARING_MODE_EXCLUSIVEandsrcQueueFamilyIndexis notQUEUE_FAMILY_IGNORED, it must be a valid queue family or a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
imagewas created with a sharing mode ofSHARING_MODE_EXCLUSIVEanddstQueueFamilyIndexis notQUEUE_FAMILY_IGNORED, it must be a valid queue family or a special queue family reserved for external memory transfers, as described in Queue Family Ownership Transfer. - If
imagewas created with a sharing mode ofSHARING_MODE_EXCLUSIVE, andsrcQueueFamilyIndexanddstQueueFamilyIndexare notQUEUE_FAMILY_IGNORED, at least one of them must be the same as the family of the queue that will execute this barrier subresourceRange.baseMipLevelmust be less than themipLevelsspecified inVkImageCreateInfowhenimagewas created- If
subresourceRange.levelCountis notREMAINING_MIP_LEVELS,subresourceRange.baseMipLevel + subresourceRange.levelCountmust be less than or equal to themipLevelsspecified inVkImageCreateInfowhenimagewas created subresourceRange.baseArrayLayermust be less than thearrayLayersspecified inVkImageCreateInfowhenimagewas created- If
subresourceRange.layerCountis notREMAINING_ARRAY_LAYERS,subresourceRange.baseArrayLayer subresourceRange.layerCountmust be less than or equal to thearrayLayersspecified inVkImageCreateInfowhenimagewas created - If
imagehas a depth/stencil format with both depth and stencil components, then theaspectMaskmember ofsubresourceRangemust include bothIMAGE_ASPECT_DEPTH_BITandIMAGE_ASPECT_STENCIL_BIT - If
imagehas a single-plane color format or is not disjoint, then theaspectMaskmember ofsubresourceRangemust beIMAGE_ASPECT_COLOR_BIT - If
imagehas a multi-planar format and the image is disjoint, then theaspectMaskmember ofsubresourceRangemust include either at least one ofIMAGE_ASPECT_PLANE_0_BIT,IMAGE_ASPECT_PLANE_1_BIT, andIMAGE_ASPECT_PLANE_2_BIT; or must includeIMAGE_ASPECT_COLOR_BIT - If
imagehas a multi-planar format with only two planes, then theaspectMaskmember ofsubresourceRangemust not includeIMAGE_ASPECT_PLANE_2_BIT - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_COLOR_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_SAMPLED_BITorIMAGE_USAGE_INPUT_ATTACHMENT_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_TRANSFER_SRC_OPTIMALthenimagemust have been created withIMAGE_USAGE_TRANSFER_SRC_BITset - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_TRANSFER_DST_OPTIMALthenimagemust have been created withIMAGE_USAGE_TRANSFER_DST_BITset - If
imageis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject - If either
oldLayoutornewLayoutisIMAGE_LAYOUT_SHADING_RATE_OPTIMAL_NVthenimagemust have been created withIMAGE_USAGE_SHADING_RATE_IMAGE_BIT_NVset
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIERpNextmust beNULLor a pointer to a valid instance ofVkSampleLocationsInfoEXTsrcAccessMaskmust be a valid combination ofVkAccessFlagBitsvaluesdstAccessMaskmust be a valid combination ofVkAccessFlagBitsvaluesoldLayoutmust be a validVkImageLayoutvaluenewLayoutmust be a validVkImageLayoutvalueimagemust be a validVkImagehandlesubresourceRangemust be a validVkImageSubresourceRangestructure
See Also
VkImageSubresourceRange,CmdPipelineBarrier,CmdWaitEventsMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.srcAccessMask– a bitmask ofVkAccessFlagBitsspecifying a source access mask.dstAccessMask– a bitmask ofVkAccessFlagBitsspecifying a destination access mask.oldLayout– the old layout in an image layout transition.newLayout– the new layout in an image layout transition.srcQueueFamilyIndex– the source queue family for a queue family ownership transfer.dstQueueFamilyIndex– the destination queue family for a queue family ownership transfer.image– a handle to the image affected by this barrier.subresourceRange– describes the image subresource range withinimagethat is affected by this barrier.
Layout
struct VkImageMemoryBarrier { VkStructureType sType; void const * pNext; VkAccessFlags srcAccessMask; VkAccessFlags dstAccessMask; VkImageLayout oldLayout; VkImageLayout newLayout; uint32_t srcQueueFamilyIndex; uint32_t dstQueueFamilyIndex; VkImage image;VkImageSubresourceRangesubresourceRange; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageMemoryBarrier.BufferAn array ofVkImageMemoryBarrierstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDSTACCESSMASK
DSTQUEUEFAMILYINDEX
IMAGE
NEWLAYOUT
OLDLAYOUT
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSRCACCESSMASK
SRCQUEUEFAMILYINDEX
STYPE
SUBRESOURCERANGEThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkImageMemoryBarrier(java.nio.ByteBuffer container)Creates aVkImageMemoryBarrierinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageMemoryBarriercalloc()Returns a newVkImageMemoryBarrierinstance allocated withmemCalloc.static VkImageMemoryBarrier.Buffercalloc(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated withmemCalloc.static VkImageMemoryBarriercallocStack()Returns a newVkImageMemoryBarrierinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageMemoryBarrier.BuffercallocStack(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkImageMemoryBarrier.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarriercallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarriercreate()Returns a newVkImageMemoryBarrierinstance allocated withBufferUtils.static VkImageMemoryBarrier.Buffercreate(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated withBufferUtils.static VkImageMemoryBarriercreate(long address)Returns a newVkImageMemoryBarrierinstance for the specified memory address.static VkImageMemoryBarrier.Buffercreate(long address, int capacity)Create aVkImageMemoryBarrier.Bufferinstance at the specified memory.static VkImageMemoryBarriercreateSafe(long address)static VkImageMemoryBarrier.BuffercreateSafe(long address, int capacity)intdstAccessMask()Returns the value of thedstAccessMaskfield.VkImageMemoryBarrierdstAccessMask(int value)Sets the specified value to thedstAccessMaskfield.intdstQueueFamilyIndex()Returns the value of thedstQueueFamilyIndexfield.VkImageMemoryBarrierdstQueueFamilyIndex(int value)Sets the specified value to thedstQueueFamilyIndexfield.longimage()Returns the value of theimagefield.VkImageMemoryBarrierimage(long value)Sets the specified value to theimagefield.static VkImageMemoryBarriermalloc()Returns a newVkImageMemoryBarrierinstance allocated withmemAlloc.static VkImageMemoryBarrier.Buffermalloc(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated withmemAlloc.static VkImageMemoryBarriermallocStack()Returns a newVkImageMemoryBarrierinstance allocated on the thread-localMemoryStack.static VkImageMemoryBarrier.BuffermallocStack(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStack.static VkImageMemoryBarrier.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStack.static VkImageMemoryBarriermallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStack.static intndstAccessMask(long struct)Unsafe version ofdstAccessMask().static voidndstAccessMask(long struct, int value)Unsafe version ofdstAccessMask.static intndstQueueFamilyIndex(long struct)Unsafe version ofdstQueueFamilyIndex().static voidndstQueueFamilyIndex(long struct, int value)Unsafe version ofdstQueueFamilyIndex.intnewLayout()Returns the value of thenewLayoutfield.VkImageMemoryBarriernewLayout(int value)Sets the specified value to thenewLayoutfield.static longnimage(long struct)Unsafe version ofimage().static voidnimage(long struct, long value)Unsafe version ofimage.static intnnewLayout(long struct)Unsafe version ofnewLayout().static voidnnewLayout(long struct, int value)Unsafe version ofnewLayout.static intnoldLayout(long struct)Unsafe version ofoldLayout().static voidnoldLayout(long struct, int value)Unsafe version ofoldLayout.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsrcAccessMask(long struct)Unsafe version ofsrcAccessMask().static voidnsrcAccessMask(long struct, int value)Unsafe version ofsrcAccessMask.static intnsrcQueueFamilyIndex(long struct)Unsafe version ofsrcQueueFamilyIndex().static voidnsrcQueueFamilyIndex(long struct, int value)Unsafe version ofsrcQueueFamilyIndex.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static VkImageSubresourceRangensubresourceRange(long struct)Unsafe version ofsubresourceRange().static voidnsubresourceRange(long struct, VkImageSubresourceRange value)Unsafe version ofsubresourceRange.intoldLayout()Returns the value of theoldLayoutfield.VkImageMemoryBarrieroldLayout(int value)Sets the specified value to theoldLayoutfield.longpNext()Returns the value of thepNextfield.VkImageMemoryBarrierpNext(long value)Sets the specified value to thepNextfield.VkImageMemoryBarrierset(int sType, long pNext, int srcAccessMask, int dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)Initializes this struct with the specified values.VkImageMemoryBarrierset(VkImageMemoryBarrier src)Copies the specified struct data to this struct.intsizeof()intsrcAccessMask()Returns the value of thesrcAccessMaskfield.VkImageMemoryBarriersrcAccessMask(int value)Sets the specified value to thesrcAccessMaskfield.intsrcQueueFamilyIndex()Returns the value of thesrcQueueFamilyIndexfield.VkImageMemoryBarriersrcQueueFamilyIndex(int value)Sets the specified value to thesrcQueueFamilyIndexfield.intsType()Returns the value of thesTypefield.VkImageMemoryBarriersType(int value)Sets the specified value to thesTypefield.VkImageSubresourceRangesubresourceRange()Returns aVkImageSubresourceRangeview of thesubresourceRangefield.VkImageMemoryBarriersubresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)Passes thesubresourceRangefield to the specifiedConsumer.VkImageMemoryBarriersubresourceRange(VkImageSubresourceRange value)Copies the specifiedVkImageSubresourceRangeto thesubresourceRangefield.
-
-
-
Constructor Detail
-
VkImageMemoryBarrier
public VkImageMemoryBarrier(java.nio.ByteBuffer container)
Creates aVkImageMemoryBarrierinstance at the current position of the specifiedByteBuffercontainer. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
srcAccessMask
public int srcAccessMask()
Returns the value of thesrcAccessMaskfield.
-
dstAccessMask
public int dstAccessMask()
Returns the value of thedstAccessMaskfield.
-
oldLayout
public int oldLayout()
Returns the value of theoldLayoutfield.
-
newLayout
public int newLayout()
Returns the value of thenewLayoutfield.
-
srcQueueFamilyIndex
public int srcQueueFamilyIndex()
Returns the value of thesrcQueueFamilyIndexfield.
-
dstQueueFamilyIndex
public int dstQueueFamilyIndex()
Returns the value of thedstQueueFamilyIndexfield.
-
image
public long image()
Returns the value of theimagefield.
-
subresourceRange
public VkImageSubresourceRange subresourceRange()
Returns aVkImageSubresourceRangeview of thesubresourceRangefield.
-
sType
public VkImageMemoryBarrier sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkImageMemoryBarrier pNext(long value)
Sets the specified value to thepNextfield.
-
srcAccessMask
public VkImageMemoryBarrier srcAccessMask(int value)
Sets the specified value to thesrcAccessMaskfield.
-
dstAccessMask
public VkImageMemoryBarrier dstAccessMask(int value)
Sets the specified value to thedstAccessMaskfield.
-
oldLayout
public VkImageMemoryBarrier oldLayout(int value)
Sets the specified value to theoldLayoutfield.
-
newLayout
public VkImageMemoryBarrier newLayout(int value)
Sets the specified value to thenewLayoutfield.
-
srcQueueFamilyIndex
public VkImageMemoryBarrier srcQueueFamilyIndex(int value)
Sets the specified value to thesrcQueueFamilyIndexfield.
-
dstQueueFamilyIndex
public VkImageMemoryBarrier dstQueueFamilyIndex(int value)
Sets the specified value to thedstQueueFamilyIndexfield.
-
image
public VkImageMemoryBarrier image(long value)
Sets the specified value to theimagefield.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRangeto thesubresourceRangefield.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRangefield to the specifiedConsumer.
-
set
public VkImageMemoryBarrier set(int sType, long pNext, int srcAccessMask, int dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)
Initializes this struct with the specified values.
-
set
public VkImageMemoryBarrier set(VkImageMemoryBarrier src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageMemoryBarrier malloc()
Returns a newVkImageMemoryBarrierinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageMemoryBarrier calloc()
Returns a newVkImageMemoryBarrierinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageMemoryBarrier create()
Returns a newVkImageMemoryBarrierinstance allocated withBufferUtils.
-
create
public static VkImageMemoryBarrier create(long address)
Returns a newVkImageMemoryBarrierinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageMemoryBarrier createSafe(long address)
-
malloc
public static VkImageMemoryBarrier.Buffer malloc(int capacity)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageMemoryBarrier.Buffer calloc(int capacity)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryBarrier.Buffer create(int capacity)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryBarrier.Buffer create(long address, int capacity)
Create aVkImageMemoryBarrier.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageMemoryBarrier.Buffer createSafe(long address, int capacity)
-
mallocStack
public static VkImageMemoryBarrier mallocStack()
Returns a newVkImageMemoryBarrierinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkImageMemoryBarrier callocStack()
Returns a newVkImageMemoryBarrierinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkImageMemoryBarrier mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkImageMemoryBarrier callocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
mallocStack
public static VkImageMemoryBarrier.Buffer mallocStack(int capacity)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkImageMemoryBarrier.Buffer callocStack(int capacity)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkImageMemoryBarrier.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
callocStack
public static VkImageMemoryBarrier.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
nsrcAccessMask
public static int nsrcAccessMask(long struct)
Unsafe version ofsrcAccessMask().
-
ndstAccessMask
public static int ndstAccessMask(long struct)
Unsafe version ofdstAccessMask().
-
noldLayout
public static int noldLayout(long struct)
Unsafe version ofoldLayout().
-
nnewLayout
public static int nnewLayout(long struct)
Unsafe version ofnewLayout().
-
nsrcQueueFamilyIndex
public static int nsrcQueueFamilyIndex(long struct)
Unsafe version ofsrcQueueFamilyIndex().
-
ndstQueueFamilyIndex
public static int ndstQueueFamilyIndex(long struct)
Unsafe version ofdstQueueFamilyIndex().
-
nimage
public static long nimage(long struct)
Unsafe version ofimage().
-
nsubresourceRange
public static VkImageSubresourceRange nsubresourceRange(long struct)
Unsafe version ofsubresourceRange().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
nsrcAccessMask
public static void nsrcAccessMask(long struct, int value)Unsafe version ofsrcAccessMask.
-
ndstAccessMask
public static void ndstAccessMask(long struct, int value)Unsafe version ofdstAccessMask.
-
noldLayout
public static void noldLayout(long struct, int value)Unsafe version ofoldLayout.
-
nnewLayout
public static void nnewLayout(long struct, int value)Unsafe version ofnewLayout.
-
nsrcQueueFamilyIndex
public static void nsrcQueueFamilyIndex(long struct, int value)Unsafe version ofsrcQueueFamilyIndex.
-
ndstQueueFamilyIndex
public static void ndstQueueFamilyIndex(long struct, int value)Unsafe version ofdstQueueFamilyIndex.
-
nimage
public static void nimage(long struct, long value)Unsafe version ofimage.
-
nsubresourceRange
public static void nsubresourceRange(long struct, VkImageSubresourceRange value)Unsafe version ofsubresourceRange.
-
-