Package org.lwjgl.vulkan
Class VkImageCopy2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkImageCopy2
-
- org.lwjgl.vulkan.VkImageCopy2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkImageCopy2KHR extends VkImageCopy2
SeeVkImageCopy2.Layout
struct VkImageCopy2KHR { VkStructureType sType; void const * pNext;VkImageSubresourceLayerssrcSubresource;VkOffset3DsrcOffset;VkImageSubresourceLayersdstSubresource;VkOffset3DdstOffset;VkExtent3Dextent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkImageCopy2KHR.BufferAn array ofVkImageCopy2KHRstructs.
-
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.VkImageCopy2
ALIGNOF, DSTOFFSET, DSTSUBRESOURCE, EXTENT, PNEXT, SIZEOF, SRCOFFSET, SRCSUBRESOURCE, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkImageCopy2KHR(java.nio.ByteBuffer container)Creates aVkImageCopy2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkImageCopy2KHRcalloc()Returns a newVkImageCopy2KHRinstance allocated withmemCalloc.static VkImageCopy2KHR.Buffercalloc(int capacity)Returns a newVkImageCopy2KHR.Bufferinstance allocated withmemCalloc.static VkImageCopy2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopy2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopy2KHRcreate()Returns a newVkImageCopy2KHRinstance allocated withBufferUtils.static VkImageCopy2KHR.Buffercreate(int capacity)Returns a newVkImageCopy2KHR.Bufferinstance allocated withBufferUtils.static VkImageCopy2KHRcreate(long address)Returns a newVkImageCopy2KHRinstance for the specified memory address.static VkImageCopy2KHR.Buffercreate(long address, int capacity)Create aVkImageCopy2KHR.Bufferinstance at the specified memory.static VkImageCopy2KHRcreateSafe(long address)static VkImageCopy2KHR.BuffercreateSafe(long address, int capacity)VkImageCopy2KHRdstOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thedstOffsetfield to the specifiedConsumer.VkImageCopy2KHRdstOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thedstOffsetfield.VkImageCopy2KHRdstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thedstSubresourcefield to the specifiedConsumer.VkImageCopy2KHRdstSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.VkImageCopy2KHRextent(java.util.function.Consumer<VkExtent3D> consumer)Passes theextentfield to the specifiedConsumer.VkImageCopy2KHRextent(VkExtent3D value)Copies the specifiedVkExtent3Dto theextentfield.static VkImageCopy2KHRmalloc()Returns a newVkImageCopy2KHRinstance allocated withmemAlloc.static VkImageCopy2KHR.Buffermalloc(int capacity)Returns a newVkImageCopy2KHR.Bufferinstance allocated withmemAlloc.static VkImageCopy2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkImageCopy2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkImageCopy2KHRinstance allocated on the specifiedMemoryStack.VkImageCopy2KHRpNext(long value)Sets the specified value to thepNextfield.VkImageCopy2KHRset(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)Initializes this struct with the specified values.VkImageCopy2KHRset(VkImageCopy2KHR src)Copies the specified struct data to this struct.VkImageCopy2KHRsrcOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes thesrcOffsetfield to the specifiedConsumer.VkImageCopy2KHRsrcOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto thesrcOffsetfield.VkImageCopy2KHRsrcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes thesrcSubresourcefield to the specifiedConsumer.VkImageCopy2KHRsrcSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.VkImageCopy2KHRsType(int value)Sets the specified value to thesTypefield.VkImageCopy2KHRsType$Default()Sets theSTRUCTURE_TYPE_IMAGE_COPY_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkImageCopy2
dstOffset, dstSubresource, extent, ndstOffset, ndstOffset, ndstSubresource, ndstSubresource, nextent, nextent, npNext, npNext, nsrcOffset, nsrcOffset, nsrcSubresource, nsrcSubresource, nsType, nsType, pNext, set, sizeof, srcOffset, srcSubresource, sType
-
-
-
-
Constructor Detail
-
VkImageCopy2KHR
public VkImageCopy2KHR(java.nio.ByteBuffer container)
Creates aVkImageCopy2KHRinstance 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 VkImageCopy2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkImageCopy2
-
sType$Default
public VkImageCopy2KHR sType$Default()
Sets theSTRUCTURE_TYPE_IMAGE_COPY_2value to thesTypefield.- Overrides:
sType$Defaultin classVkImageCopy2
-
pNext
public VkImageCopy2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageCopy2
-
srcSubresource
public VkImageCopy2KHR srcSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.- Overrides:
srcSubresourcein classVkImageCopy2
-
srcSubresource
public VkImageCopy2KHR srcSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thesrcSubresourcefield to the specifiedConsumer.- Overrides:
srcSubresourcein classVkImageCopy2
-
srcOffset
public VkImageCopy2KHR srcOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thesrcOffsetfield.- Overrides:
srcOffsetin classVkImageCopy2
-
srcOffset
public VkImageCopy2KHR srcOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thesrcOffsetfield to the specifiedConsumer.- Overrides:
srcOffsetin classVkImageCopy2
-
dstSubresource
public VkImageCopy2KHR dstSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.- Overrides:
dstSubresourcein classVkImageCopy2
-
dstSubresource
public VkImageCopy2KHR dstSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes thedstSubresourcefield to the specifiedConsumer.- Overrides:
dstSubresourcein classVkImageCopy2
-
dstOffset
public VkImageCopy2KHR dstOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto thedstOffsetfield.- Overrides:
dstOffsetin classVkImageCopy2
-
dstOffset
public VkImageCopy2KHR dstOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes thedstOffsetfield to the specifiedConsumer.- Overrides:
dstOffsetin classVkImageCopy2
-
extent
public VkImageCopy2KHR extent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theextentfield.- Overrides:
extentin classVkImageCopy2
-
extent
public VkImageCopy2KHR extent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theextentfield to the specifiedConsumer.- Overrides:
extentin classVkImageCopy2
-
set
public VkImageCopy2KHR set(int sType, long pNext, VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent)
Initializes this struct with the specified values.- Overrides:
setin classVkImageCopy2
-
set
public VkImageCopy2KHR set(VkImageCopy2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkImageCopy2KHR malloc()
Returns a newVkImageCopy2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkImageCopy2KHR calloc()
Returns a newVkImageCopy2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkImageCopy2KHR create()
Returns a newVkImageCopy2KHRinstance allocated withBufferUtils.
-
create
public static VkImageCopy2KHR create(long address)
Returns a newVkImageCopy2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkImageCopy2KHR createSafe(long address)
-
malloc
public static VkImageCopy2KHR.Buffer malloc(int capacity)
Returns a newVkImageCopy2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkImageCopy2KHR.Buffer calloc(int capacity)
Returns a newVkImageCopy2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCopy2KHR.Buffer create(int capacity)
Returns a newVkImageCopy2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkImageCopy2KHR.Buffer create(long address, int capacity)
Create aVkImageCopy2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkImageCopy2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkImageCopy2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageCopy2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkImageCopy2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkImageCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkImageCopy2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkImageCopy2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-