Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkCopyImageInfo2

extends Struct<VkCopyImageInfo2>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Known Direct Subclasses
org.lwjgl.vulkan.VkCopyImageInfo2KHR
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying parameters of an image copy command.
Valid Usage
Valid Usage (Implicit)
See Also

VkImageCopy2, CmdCopyImage2, CmdCopyImage2KHR

Layout


struct VkCopyImageInfo2 {
    VkStructureType sType;
    void const * pNext;
    VkImage srcImage;
    VkImageLayout srcImageLayout;
    VkImage dstImage;
    VkImageLayout dstImageLayout;
    uint32_t regionCount;
    VkImageCopy2 const * pRegions;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
DSTIMAGE

The struct member offsets.

public static final int
DSTIMAGELAYOUT

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
PREGIONS

The struct member offsets.

public static final int
REGIONCOUNT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
SRCIMAGE

The struct member offsets.

public static final int
SRCIMAGELAYOUT

The struct member offsets.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkCopyImageInfo2(long address, ByteBuffer container)

public
VkCopyImageInfo2(ByteBuffer container)

Creates a VkCopyImageInfo2 instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkCopyImageInfo2
calloc()

Returns a new VkCopyImageInfo2 instance allocated with memCalloc.

public static VkCopyImageInfo2.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkCopyImageInfo2.Buffer instance allocated with memCalloc.

public static VkCopyImageInfo2
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCopyImageInfo2 instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkCopyImageInfo2.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCopyImageInfo2.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkCopyImageInfo2
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkCopyImageInfo2
create()

Returns a new VkCopyImageInfo2 instance allocated with BufferUtils.

public static VkCopyImageInfo2
create(long address)

Returns a new VkCopyImageInfo2 instance for the specified memory address.

public static VkCopyImageInfo2.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkCopyImageInfo2.Buffer instance allocated with BufferUtils.

public static VkCopyImageInfo2.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkCopyImageInfo2.Buffer instance at the specified memory.

public static VkCopyImageInfo2
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkCopyImageInfo2.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public long
dstImage()

the destination image.

public VkCopyImageInfo2
dstImage(long value)

Sets the specified value to the dstImage field.

public int
dstImageLayout()

the current layout of the destination image subresource.

public VkCopyImageInfo2
dstImageLayout(int value)

Sets the specified value to the dstImageLayout field.

public static VkCopyImageInfo2
malloc()

Returns a new VkCopyImageInfo2 instance allocated with memAlloc.

public static VkCopyImageInfo2.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkCopyImageInfo2.Buffer instance allocated with memAlloc.

public static VkCopyImageInfo2
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCopyImageInfo2 instance allocated on the specified MemoryStack.

public static VkCopyImageInfo2.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkCopyImageInfo2.Buffer instance allocated on the specified MemoryStack.

public static long
ndstImage(long struct)

Unsafe version of dstImage.

public static void
ndstImage(long struct, long value)

Unsafe version of dstImage.

public static int
ndstImageLayout(long struct)

Unsafe version of dstImageLayout.

public static void
ndstImageLayout(long struct, int value)

Unsafe version of dstImageLayout.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static VkImageCopy2.Buffer
npRegions(long struct)

Unsafe version of pRegions.

public static void
npRegions(long struct, VkImageCopy2.Buffer value)

Unsafe version of pRegions.

public static int
nregionCount(long struct)

Unsafe version of regionCount.

public static void
nregionCount(long struct, int value)

Sets the specified value to the regionCount field of the specified struct.

public static long
nsrcImage(long struct)

Unsafe version of srcImage.

public static void
nsrcImage(long struct, long value)

Unsafe version of srcImage.

public static int
nsrcImageLayout(long struct)

Unsafe version of srcImageLayout.

public static void
nsrcImageLayout(long struct, int value)

Unsafe version of srcImageLayout.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkCopyImageInfo2
pNext(long value)

Sets the specified value to the pNext field.

public VkImageCopy2.Buffer
pRegions()

a pointer to an array of VkImageCopy2 structures specifying the regions to copy.

public VkCopyImageInfo2
pRegions(VkImageCopy2.Buffer value)

Sets the address of the specified VkImageCopy2.Buffer to the pRegions field.

public int
regionCount()

the number of regions to copy.

public VkCopyImageInfo2
set(int sType, long pNext, long srcImage, int srcImageLayout, long dstImage, int dstImageLayout, VkImageCopy2.Buffer pRegions)

Initializes this struct with the specified values.

public VkCopyImageInfo2

Returns:

this struct
set
(VkCopyImageInfo2
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public long
srcImage()

the source image.

public VkCopyImageInfo2
srcImage(long value)

Sets the specified value to the srcImage field.

public int
srcImageLayout()

the current layout of the source image subresource.

public VkCopyImageInfo2
srcImageLayout(int value)

Sets the specified value to the srcImageLayout field.

public int
sType()

a VkStructureType value identifying this structure.

public VkCopyImageInfo2
sType(int value)

Sets the specified value to the sType field.

public VkCopyImageInfo2
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate