Package org.lwjgl.vulkan
Class VkCopyBufferToImageInfo2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkCopyBufferToImageInfo2
-
- org.lwjgl.vulkan.VkCopyBufferToImageInfo2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkCopyBufferToImageInfo2KHR extends VkCopyBufferToImageInfo2
SeeVkCopyBufferToImageInfo2.Layout
struct VkCopyBufferToImageInfo2KHR { VkStructureType sType; void const * pNext; VkBuffer srcBuffer; VkImage dstImage; VkImageLayout dstImageLayout; uint32_t regionCount;VkBufferImageCopy2const * pRegions; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkCopyBufferToImageInfo2KHR.BufferAn array ofVkCopyBufferToImageInfo2KHRstructs.
-
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.VkCopyBufferToImageInfo2
ALIGNOF, DSTIMAGE, DSTIMAGELAYOUT, PNEXT, PREGIONS, REGIONCOUNT, SIZEOF, SRCBUFFER, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkCopyBufferToImageInfo2KHR(java.nio.ByteBuffer container)Creates aVkCopyBufferToImageInfo2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static VkCopyBufferToImageInfo2KHRcalloc()Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withmemCalloc.static VkCopyBufferToImageInfo2KHR.Buffercalloc(int capacity)Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withmemCalloc.static VkCopyBufferToImageInfo2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyBufferToImageInfo2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferToImageInfo2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkCopyBufferToImageInfo2KHRcreate()Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withBufferUtils.static VkCopyBufferToImageInfo2KHR.Buffercreate(int capacity)Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withBufferUtils.static VkCopyBufferToImageInfo2KHRcreate(long address)Returns a newVkCopyBufferToImageInfo2KHRinstance for the specified memory address.static VkCopyBufferToImageInfo2KHR.Buffercreate(long address, int capacity)Create aVkCopyBufferToImageInfo2KHR.Bufferinstance at the specified memory.static VkCopyBufferToImageInfo2KHRcreateSafe(long address)static VkCopyBufferToImageInfo2KHR.BuffercreateSafe(long address, int capacity)VkCopyBufferToImageInfo2KHRdstImage(long value)Sets the specified value to thedstImagefield.VkCopyBufferToImageInfo2KHRdstImageLayout(int value)Sets the specified value to thedstImageLayoutfield.static VkCopyBufferToImageInfo2KHRmalloc()Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withmemAlloc.static VkCopyBufferToImageInfo2KHR.Buffermalloc(int capacity)Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withmemAlloc.static VkCopyBufferToImageInfo2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkCopyBufferToImageInfo2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkCopyBufferToImageInfo2KHRinstance allocated on the specifiedMemoryStack.VkCopyBufferToImageInfo2KHRpNext(long value)Sets the specified value to thepNextfield.VkCopyBufferToImageInfo2KHRpRegions(VkBufferImageCopy2.Buffer value)Sets the address of the specifiedVkBufferImageCopy2.Bufferto thepRegionsfield.VkCopyBufferToImageInfo2KHRset(int sType, long pNext, long srcBuffer, long dstImage, int dstImageLayout, VkBufferImageCopy2.Buffer pRegions)Initializes this struct with the specified values.VkCopyBufferToImageInfo2KHRset(VkCopyBufferToImageInfo2KHR src)Copies the specified struct data to this struct.VkCopyBufferToImageInfo2KHRsrcBuffer(long value)Sets the specified value to thesrcBufferfield.VkCopyBufferToImageInfo2KHRsType(int value)Sets the specified value to thesTypefield.VkCopyBufferToImageInfo2KHRsType$Default()Sets theSTRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkCopyBufferToImageInfo2
dstImage, dstImageLayout, ndstImage, ndstImage, ndstImageLayout, ndstImageLayout, npNext, npNext, npRegions, npRegions, nregionCount, nregionCount, nsrcBuffer, nsrcBuffer, nsType, nsType, pNext, pRegions, regionCount, set, sizeof, srcBuffer, sType, validate
-
-
-
-
Constructor Detail
-
VkCopyBufferToImageInfo2KHR
public VkCopyBufferToImageInfo2KHR(java.nio.ByteBuffer container)
Creates aVkCopyBufferToImageInfo2KHRinstance 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 VkCopyBufferToImageInfo2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkCopyBufferToImageInfo2
-
sType$Default
public VkCopyBufferToImageInfo2KHR sType$Default()
Sets theSTRUCTURE_TYPE_COPY_BUFFER_TO_IMAGE_INFO_2value to thesTypefield.- Overrides:
sType$Defaultin classVkCopyBufferToImageInfo2
-
pNext
public VkCopyBufferToImageInfo2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkCopyBufferToImageInfo2
-
srcBuffer
public VkCopyBufferToImageInfo2KHR srcBuffer(long value)
Sets the specified value to thesrcBufferfield.- Overrides:
srcBufferin classVkCopyBufferToImageInfo2
-
dstImage
public VkCopyBufferToImageInfo2KHR dstImage(long value)
Sets the specified value to thedstImagefield.- Overrides:
dstImagein classVkCopyBufferToImageInfo2
-
dstImageLayout
public VkCopyBufferToImageInfo2KHR dstImageLayout(int value)
Sets the specified value to thedstImageLayoutfield.- Overrides:
dstImageLayoutin classVkCopyBufferToImageInfo2
-
pRegions
public VkCopyBufferToImageInfo2KHR pRegions(VkBufferImageCopy2.Buffer value)
Sets the address of the specifiedVkBufferImageCopy2.Bufferto thepRegionsfield.- Overrides:
pRegionsin classVkCopyBufferToImageInfo2
-
set
public VkCopyBufferToImageInfo2KHR set(int sType, long pNext, long srcBuffer, long dstImage, int dstImageLayout, VkBufferImageCopy2.Buffer pRegions)
Initializes this struct with the specified values.- Overrides:
setin classVkCopyBufferToImageInfo2
-
set
public VkCopyBufferToImageInfo2KHR set(VkCopyBufferToImageInfo2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkCopyBufferToImageInfo2KHR malloc()
Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkCopyBufferToImageInfo2KHR calloc()
Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkCopyBufferToImageInfo2KHR create()
Returns a newVkCopyBufferToImageInfo2KHRinstance allocated withBufferUtils.
-
create
public static VkCopyBufferToImageInfo2KHR create(long address)
Returns a newVkCopyBufferToImageInfo2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkCopyBufferToImageInfo2KHR createSafe(long address)
-
malloc
public static VkCopyBufferToImageInfo2KHR.Buffer malloc(int capacity)
Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkCopyBufferToImageInfo2KHR.Buffer calloc(int capacity)
Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyBufferToImageInfo2KHR.Buffer create(int capacity)
Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkCopyBufferToImageInfo2KHR.Buffer create(long address, int capacity)
Create aVkCopyBufferToImageInfo2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkCopyBufferToImageInfo2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkCopyBufferToImageInfo2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferToImageInfo2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkCopyBufferToImageInfo2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferToImageInfo2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkCopyBufferToImageInfo2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkCopyBufferToImageInfo2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkCopyBufferToImageInfo2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-