Package org.lwjgl.vulkan
Class VkBufferCopy
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferCopy
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferCopy extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a buffer copy operation.Valid Usage
- The
sizemust be greater than 0
See Also
Layout
struct VkBufferCopy { VkDeviceSizesrcOffset(); VkDeviceSizedstOffset(); VkDeviceSizesize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferCopy.BufferAn array ofVkBufferCopystructs.
-
Constructor Summary
Constructors Constructor Description VkBufferCopy(java.nio.ByteBuffer container)Creates aVkBufferCopyinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkBufferCopycalloc()Returns a newVkBufferCopyinstance allocated withmemCalloc.static VkBufferCopy.Buffercalloc(int capacity)Returns a newVkBufferCopy.Bufferinstance allocated withmemCalloc.static VkBufferCopy.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopycalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopycallocStack()Deprecated.static VkBufferCopy.BuffercallocStack(int capacity)Deprecated.static VkBufferCopy.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferCopycallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferCopycreate()Returns a newVkBufferCopyinstance allocated withBufferUtils.static VkBufferCopy.Buffercreate(int capacity)Returns a newVkBufferCopy.Bufferinstance allocated withBufferUtils.static VkBufferCopycreate(long address)Returns a newVkBufferCopyinstance for the specified memory address.static VkBufferCopy.Buffercreate(long address, int capacity)Create aVkBufferCopy.Bufferinstance at the specified memory.static VkBufferCopycreateSafe(long address)static VkBufferCopy.BuffercreateSafe(long address, int capacity)longdstOffset()the starting offset in bytes from the start ofdstBuffer.VkBufferCopydstOffset(long value)Sets the specified value to thedstOffset()field.static VkBufferCopymalloc()Returns a newVkBufferCopyinstance allocated withmemAlloc.static VkBufferCopy.Buffermalloc(int capacity)Returns a newVkBufferCopy.Bufferinstance allocated withmemAlloc.static VkBufferCopy.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferCopymalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopyinstance allocated on the specifiedMemoryStack.static VkBufferCopymallocStack()Deprecated.static VkBufferCopy.BuffermallocStack(int capacity)Deprecated.static VkBufferCopy.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkBufferCopymallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static longndstOffset(long struct)Unsafe version ofdstOffset().static voidndstOffset(long struct, long value)Unsafe version ofdstOffset.static longnsize(long struct)Unsafe version ofsize().static voidnsize(long struct, long value)Unsafe version ofsize.static longnsrcOffset(long struct)Unsafe version ofsrcOffset().static voidnsrcOffset(long struct, long value)Unsafe version ofsrcOffset.VkBufferCopyset(long srcOffset, long dstOffset, long size)Initializes this struct with the specified values.VkBufferCopyset(VkBufferCopy src)Copies the specified struct data to this struct.longsize()the number of bytes to copy.VkBufferCopysize(long value)Sets the specified value to thesize()field.intsizeof()longsrcOffset()the starting offset in bytes from the start ofsrcBuffer.VkBufferCopysrcOffset(long value)Sets the specified value to thesrcOffset()field.
-
-
-
Constructor Detail
-
VkBufferCopy
public VkBufferCopy(java.nio.ByteBuffer container)
Creates aVkBufferCopyinstance 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
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
srcOffset
public long srcOffset()
the starting offset in bytes from the start ofsrcBuffer.
-
dstOffset
public long dstOffset()
the starting offset in bytes from the start ofdstBuffer.
-
size
public long size()
the number of bytes to copy.
-
srcOffset
public VkBufferCopy srcOffset(long value)
Sets the specified value to thesrcOffset()field.
-
dstOffset
public VkBufferCopy dstOffset(long value)
Sets the specified value to thedstOffset()field.
-
size
public VkBufferCopy size(long value)
Sets the specified value to thesize()field.
-
set
public VkBufferCopy set(long srcOffset, long dstOffset, long size)
Initializes this struct with the specified values.
-
set
public VkBufferCopy set(VkBufferCopy src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferCopy malloc()
Returns a newVkBufferCopyinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferCopy calloc()
Returns a newVkBufferCopyinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferCopy create()
Returns a newVkBufferCopyinstance allocated withBufferUtils.
-
create
public static VkBufferCopy create(long address)
Returns a newVkBufferCopyinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferCopy createSafe(long address)
-
malloc
public static VkBufferCopy.Buffer malloc(int capacity)
Returns a newVkBufferCopy.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferCopy.Buffer calloc(int capacity)
Returns a newVkBufferCopy.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy.Buffer create(int capacity)
Returns a newVkBufferCopy.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy.Buffer create(long address, int capacity)
Create aVkBufferCopy.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferCopy.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkBufferCopy mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferCopy callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferCopy mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferCopy callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferCopy.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferCopy.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkBufferCopy.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkBufferCopy.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkBufferCopy malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopyinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferCopy calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopyinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferCopy.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferCopy.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsrcOffset
public static long nsrcOffset(long struct)
Unsafe version ofsrcOffset().
-
ndstOffset
public static long ndstOffset(long struct)
Unsafe version ofdstOffset().
-
nsize
public static long nsize(long struct)
Unsafe version ofsize().
-
nsrcOffset
public static void nsrcOffset(long struct, long value)Unsafe version ofsrcOffset.
-
ndstOffset
public static void ndstOffset(long struct, long value)Unsafe version ofdstOffset.
-
nsize
public static void nsize(long struct, long value)Unsafe version ofsize.
-
-