Package org.lwjgl.vulkan
Class VkImageCopy
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkImageCopy {
{@link VkImageSubresourceLayers VkImageSubresourceLayers} srcSubresource;
{@link VkOffset3D VkOffset3D} srcOffset;
{@link VkImageSubresourceLayers VkImageSubresourceLayers} dstSubresource;
{@link VkOffset3D VkOffset3D} dstOffset;
{@link VkExtent3D VkExtent3D} extent;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkImageCopy(ByteBuffer container) Creates aVkImageCopyinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageCopycalloc()Returns a newVkImageCopyinstance allocated withmemCalloc.static VkImageCopy.Buffercalloc(int capacity) Returns a newVkImageCopy.Bufferinstance allocated withmemCalloc.static VkImageCopy.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopycalloc(MemoryStack stack) Returns a newVkImageCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageCopyDeprecated.static VkImageCopy.BuffercallocStack(int capacity) Deprecated.static VkImageCopy.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkImageCopycallocStack(MemoryStack stack) Deprecated.static VkImageCopycreate()Returns a newVkImageCopyinstance allocated withBufferUtils.static VkImageCopy.Buffercreate(int capacity) Returns a newVkImageCopy.Bufferinstance allocated withBufferUtils.static VkImageCopycreate(long address) Returns a newVkImageCopyinstance for the specified memory address.static VkImageCopy.Buffercreate(long address, int capacity) Create aVkImageCopy.Bufferinstance at the specified memory.static @Nullable VkImageCopycreateSafe(long address) static @Nullable VkImageCopy.BuffercreateSafe(long address, int capacity) dstOffset(Consumer<VkOffset3D> consumer) Passes thedstOffsetfield to the specifiedConsumer.dstOffset(VkOffset3D value) Copies the specifiedVkOffset3Dto thedstOffsetfield.dstSubresource(Consumer<VkImageSubresourceLayers> consumer) Passes thedstSubresourcefield to the specifiedConsumer.Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield.extent()extent(Consumer<VkExtent3D> consumer) Passes theextentfield to the specifiedConsumer.extent(VkExtent3D value) Copies the specifiedVkExtent3Dto theextentfield.static VkImageCopymalloc()Returns a newVkImageCopyinstance allocated withmemAlloc.static VkImageCopy.Buffermalloc(int capacity) Returns a newVkImageCopy.Bufferinstance allocated withmemAlloc.static VkImageCopy.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStack.static VkImageCopymalloc(MemoryStack stack) Returns a newVkImageCopyinstance allocated on the specifiedMemoryStack.static VkImageCopyDeprecated.static VkImageCopy.BuffermallocStack(int capacity) Deprecated.static VkImageCopy.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkImageCopymallocStack(MemoryStack stack) Deprecated.static VkOffset3DndstOffset(long struct) Unsafe version ofdstOffset().static voidndstOffset(long struct, VkOffset3D value) Unsafe version ofdstOffset.static VkImageSubresourceLayersndstSubresource(long struct) Unsafe version ofdstSubresource().static voidndstSubresource(long struct, VkImageSubresourceLayers value) Unsafe version ofdstSubresource.static VkExtent3Dnextent(long struct) Unsafe version ofextent().static voidnextent(long struct, VkExtent3D value) Unsafe version ofextent.static VkOffset3DnsrcOffset(long struct) Unsafe version ofsrcOffset().static voidnsrcOffset(long struct, VkOffset3D value) Unsafe version ofsrcOffset.static VkImageSubresourceLayersnsrcSubresource(long struct) Unsafe version ofsrcSubresource().static voidnsrcSubresource(long struct, VkImageSubresourceLayers value) Unsafe version ofsrcSubresource.set(VkImageCopy src) Copies the specified struct data to this struct.set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent) Initializes this struct with the specified values.intsizeof()Returnssizeof(struct).srcOffset(Consumer<VkOffset3D> consumer) Passes thesrcOffsetfield to the specifiedConsumer.srcOffset(VkOffset3D value) Copies the specifiedVkOffset3Dto thesrcOffsetfield.srcSubresource(Consumer<VkImageSubresourceLayers> consumer) Passes thesrcSubresourcefield to the specifiedConsumer.Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SRCSUBRESOURCE
public static final int SRCSUBRESOURCEThe struct member offsets. -
SRCOFFSET
public static final int SRCOFFSETThe struct member offsets. -
DSTSUBRESOURCE
public static final int DSTSUBRESOURCEThe struct member offsets. -
DSTOFFSET
public static final int DSTOFFSETThe struct member offsets. -
EXTENT
public static final int EXTENTThe struct member offsets.
-
-
Constructor Details
-
VkImageCopy
Creates aVkImageCopyinstance 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkImageCopy>
-
srcSubresource
- Returns:
- a
VkImageSubresourceLayersview of thesrcSubresourcefield.
-
srcOffset
- Returns:
- a
VkOffset3Dview of thesrcOffsetfield.
-
dstSubresource
- Returns:
- a
VkImageSubresourceLayersview of thedstSubresourcefield.
-
dstOffset
- Returns:
- a
VkOffset3Dview of thedstOffsetfield.
-
extent
- Returns:
- a
VkExtent3Dview of theextentfield.
-
srcSubresource
Copies the specifiedVkImageSubresourceLayersto thesrcSubresourcefield. -
srcSubresource
Passes thesrcSubresourcefield to the specifiedConsumer. -
srcOffset
Copies the specifiedVkOffset3Dto thesrcOffsetfield. -
srcOffset
Passes thesrcOffsetfield to the specifiedConsumer. -
dstSubresource
Copies the specifiedVkImageSubresourceLayersto thedstSubresourcefield. -
dstSubresource
Passes thedstSubresourcefield to the specifiedConsumer. -
dstOffset
Copies the specifiedVkOffset3Dto thedstOffsetfield. -
dstOffset
Passes thedstOffsetfield to the specifiedConsumer. -
extent
Copies the specifiedVkExtent3Dto theextentfield. -
extent
Passes theextentfield to the specifiedConsumer. -
set
public VkImageCopy set(VkImageSubresourceLayers srcSubresource, VkOffset3D srcOffset, VkImageSubresourceLayers dstSubresource, VkOffset3D dstOffset, VkExtent3D extent) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkImageCopyinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageCopyinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageCopyinstance allocated withBufferUtils. -
create
Returns a newVkImageCopyinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageCopy.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageCopy.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageCopy.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageCopy.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead. -
malloc
Returns a newVkImageCopyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrcSubresource
Unsafe version ofsrcSubresource(). -
nsrcOffset
Unsafe version ofsrcOffset(). -
ndstSubresource
Unsafe version ofdstSubresource(). -
ndstOffset
Unsafe version ofdstOffset(). -
nextent
Unsafe version ofextent(). -
nsrcSubresource
Unsafe version ofsrcSubresource. -
nsrcOffset
Unsafe version ofsrcOffset. -
ndstSubresource
Unsafe version ofdstSubresource. -
ndstOffset
Unsafe version ofdstOffset. -
nextent
Unsafe version ofextent.
-