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 the
synchronization2feature is not enabled oroldLayoutis not equal tonewLayout,oldLayoutandnewLayoutdefine an image layout transition for the specified image subresource range.Note
If the
synchronization2feature is enabled, when the old and new layout are equal, the layout values are ignored - data is preserved no matter what values are specified, or what layout the image is currently in.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
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
imageis non-sparse then it must be bound completely and contiguously to a singleVkDeviceMemoryobject - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_COLOR_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_STENCIL_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_STENCIL_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_SHADER_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_SAMPLED_BITorIMAGE_USAGE_INPUT_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_TRANSFER_SRC_OPTIMALthenimagemust have been created withIMAGE_USAGE_TRANSFER_SRC_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_TRANSFER_DST_OPTIMALthenimagemust have been created withIMAGE_USAGE_TRANSFER_DST_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition,oldLayoutmust beIMAGE_LAYOUT_UNDEFINEDor the current layout of the image subresources affected by the barrier - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition,newLayoutmust not beIMAGE_LAYOUT_UNDEFINEDorIMAGE_LAYOUT_PREINITIALIZED - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_READ_ONLY_STENCIL_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_ATTACHMENT_STENCIL_READ_ONLY_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_READ_ONLY_OPTIMALthenimagemust have been created with at least one ofIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,IMAGE_USAGE_SAMPLED_BIT, orIMAGE_USAGE_INPUT_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_DEPTH_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_STENCIL_READ_ONLY_OPTIMALthenimagemust have been created with at least one ofIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,IMAGE_USAGE_SAMPLED_BIT, orIMAGE_USAGE_INPUT_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_STENCIL_ATTACHMENT_OPTIMALthenimagemust have been created withIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BITset - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_ATTACHMENT_OPTIMAL,imagemust have been created withIMAGE_USAGE_COLOR_ATTACHMENT_BITorIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_READ_ONLY_OPTIMAL,imagemust have been created with at least one ofIMAGE_USAGE_DEPTH_STENCIL_ATTACHMENT_BIT,IMAGE_USAGE_SAMPLED_BIT, orIMAGE_USAGE_INPUT_ATTACHMENT_BIT - If
srcQueueFamilyIndexanddstQueueFamilyIndexdefine a queue family ownership transfer oroldLayoutandnewLayoutdefine an image layout transition, andoldLayoutornewLayoutisIMAGE_LAYOUT_FRAGMENT_SHADING_RATE_ATTACHMENT_OPTIMAL_KHRthenimagemust have been created withIMAGE_USAGE_FRAGMENT_SHADING_RATE_ATTACHMENT_BIT_KHRset - 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
imagehas a depth/stencil format with both depth and stencil and the separateDepthStencilLayouts feature is enabled, then theaspectMaskmember ofsubresourceRangemust include either or bothIMAGE_ASPECT_DEPTH_BITandIMAGE_ASPECT_STENCIL_BIT - If
imagehas a depth/stencil format with both depth and stencil and the separateDepthStencilLayouts feature is not enabled, then theaspectMaskmember ofsubresourceRangemust include bothIMAGE_ASPECT_DEPTH_BITandIMAGE_ASPECT_STENCIL_BIT - If
srcQueueFamilyIndexis not equal todstQueueFamilyIndex, at least one must not be a special queue family reserved for external memory ownership transfers, as described in Queue Family Ownership Transfer - If
imagewas created with a sharing mode ofSHARING_MODE_CONCURRENT,srcQueueFamilyIndexanddstQueueFamilyIndexare not equal, and one ofsrcQueueFamilyIndexanddstQueueFamilyIndexis one of the special queue family values reserved for external memory transfers, the other must beQUEUE_FAMILY_IGNORED - If
imagewas created with a sharing mode ofSHARING_MODE_EXCLUSIVE, andsrcQueueFamilyIndexanddstQueueFamilyIndexare not equal,srcQueueFamilyIndexanddstQueueFamilyIndexmust both be valid queue families, or one of the special queue family values reserved for external memory transfers, as described in Queue Family Ownership Transfer - If the
synchronization2feature is not enabled, andimagewas created with a sharing mode ofSHARING_MODE_CONCURRENT, at least one ofsrcQueueFamilyIndexanddstQueueFamilyIndexmust beQUEUE_FAMILY_IGNORED
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIERpNextmust beNULLor a pointer to a valid instance ofVkSampleLocationsInfoEXT- The
sTypevalue of each struct in thepNextchain must be unique oldLayoutmust be a validVkImageLayoutvaluenewLayoutmust be a validVkImageLayoutvalueimagemust be a validVkImagehandlesubresourceRangemust be a validVkImageSubresourceRangestructure
See Also
VkImageSubresourceRange,CmdPipelineBarrier,CmdWaitEventsLayout
struct VkImageMemoryBarrier { VkStructureTypesType(); void const *pNext(); VkAccessFlagssrcAccessMask(); VkAccessFlagsdstAccessMask(); VkImageLayoutoldLayout(); VkImageLayoutnewLayout(); uint32_tsrcQueueFamilyIndex(); uint32_tdstQueueFamilyIndex(); VkImageimage();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 Deprecated 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 VkImageMemoryBarrier.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarriercalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarriercallocStack()Deprecated.static VkImageMemoryBarrier.BuffercallocStack(int capacity)Deprecated.static VkImageMemoryBarrier.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageMemoryBarriercallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()a bitmask ofVkAccessFlagBitsspecifying a destination access mask.VkImageMemoryBarrierdstAccessMask(int value)Sets the specified value to thedstAccessMask()field.intdstQueueFamilyIndex()the destination queue family for a queue family ownership transfer.VkImageMemoryBarrierdstQueueFamilyIndex(int value)Sets the specified value to thedstQueueFamilyIndex()field.longimage()a handle to the image affected by this barrier.VkImageMemoryBarrierimage(long value)Sets the specified value to theimage()field.static VkImageMemoryBarriermalloc()Returns a newVkImageMemoryBarrierinstance allocated withmemAlloc.static VkImageMemoryBarrier.Buffermalloc(int capacity)Returns a newVkImageMemoryBarrier.Bufferinstance allocated withmemAlloc.static VkImageMemoryBarrier.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier.Bufferinstance allocated on the specifiedMemoryStack.static VkImageMemoryBarriermalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStack.static VkImageMemoryBarriermallocStack()Deprecated.static VkImageMemoryBarrier.BuffermallocStack(int capacity)Deprecated.static VkImageMemoryBarrier.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkImageMemoryBarriermallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.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()the new layout in an image layout transition.VkImageMemoryBarriernewLayout(int value)Sets the specified value to thenewLayout()field.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()the old layout in an image layout transition.VkImageMemoryBarrieroldLayout(int value)Sets the specified value to theoldLayout()field.longpNext()NULLor a pointer to a structure extending this structure.VkImageMemoryBarrierpNext(long value)Sets the specified value to thepNext()field.VkImageMemoryBarrierpNext(VkSampleLocationsInfoEXT value)Prepends the specifiedVkSampleLocationsInfoEXTvalue to thepNextchain.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()a bitmask ofVkAccessFlagBitsspecifying a source access mask.VkImageMemoryBarriersrcAccessMask(int value)Sets the specified value to thesrcAccessMask()field.intsrcQueueFamilyIndex()the source queue family for a queue family ownership transfer.VkImageMemoryBarriersrcQueueFamilyIndex(int value)Sets the specified value to thesrcQueueFamilyIndex()field.intsType()the type of this structure.VkImageMemoryBarriersType(int value)Sets the specified value to thesType()field.VkImageMemoryBarriersType$Default()Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIERvalue to thesType()field.VkImageSubresourceRangesubresourceRange()describes the image subresource range withinimagethat is affected by this barrier.VkImageMemoryBarriersubresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)Passes thesubresourceRange()field to the specifiedConsumer.VkImageMemoryBarriersubresourceRange(VkImageSubresourceRange value)Copies the specifiedVkImageSubresourceRangeto thesubresourceRange()field.
-
-
-
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()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
srcAccessMask
public int srcAccessMask()
a bitmask ofVkAccessFlagBitsspecifying a source access mask.
-
dstAccessMask
public int dstAccessMask()
a bitmask ofVkAccessFlagBitsspecifying a destination access mask.
-
oldLayout
public int oldLayout()
the old layout in an image layout transition.
-
newLayout
public int newLayout()
the new layout in an image layout transition.
-
srcQueueFamilyIndex
public int srcQueueFamilyIndex()
the source queue family for a queue family ownership transfer.
-
dstQueueFamilyIndex
public int dstQueueFamilyIndex()
the destination queue family for a queue family ownership transfer.
-
image
public long image()
a handle to the image affected by this barrier.
-
subresourceRange
public VkImageSubresourceRange subresourceRange()
describes the image subresource range withinimagethat is affected by this barrier.
-
sType
public VkImageMemoryBarrier sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkImageMemoryBarrier sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIERvalue to thesType()field.
-
pNext
public VkImageMemoryBarrier pNext(long value)
Sets the specified value to thepNext()field.
-
pNext
public VkImageMemoryBarrier pNext(VkSampleLocationsInfoEXT value)
Prepends the specifiedVkSampleLocationsInfoEXTvalue to thepNextchain.
-
srcAccessMask
public VkImageMemoryBarrier srcAccessMask(int value)
Sets the specified value to thesrcAccessMask()field.
-
dstAccessMask
public VkImageMemoryBarrier dstAccessMask(int value)
Sets the specified value to thedstAccessMask()field.
-
oldLayout
public VkImageMemoryBarrier oldLayout(int value)
Sets the specified value to theoldLayout()field.
-
newLayout
public VkImageMemoryBarrier newLayout(int value)
Sets the specified value to thenewLayout()field.
-
srcQueueFamilyIndex
public VkImageMemoryBarrier srcQueueFamilyIndex(int value)
Sets the specified value to thesrcQueueFamilyIndex()field.
-
dstQueueFamilyIndex
public VkImageMemoryBarrier dstQueueFamilyIndex(int value)
Sets the specified value to thedstQueueFamilyIndex()field.
-
image
public VkImageMemoryBarrier image(long value)
Sets the specified value to theimage()field.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRangeto thesubresourceRange()field.
-
subresourceRange
public VkImageMemoryBarrier subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRange()field 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
@Deprecated public static VkImageMemoryBarrier mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryBarrier callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryBarrier mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryBarrier callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryBarrier.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkImageMemoryBarrier.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkImageMemoryBarrier.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 VkImageMemoryBarrier.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkImageMemoryBarrier malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrierinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageMemoryBarrier calloc(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
-
malloc
public static VkImageMemoryBarrier.Buffer malloc(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
-
calloc
public static VkImageMemoryBarrier.Buffer calloc(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.
-
-