Package org.lwjgl.vulkan
Class VkCopyMemoryIndirectCommandNV
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkCopyMemoryIndirectCommandNV>
org.lwjgl.vulkan.VkCopyMemoryIndirectCommandNV
- All Implemented Interfaces:
AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyMemoryIndirectCommandNV
extends org.lwjgl.system.Struct<VkCopyMemoryIndirectCommandNV>
implements org.lwjgl.system.NativeResource
Structure specifying indirect memory region copy operation.
Valid Usage
- The
srcAddressmust be 4 byte aligned - The
dstAddressmust be 4 byte aligned - The
sizemust be 4 byte aligned
Layout
struct VkCopyMemoryIndirectCommandNV {
VkDeviceAddress srcAddress();
VkDeviceAddress dstAddress();
VkDeviceSize size();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.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
ConstructorsConstructorDescriptionVkCopyMemoryIndirectCommandNV(ByteBuffer container) Creates aVkCopyMemoryIndirectCommandNVinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptioncalloc()Returns a newVkCopyMemoryIndirectCommandNVinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withmemCalloc.calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.calloc(org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.create()Returns a newVkCopyMemoryIndirectCommandNVinstance allocated withBufferUtils.create(int capacity) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withBufferUtils.create(long address) Returns a newVkCopyMemoryIndirectCommandNVinstance for the specified memory address.create(long address, int capacity) Create aVkCopyMemoryIndirectCommandNV.Bufferinstance at the specified memory.static @Nullable VkCopyMemoryIndirectCommandNVcreateSafe(long address) static @Nullable VkCopyMemoryIndirectCommandNV.BuffercreateSafe(long address, int capacity) longthe starting address of the destination device memory to copy to.dstAddress(long value) Sets the specified value to thedstAddress()field.malloc()Returns a newVkCopyMemoryIndirectCommandNVinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withmemAlloc.malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.malloc(org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNVinstance 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()the size of the copy in bytes.size(long value) Sets the specified value to thesize()field.intsizeof()longthe starting address of the source device memory to copy from.srcAddress(long value) Sets the specified value to thesrcAddress()field.Methods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods 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
-
VkCopyMemoryIndirectCommandNV
Creates aVkCopyMemoryIndirectCommandNVinstance 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()- Specified by:
sizeofin classorg.lwjgl.system.Struct<VkCopyMemoryIndirectCommandNV>
-
srcAddress
public long srcAddress()the starting address of the source device memory to copy from. -
dstAddress
public long dstAddress()the starting address of the destination device memory to copy to. -
size
public long size()the size of the copy in bytes. -
srcAddress
Sets the specified value to thesrcAddress()field. -
dstAddress
Sets the specified value to thedstAddress()field. -
size
Sets the specified value to thesize()field. -
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 newVkCopyMemoryIndirectCommandNVinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkCopyMemoryIndirectCommandNVinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkCopyMemoryIndirectCommandNVinstance allocated withBufferUtils. -
create
Returns a newVkCopyMemoryIndirectCommandNVinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkCopyMemoryIndirectCommandNV.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkCopyMemoryIndirectCommandNVinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkCopyMemoryIndirectCommandNVinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyMemoryIndirectCommandNV.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNV.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
public static VkCopyMemoryIndirectCommandNV.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack) Returns a newVkCopyMemoryIndirectCommandNV.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.
-