Package org.lwjgl.vulkan
Class VkCopyBufferInfo2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCopyBufferInfo2
-
- org.lwjgl.vulkan.VkCopyBufferInfo2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyBufferInfo2KHR extends VkCopyBufferInfo2
SeeVkCopyBufferInfo2.Layout
struct VkCopyBufferInfo2KHR { VkStructureType sType; void const * pNext; VkBuffer srcBuffer; VkBuffer dstBuffer; uint32_t regionCount;VkBufferCopy2const * pRegions; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCopyBufferInfo2KHR.BufferAn array ofVkCopyBufferInfo2KHRstructs.
-
Field Summary
-
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Fields inherited from class org.lwjgl.vulkan.VkCopyBufferInfo2
ALIGNOF, DSTBUFFER, PNEXT, PREGIONS, REGIONCOUNT, SIZEOF, SRCBUFFER, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkCopyBufferInfo2KHR(java.nio.ByteBuffer container)Creates aVkCopyBufferInfo2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCopyBufferInfo2KHRcalloc()Returns a newVkCopyBufferInfo2KHRinstance allocated withmemCalloc.static VkCopyBufferInfo2KHR.Buffercalloc(int capacity)Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withmemCalloc.static VkCopyBufferInfo2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyBufferInfo2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferInfo2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyBufferInfo2KHRcreate()Returns a newVkCopyBufferInfo2KHRinstance allocated withBufferUtils.static VkCopyBufferInfo2KHR.Buffercreate(int capacity)Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withBufferUtils.static VkCopyBufferInfo2KHRcreate(long address)Returns a newVkCopyBufferInfo2KHRinstance for the specified memory address.static VkCopyBufferInfo2KHR.Buffercreate(long address, int capacity)Create aVkCopyBufferInfo2KHR.Bufferinstance at the specified memory.static VkCopyBufferInfo2KHRcreateSafe(long address)static VkCopyBufferInfo2KHR.BuffercreateSafe(long address, int capacity)VkCopyBufferInfo2KHRdstBuffer(long value)Sets the specified value to thedstBufferfield.static VkCopyBufferInfo2KHRmalloc()Returns a newVkCopyBufferInfo2KHRinstance allocated withmemAlloc.static VkCopyBufferInfo2KHR.Buffermalloc(int capacity)Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withmemAlloc.static VkCopyBufferInfo2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyBufferInfo2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferInfo2KHRinstance allocated on the specifiedMemoryStack.VkCopyBufferInfo2KHRpNext(long value)Sets the specified value to thepNextfield.VkCopyBufferInfo2KHRpRegions(VkBufferCopy2.Buffer value)Sets the address of the specifiedVkBufferCopy2.Bufferto thepRegionsfield.VkCopyBufferInfo2KHRset(int sType, long pNext, long srcBuffer, long dstBuffer, VkBufferCopy2.Buffer pRegions)Initializes this struct with the specified values.VkCopyBufferInfo2KHRset(VkCopyBufferInfo2KHR src)Copies the specified struct data to this struct.VkCopyBufferInfo2KHRsrcBuffer(long value)Sets the specified value to thesrcBufferfield.VkCopyBufferInfo2KHRsType(int value)Sets the specified value to thesTypefield.VkCopyBufferInfo2KHRsType$Default()Sets theSTRUCTURE_TYPE_COPY_BUFFER_INFO_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkCopyBufferInfo2
dstBuffer, ndstBuffer, ndstBuffer, npNext, npNext, npRegions, npRegions, nregionCount, nregionCount, nsrcBuffer, nsrcBuffer, nsType, nsType, pNext, pRegions, regionCount, set, sizeof, srcBuffer, sType, validate
-
-
-
-
Constructor Detail
-
VkCopyBufferInfo2KHR
public VkCopyBufferInfo2KHR(java.nio.ByteBuffer container)
Creates aVkCopyBufferInfo2KHRinstance 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 VkCopyBufferInfo2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkCopyBufferInfo2
-
sType$Default
public VkCopyBufferInfo2KHR sType$Default()
Sets theSTRUCTURE_TYPE_COPY_BUFFER_INFO_2value to thesTypefield.- Overrides:
sType$Defaultin classVkCopyBufferInfo2
-
pNext
public VkCopyBufferInfo2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkCopyBufferInfo2
-
srcBuffer
public VkCopyBufferInfo2KHR srcBuffer(long value)
Sets the specified value to thesrcBufferfield.- Overrides:
srcBufferin classVkCopyBufferInfo2
-
dstBuffer
public VkCopyBufferInfo2KHR dstBuffer(long value)
Sets the specified value to thedstBufferfield.- Overrides:
dstBufferin classVkCopyBufferInfo2
-
pRegions
public VkCopyBufferInfo2KHR pRegions(VkBufferCopy2.Buffer value)
Sets the address of the specifiedVkBufferCopy2.Bufferto thepRegionsfield.- Overrides:
pRegionsin classVkCopyBufferInfo2
-
set
public VkCopyBufferInfo2KHR set(int sType, long pNext, long srcBuffer, long dstBuffer, VkBufferCopy2.Buffer pRegions)
Initializes this struct with the specified values.- Overrides:
setin classVkCopyBufferInfo2
-
set
public VkCopyBufferInfo2KHR set(VkCopyBufferInfo2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCopyBufferInfo2KHR malloc()
Returns a newVkCopyBufferInfo2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCopyBufferInfo2KHR calloc()
Returns a newVkCopyBufferInfo2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCopyBufferInfo2KHR create()
Returns a newVkCopyBufferInfo2KHRinstance allocated withBufferUtils.
-
create
public static VkCopyBufferInfo2KHR create(long address)
Returns a newVkCopyBufferInfo2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkCopyBufferInfo2KHR createSafe(long address)
-
malloc
public static VkCopyBufferInfo2KHR.Buffer malloc(int capacity)
Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCopyBufferInfo2KHR.Buffer calloc(int capacity)
Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyBufferInfo2KHR.Buffer create(int capacity)
Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyBufferInfo2KHR.Buffer create(long address, int capacity)
Create aVkCopyBufferInfo2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCopyBufferInfo2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCopyBufferInfo2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferInfo2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCopyBufferInfo2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferInfo2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyBufferInfo2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCopyBufferInfo2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferInfo2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-