Package org.lwjgl.vulkan
Class VkBufferCopy2
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferCopy2
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
- Direct Known Subclasses:
VkBufferCopy2KHR
public class VkBufferCopy2 extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceStructure specifying a buffer copy operation.Valid Usage
- The
sizemust be greater than 0
Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_BUFFER_COPY_2pNextmust beNULL
See Also
Layout
struct VkBufferCopy2 { VkStructureTypesType(); void const *pNext(); VkDeviceSizesrcOffset(); VkDeviceSizedstOffset(); VkDeviceSizesize(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferCopy2.BufferAn array ofVkBufferCopy2structs.
-
Constructor Summary
Constructors Constructor Description VkBufferCopy2(java.nio.ByteBuffer container)Creates aVkBufferCopy2instance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBufferCopy2calloc()Returns a newVkBufferCopy2instance allocated withmemCalloc.static VkBufferCopy2.Buffercalloc(int capacity)Returns a newVkBufferCopy2.Bufferinstance allocated withmemCalloc.static VkBufferCopy2.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopy2calloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopy2create()Returns a newVkBufferCopy2instance allocated withBufferUtils.static VkBufferCopy2.Buffercreate(int capacity)Returns a newVkBufferCopy2.Bufferinstance allocated withBufferUtils.static VkBufferCopy2create(long address)Returns a newVkBufferCopy2instance for the specified memory address.static VkBufferCopy2.Buffercreate(long address, int capacity)Create aVkBufferCopy2.Bufferinstance at the specified memory.static VkBufferCopy2createSafe(long address)static VkBufferCopy2.BuffercreateSafe(long address, int capacity)longdstOffset()the starting offset in bytes from the start ofdstBuffer.VkBufferCopy2dstOffset(long value)Sets the specified value to thedstOffset()field.static VkBufferCopy2malloc()Returns a newVkBufferCopy2instance allocated withmemAlloc.static VkBufferCopy2.Buffermalloc(int capacity)Returns a newVkBufferCopy2.Bufferinstance allocated withmemAlloc.static VkBufferCopy2.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferCopy2malloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2instance allocated on the specifiedMemoryStack.static longndstOffset(long struct)Unsafe version ofdstOffset().static voidndstOffset(long struct, long value)Unsafe version ofdstOffset.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.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.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.longpNext()NULLor a pointer to a structure extending this structure.VkBufferCopy2pNext(long value)Sets the specified value to thepNext()field.VkBufferCopy2set(int sType, long pNext, long srcOffset, long dstOffset, long size)Initializes this struct with the specified values.VkBufferCopy2set(VkBufferCopy2 src)Copies the specified struct data to this struct.longsize()the number of bytes to copy.VkBufferCopy2size(long value)Sets the specified value to thesize()field.intsizeof()longsrcOffset()the starting offset in bytes from the start ofsrcBuffer.VkBufferCopy2srcOffset(long value)Sets the specified value to thesrcOffset()field.intsType()the type of this structure.VkBufferCopy2sType(int value)Sets the specified value to thesType()field.VkBufferCopy2sType$Default()Sets theSTRUCTURE_TYPE_BUFFER_COPY_2value to thesType()field.
-
-
-
Constructor Detail
-
VkBufferCopy2
public VkBufferCopy2(java.nio.ByteBuffer container)
Creates aVkBufferCopy2instance 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
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
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.
-
sType
public VkBufferCopy2 sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkBufferCopy2 sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_COPY_2value to thesType()field.
-
pNext
public VkBufferCopy2 pNext(long value)
Sets the specified value to thepNext()field.
-
srcOffset
public VkBufferCopy2 srcOffset(long value)
Sets the specified value to thesrcOffset()field.
-
dstOffset
public VkBufferCopy2 dstOffset(long value)
Sets the specified value to thedstOffset()field.
-
size
public VkBufferCopy2 size(long value)
Sets the specified value to thesize()field.
-
set
public VkBufferCopy2 set(int sType, long pNext, long srcOffset, long dstOffset, long size)
Initializes this struct with the specified values.
-
set
public VkBufferCopy2 set(VkBufferCopy2 src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferCopy2 malloc()
Returns a newVkBufferCopy2instance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferCopy2 calloc()
Returns a newVkBufferCopy2instance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferCopy2 create()
Returns a newVkBufferCopy2instance allocated withBufferUtils.
-
create
public static VkBufferCopy2 create(long address)
Returns a newVkBufferCopy2instance for the specified memory address.
-
createSafe
@Nullable public static VkBufferCopy2 createSafe(long address)
-
malloc
public static VkBufferCopy2.Buffer malloc(int capacity)
Returns a newVkBufferCopy2.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferCopy2.Buffer calloc(int capacity)
Returns a newVkBufferCopy2.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy2.Buffer create(int capacity)
Returns a newVkBufferCopy2.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy2.Buffer create(long address, int capacity)
Create aVkBufferCopy2.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferCopy2.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBufferCopy2 malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2instance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferCopy2 calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2instance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferCopy2.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferCopy2.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
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().
-
nsType
public static void nsType(long struct, int value)Unsafe version ofsType.
-
npNext
public static void npNext(long struct, long value)Unsafe version ofpNext.
-
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.
-
-