Package org.lwjgl.vulkan
Class VkImageMemoryBarrier2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageMemoryBarrier2
-
- org.lwjgl.vulkan.VkImageMemoryBarrier2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageMemoryBarrier2KHR extends VkImageMemoryBarrier2
SeeVkImageMemoryBarrier2.Layout
struct VkImageMemoryBarrier2KHR { VkStructureType sType; void const * pNext; VkPipelineStageFlags2 srcStageMask; VkAccessFlags2 srcAccessMask; VkPipelineStageFlags2 dstStageMask; VkAccessFlags2 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 classVkImageMemoryBarrier2KHR.BufferAn array ofVkImageMemoryBarrier2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkImageMemoryBarrier2
ALIGNOF, DSTACCESSMASK, DSTQUEUEFAMILYINDEX, DSTSTAGEMASK, IMAGE, NEWLAYOUT, OLDLAYOUT, PNEXT, SIZEOF, SRCACCESSMASK, SRCQUEUEFAMILYINDEX, SRCSTAGEMASK, STYPE, SUBRESOURCERANGE
-
-
Constructor Summary
Constructors Constructor Description VkImageMemoryBarrier2KHR(java.nio.ByteBuffer container)Creates aVkImageMemoryBarrier2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageMemoryBarrier2KHRcalloc()Returns a newVkImageMemoryBarrier2KHRinstance allocated withmemCalloc.static VkImageMemoryBarrier2KHR.Buffercalloc(int capacity)Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withmemCalloc.static VkImageMemoryBarrier2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarrier2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageMemoryBarrier2KHRcreate()Returns a newVkImageMemoryBarrier2KHRinstance allocated withBufferUtils.static VkImageMemoryBarrier2KHR.Buffercreate(int capacity)Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withBufferUtils.static VkImageMemoryBarrier2KHRcreate(long address)Returns a newVkImageMemoryBarrier2KHRinstance for the specified memory address.static VkImageMemoryBarrier2KHR.Buffercreate(long address, int capacity)Create aVkImageMemoryBarrier2KHR.Bufferinstance at the specified memory.static VkImageMemoryBarrier2KHRcreateSafe(long address)static VkImageMemoryBarrier2KHR.BuffercreateSafe(long address, int capacity)VkImageMemoryBarrier2KHRdstAccessMask(long value)Sets the specified value to thedstAccessMaskfield.VkImageMemoryBarrier2KHRdstQueueFamilyIndex(int value)Sets the specified value to thedstQueueFamilyIndexfield.VkImageMemoryBarrier2KHRdstStageMask(long value)Sets the specified value to thedstStageMaskfield.VkImageMemoryBarrier2KHRimage(long value)Sets the specified value to theimagefield.static VkImageMemoryBarrier2KHRmalloc()Returns a newVkImageMemoryBarrier2KHRinstance allocated withmemAlloc.static VkImageMemoryBarrier2KHR.Buffermalloc(int capacity)Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withmemAlloc.static VkImageMemoryBarrier2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageMemoryBarrier2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageMemoryBarrier2KHRinstance allocated on the specifiedMemoryStack.VkImageMemoryBarrier2KHRnewLayout(int value)Sets the specified value to thenewLayoutfield.VkImageMemoryBarrier2KHRoldLayout(int value)Sets the specified value to theoldLayoutfield.VkImageMemoryBarrier2KHRpNext(long value)Sets the specified value to thepNextfield.VkImageMemoryBarrier2KHRset(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)Initializes this struct with the specified values.VkImageMemoryBarrier2KHRset(VkImageMemoryBarrier2KHR src)Copies the specified struct data to this struct.VkImageMemoryBarrier2KHRsrcAccessMask(long value)Sets the specified value to thesrcAccessMaskfield.VkImageMemoryBarrier2KHRsrcQueueFamilyIndex(int value)Sets the specified value to thesrcQueueFamilyIndexfield.VkImageMemoryBarrier2KHRsrcStageMask(long value)Sets the specified value to thesrcStageMaskfield.VkImageMemoryBarrier2KHRsType(int value)Sets the specified value to thesTypefield.VkImageMemoryBarrier2KHRsType$Default()Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2value to thesTypefield.VkImageMemoryBarrier2KHRsubresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)Passes thesubresourceRangefield to the specifiedConsumer.VkImageMemoryBarrier2KHRsubresourceRange(VkImageSubresourceRange value)Copies the specifiedVkImageSubresourceRangeto thesubresourceRangefield.-
Methods inherited from class org.lwjgl.vulkan.VkImageMemoryBarrier2
dstAccessMask, dstQueueFamilyIndex, dstStageMask, image, ndstAccessMask, ndstAccessMask, ndstQueueFamilyIndex, ndstQueueFamilyIndex, ndstStageMask, ndstStageMask, newLayout, nimage, nimage, nnewLayout, nnewLayout, noldLayout, noldLayout, npNext, npNext, nsrcAccessMask, nsrcAccessMask, nsrcQueueFamilyIndex, nsrcQueueFamilyIndex, nsrcStageMask, nsrcStageMask, nsType, nsType, nsubresourceRange, nsubresourceRange, oldLayout, pNext, pNext, set, sizeof, srcAccessMask, srcQueueFamilyIndex, srcStageMask, sType, subresourceRange
-
-
-
-
Constructor Detail
-
VkImageMemoryBarrier2KHR
public VkImageMemoryBarrier2KHR(java.nio.ByteBuffer container)
Creates aVkImageMemoryBarrier2KHRinstance 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
-
sType
public VkImageMemoryBarrier2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkImageMemoryBarrier2
-
sType$Default
public VkImageMemoryBarrier2KHR sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_MEMORY_BARRIER_2value to thesTypefield.- Overrides:
sType$Defaultin classVkImageMemoryBarrier2
-
pNext
public VkImageMemoryBarrier2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageMemoryBarrier2
-
srcStageMask
public VkImageMemoryBarrier2KHR srcStageMask(long value)
Sets the specified value to thesrcStageMaskfield.- Overrides:
srcStageMaskin classVkImageMemoryBarrier2
-
srcAccessMask
public VkImageMemoryBarrier2KHR srcAccessMask(long value)
Sets the specified value to thesrcAccessMaskfield.- Overrides:
srcAccessMaskin classVkImageMemoryBarrier2
-
dstStageMask
public VkImageMemoryBarrier2KHR dstStageMask(long value)
Sets the specified value to thedstStageMaskfield.- Overrides:
dstStageMaskin classVkImageMemoryBarrier2
-
dstAccessMask
public VkImageMemoryBarrier2KHR dstAccessMask(long value)
Sets the specified value to thedstAccessMaskfield.- Overrides:
dstAccessMaskin classVkImageMemoryBarrier2
-
oldLayout
public VkImageMemoryBarrier2KHR oldLayout(int value)
Sets the specified value to theoldLayoutfield.- Overrides:
oldLayoutin classVkImageMemoryBarrier2
-
newLayout
public VkImageMemoryBarrier2KHR newLayout(int value)
Sets the specified value to thenewLayoutfield.- Overrides:
newLayoutin classVkImageMemoryBarrier2
-
srcQueueFamilyIndex
public VkImageMemoryBarrier2KHR srcQueueFamilyIndex(int value)
Sets the specified value to thesrcQueueFamilyIndexfield.- Overrides:
srcQueueFamilyIndexin classVkImageMemoryBarrier2
-
dstQueueFamilyIndex
public VkImageMemoryBarrier2KHR dstQueueFamilyIndex(int value)
Sets the specified value to thedstQueueFamilyIndexfield.- Overrides:
dstQueueFamilyIndexin classVkImageMemoryBarrier2
-
image
public VkImageMemoryBarrier2KHR image(long value)
Sets the specified value to theimagefield.- Overrides:
imagein classVkImageMemoryBarrier2
-
subresourceRange
public VkImageMemoryBarrier2KHR subresourceRange(VkImageSubresourceRange value)
Copies the specifiedVkImageSubresourceRangeto thesubresourceRangefield.- Overrides:
subresourceRangein classVkImageMemoryBarrier2
-
subresourceRange
public VkImageMemoryBarrier2KHR subresourceRange(java.util.function.Consumer<VkImageSubresourceRange> consumer)
Passes thesubresourceRangefield to the specifiedConsumer.- Overrides:
subresourceRangein classVkImageMemoryBarrier2
-
set
public VkImageMemoryBarrier2KHR set(int sType, long pNext, long srcStageMask, long srcAccessMask, long dstStageMask, long dstAccessMask, int oldLayout, int newLayout, int srcQueueFamilyIndex, int dstQueueFamilyIndex, long image, VkImageSubresourceRange subresourceRange)
Initializes this struct with the specified values.- Overrides:
setin classVkImageMemoryBarrier2
-
set
public VkImageMemoryBarrier2KHR set(VkImageMemoryBarrier2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageMemoryBarrier2KHR malloc()
Returns a newVkImageMemoryBarrier2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageMemoryBarrier2KHR calloc()
Returns a newVkImageMemoryBarrier2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageMemoryBarrier2KHR create()
Returns a newVkImageMemoryBarrier2KHRinstance allocated withBufferUtils.
-
create
public static VkImageMemoryBarrier2KHR create(long address)
Returns a newVkImageMemoryBarrier2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageMemoryBarrier2KHR createSafe(long address)
-
malloc
public static VkImageMemoryBarrier2KHR.Buffer malloc(int capacity)
Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageMemoryBarrier2KHR.Buffer calloc(int capacity)
Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryBarrier2KHR.Buffer create(int capacity)
Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageMemoryBarrier2KHR.Buffer create(long address, int capacity)
Create aVkImageMemoryBarrier2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageMemoryBarrier2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkImageMemoryBarrier2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageMemoryBarrier2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageMemoryBarrier2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageMemoryBarrier2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageMemoryBarrier2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-