Package org.lwjgl.vulkan
Class VkBufferCopy2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferCopy2
-
- org.lwjgl.vulkan.VkBufferCopy2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferCopy2KHR extends VkBufferCopy2
SeeVkBufferCopy2.Layout
struct VkBufferCopy2KHR { VkStructureType sType; void const * pNext; VkDeviceSize srcOffset; VkDeviceSize dstOffset; VkDeviceSize size; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferCopy2KHR.BufferAn array ofVkBufferCopy2KHRstructs.
-
Constructor Summary
Constructors Constructor Description VkBufferCopy2KHR(java.nio.ByteBuffer container)Creates aVkBufferCopy2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkBufferCopy2KHRcalloc()Returns a newVkBufferCopy2KHRinstance allocated withmemCalloc.static VkBufferCopy2KHR.Buffercalloc(int capacity)Returns a newVkBufferCopy2KHR.Bufferinstance allocated withmemCalloc.static VkBufferCopy2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopy2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferCopy2KHRcreate()Returns a newVkBufferCopy2KHRinstance allocated withBufferUtils.static VkBufferCopy2KHR.Buffercreate(int capacity)Returns a newVkBufferCopy2KHR.Bufferinstance allocated withBufferUtils.static VkBufferCopy2KHRcreate(long address)Returns a newVkBufferCopy2KHRinstance for the specified memory address.static VkBufferCopy2KHR.Buffercreate(long address, int capacity)Create aVkBufferCopy2KHR.Bufferinstance at the specified memory.static VkBufferCopy2KHRcreateSafe(long address)static VkBufferCopy2KHR.BuffercreateSafe(long address, int capacity)VkBufferCopy2KHRdstOffset(long value)Sets the specified value to thedstOffsetfield.static VkBufferCopy2KHRmalloc()Returns a newVkBufferCopy2KHRinstance allocated withmemAlloc.static VkBufferCopy2KHR.Buffermalloc(int capacity)Returns a newVkBufferCopy2KHR.Bufferinstance allocated withmemAlloc.static VkBufferCopy2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferCopy2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferCopy2KHRinstance allocated on the specifiedMemoryStack.VkBufferCopy2KHRpNext(long value)Sets the specified value to thepNextfield.VkBufferCopy2KHRset(int sType, long pNext, long srcOffset, long dstOffset, long size)Initializes this struct with the specified values.VkBufferCopy2KHRset(VkBufferCopy2KHR src)Copies the specified struct data to this struct.VkBufferCopy2KHRsize(long value)Sets the specified value to thesizefield.VkBufferCopy2KHRsrcOffset(long value)Sets the specified value to thesrcOffsetfield.VkBufferCopy2KHRsType(int value)Sets the specified value to thesTypefield.VkBufferCopy2KHRsType$Default()Sets theSTRUCTURE_TYPE_BUFFER_COPY_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkBufferCopy2
dstOffset, ndstOffset, ndstOffset, npNext, npNext, nsize, nsize, nsrcOffset, nsrcOffset, nsType, nsType, pNext, set, size, sizeof, srcOffset, sType
-
-
-
-
Constructor Detail
-
VkBufferCopy2KHR
public VkBufferCopy2KHR(java.nio.ByteBuffer container)
Creates aVkBufferCopy2KHRinstance 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
-
sType
public VkBufferCopy2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkBufferCopy2
-
sType$Default
public VkBufferCopy2KHR sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_COPY_2value to thesTypefield.- Overrides:
sType$Defaultin classVkBufferCopy2
-
pNext
public VkBufferCopy2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkBufferCopy2
-
srcOffset
public VkBufferCopy2KHR srcOffset(long value)
Sets the specified value to thesrcOffsetfield.- Overrides:
srcOffsetin classVkBufferCopy2
-
dstOffset
public VkBufferCopy2KHR dstOffset(long value)
Sets the specified value to thedstOffsetfield.- Overrides:
dstOffsetin classVkBufferCopy2
-
size
public VkBufferCopy2KHR size(long value)
Sets the specified value to thesizefield.- Overrides:
sizein classVkBufferCopy2
-
set
public VkBufferCopy2KHR set(int sType, long pNext, long srcOffset, long dstOffset, long size)
Initializes this struct with the specified values.- Overrides:
setin classVkBufferCopy2
-
set
public VkBufferCopy2KHR set(VkBufferCopy2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferCopy2KHR malloc()
Returns a newVkBufferCopy2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferCopy2KHR calloc()
Returns a newVkBufferCopy2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferCopy2KHR create()
Returns a newVkBufferCopy2KHRinstance allocated withBufferUtils.
-
create
public static VkBufferCopy2KHR create(long address)
Returns a newVkBufferCopy2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferCopy2KHR createSafe(long address)
-
malloc
public static VkBufferCopy2KHR.Buffer malloc(int capacity)
Returns a newVkBufferCopy2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferCopy2KHR.Buffer calloc(int capacity)
Returns a newVkBufferCopy2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy2KHR.Buffer create(int capacity)
Returns a newVkBufferCopy2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferCopy2KHR.Buffer create(long address, int capacity)
Create aVkBufferCopy2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferCopy2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBufferCopy2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferCopy2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferCopy2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferCopy2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-