public class VkBufferCopy
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
size must be greater than 0srcOffset – the starting offset in bytes from the start of srcBuffer.dstOffset – the starting offset in bytes from the start of dstBuffer.size – the number of bytes to copy.
struct VkBufferCopy {
VkDeviceSize srcOffset;
VkDeviceSize dstOffset;
VkDeviceSize size;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkBufferCopy.Buffer
An array of
VkBufferCopy structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DSTOFFSET
The struct member offsets.
|
static int |
SIZE
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
SRCOFFSET
The struct member offsets.
|
| Constructor and Description |
|---|
VkBufferCopy(java.nio.ByteBuffer container)
Creates a
VkBufferCopy instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkBufferCopy |
calloc()
Returns a new
VkBufferCopy instance allocated with memCalloc. |
static VkBufferCopy.Buffer |
calloc(int capacity)
Returns a new
VkBufferCopy.Buffer instance allocated with memCalloc. |
static VkBufferCopy |
callocStack()
Returns a new
VkBufferCopy instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferCopy.Buffer |
callocStack(int capacity)
Returns a new
VkBufferCopy.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkBufferCopy.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferCopy.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferCopy |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferCopy instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkBufferCopy |
create()
Returns a new
VkBufferCopy instance allocated with BufferUtils. |
static VkBufferCopy.Buffer |
create(int capacity)
Returns a new
VkBufferCopy.Buffer instance allocated with BufferUtils. |
static VkBufferCopy |
create(long address)
Returns a new
VkBufferCopy instance for the specified memory address. |
static VkBufferCopy.Buffer |
create(long address,
int capacity)
Create a
VkBufferCopy.Buffer instance at the specified memory. |
static VkBufferCopy |
createSafe(long address)
|
static VkBufferCopy.Buffer |
createSafe(long address,
int capacity)
|
long |
dstOffset()
Returns the value of the
dstOffset field. |
VkBufferCopy |
dstOffset(long value)
Sets the specified value to the
dstOffset field. |
static VkBufferCopy |
malloc()
Returns a new
VkBufferCopy instance allocated with memAlloc. |
static VkBufferCopy.Buffer |
malloc(int capacity)
Returns a new
VkBufferCopy.Buffer instance allocated with memAlloc. |
static VkBufferCopy |
mallocStack()
Returns a new
VkBufferCopy instance allocated on the thread-local MemoryStack. |
static VkBufferCopy.Buffer |
mallocStack(int capacity)
Returns a new
VkBufferCopy.Buffer instance allocated on the thread-local MemoryStack. |
static VkBufferCopy.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferCopy.Buffer instance allocated on the specified MemoryStack. |
static VkBufferCopy |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkBufferCopy instance allocated on the specified MemoryStack. |
static long |
ndstOffset(long struct)
Unsafe version of
dstOffset(). |
static void |
ndstOffset(long struct,
long value)
Unsafe version of
dstOffset. |
static long |
nsize(long struct)
Unsafe version of
size(). |
static void |
nsize(long struct,
long value)
Unsafe version of
size. |
static long |
nsrcOffset(long struct)
Unsafe version of
srcOffset(). |
static void |
nsrcOffset(long struct,
long value)
Unsafe version of
srcOffset. |
VkBufferCopy |
set(long srcOffset,
long dstOffset,
long size)
Initializes this struct with the specified values.
|
VkBufferCopy |
set(VkBufferCopy src)
Copies the specified struct data to this struct.
|
long |
size()
Returns the value of the
size field. |
VkBufferCopy |
size(long value)
Sets the specified value to the
size field. |
int |
sizeof() |
long |
srcOffset()
Returns the value of the
srcOffset field. |
VkBufferCopy |
srcOffset(long value)
Sets the specified value to the
srcOffset field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int SRCOFFSET
public static final int DSTOFFSET
public static final int SIZE
public VkBufferCopy(java.nio.ByteBuffer container)
VkBufferCopy instance at the current position of the specified ByteBuffer container. 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic long srcOffset()
srcOffset field.public long dstOffset()
dstOffset field.public long size()
size field.public VkBufferCopy srcOffset(long value)
srcOffset field.public VkBufferCopy dstOffset(long value)
dstOffset field.public VkBufferCopy size(long value)
size field.public VkBufferCopy set(long srcOffset, long dstOffset, long size)
public VkBufferCopy set(VkBufferCopy src)
src - the source structpublic static VkBufferCopy malloc()
VkBufferCopy instance allocated with memAlloc. The instance must be explicitly freed.public static VkBufferCopy calloc()
VkBufferCopy instance allocated with memCalloc. The instance must be explicitly freed.public static VkBufferCopy create()
VkBufferCopy instance allocated with BufferUtils.public static VkBufferCopy create(long address)
VkBufferCopy instance for the specified memory address.@Nullable public static VkBufferCopy createSafe(long address)
public static VkBufferCopy.Buffer malloc(int capacity)
VkBufferCopy.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferCopy.Buffer calloc(int capacity)
VkBufferCopy.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkBufferCopy.Buffer create(int capacity)
VkBufferCopy.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkBufferCopy.Buffer create(long address, int capacity)
VkBufferCopy.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkBufferCopy.Buffer createSafe(long address, int capacity)
public static VkBufferCopy mallocStack()
VkBufferCopy instance allocated on the thread-local MemoryStack.public static VkBufferCopy callocStack()
VkBufferCopy instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkBufferCopy mallocStack(org.lwjgl.system.MemoryStack stack)
VkBufferCopy instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkBufferCopy callocStack(org.lwjgl.system.MemoryStack stack)
VkBufferCopy instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkBufferCopy.Buffer mallocStack(int capacity)
VkBufferCopy.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkBufferCopy.Buffer callocStack(int capacity)
VkBufferCopy.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkBufferCopy.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferCopy.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkBufferCopy.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkBufferCopy.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static long nsrcOffset(long struct)
srcOffset().public static long ndstOffset(long struct)
dstOffset().public static long nsize(long struct)
size().public static void nsrcOffset(long struct,
long value)
srcOffset.public static void ndstOffset(long struct,
long value)
dstOffset.public static void nsize(long struct,
long value)
size.Copyright LWJGL. All Rights Reserved. License terms.