Package org.lwjgl.vulkan
Class VkCopyMemoryIndirectCommandKHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkCopyMemoryIndirectCommandKHR>
org.lwjgl.vulkan.VkCopyMemoryIndirectCommandKHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
- Direct Known Subclasses:
VkCopyMemoryIndirectCommandNV
public class VkCopyMemoryIndirectCommandKHR
extends Struct<VkCopyMemoryIndirectCommandKHR>
implements NativeResource
struct VkCopyMemoryIndirectCommandKHR {
VkDeviceAddress srcAddress;
VkDeviceAddress dstAddress;
VkDeviceSize size;
}-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classAn array ofVkCopyMemoryIndirectCommandKHRstructs.Nested 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 size in bytes.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
ConstructorsConstructorDescriptionVkCopyMemoryIndirectCommandKHR(ByteBuffer container) Creates aVkCopyMemoryIndirectCommandKHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated withBufferUtils.create(int capacity) Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkCopyMemoryIndirectCommandKHRinstance for the specified memory address.create(long address, int capacity) Create aVkCopyMemoryIndirectCommandKHR.Bufferinstance at the specified memory.static @Nullable VkCopyMemoryIndirectCommandKHRcreateSafe(long address) static @Nullable VkCopyMemoryIndirectCommandKHR.BuffercreateSafe(long address, int capacity) longdstAddress(long value) Sets the specified value to thedstAddressfield.malloc()Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated on the specifiedMemoryStack.malloc(MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated on the specifiedMemoryStack.static longndstAddress(long struct) Unsafe version ofdstAddress().static voidndstAddress(long struct, long value) Unsafe version ofdstAddress.static longnsize(long struct) Unsafe version ofsize().static voidnsize(long struct, long value) Unsafe version ofsize.static longnsrcAddress(long struct) Unsafe version ofsrcAddress().static voidnsrcAddress(long struct, long value) Unsafe version ofsrcAddress.set(long srcAddress, long dstAddress, long size) Initializes this struct with the specified values.Copies the specified struct data to this struct.longsize()size(long value) Sets the specified value to thesizefield.intsizeof()Returnssizeof(struct).longsrcAddress(long value) Sets the specified value to thesrcAddressfield.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. -
SRCADDRESS
public static final int SRCADDRESSThe struct member offsets. -
DSTADDRESS
public static final int DSTADDRESSThe struct member offsets. -
SIZE
public static final int SIZEThe struct member offsets.
-
-
Constructor Details
-
VkCopyMemoryIndirectCommandKHR
Creates aVkCopyMemoryIndirectCommandKHRinstance 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<VkCopyMemoryIndirectCommandKHR>
-
srcAddress
public long srcAddress()- Returns:
- the value of the
srcAddressfield.
-
dstAddress
public long dstAddress()- Returns:
- the value of the
dstAddressfield.
-
size
public long size()- Returns:
- the value of the
sizefield.
-
srcAddress
Sets the specified value to thesrcAddressfield. -
dstAddress
Sets the specified value to thedstAddressfield. -
size
Sets the specified value to thesizefield. -
set
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 newVkCopyMemoryIndirectCommandKHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated withBufferUtils. -
create
Returns a newVkCopyMemoryIndirectCommandKHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkCopyMemoryIndirectCommandKHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
public static @Nullable VkCopyMemoryIndirectCommandKHR.Buffer createSafe(long address, int capacity) -
malloc
Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkCopyMemoryIndirectCommandKHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkCopyMemoryIndirectCommandKHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
nsrcAddress
public static long nsrcAddress(long struct) Unsafe version ofsrcAddress(). -
ndstAddress
public static long ndstAddress(long struct) Unsafe version ofdstAddress(). -
nsize
public static long nsize(long struct) Unsafe version ofsize(). -
nsrcAddress
public static void nsrcAddress(long struct, long value) Unsafe version ofsrcAddress. -
ndstAddress
public static void ndstAddress(long struct, long value) Unsafe version ofdstAddress. -
nsize
public static void nsize(long struct, long value) Unsafe version ofsize.
-