Package org.lwjgl.vulkan
Class VkBufferImageCopy2KHR
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkBufferImageCopy2
-
- org.lwjgl.vulkan.VkBufferImageCopy2KHR
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkBufferImageCopy2KHR extends VkBufferImageCopy2
SeeVkBufferImageCopy2.Layout
struct VkBufferImageCopy2KHR { VkStructureType sType; void const * pNext; VkDeviceSize bufferOffset; uint32_t bufferRowLength; uint32_t bufferImageHeight;VkImageSubresourceLayersimageSubresource;VkOffset3DimageOffset;VkExtent3DimageExtent; }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkBufferImageCopy2KHR.BufferAn array ofVkBufferImageCopy2KHRstructs.
-
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.VkBufferImageCopy2
ALIGNOF, BUFFERIMAGEHEIGHT, BUFFEROFFSET, BUFFERROWLENGTH, IMAGEEXTENT, IMAGEOFFSET, IMAGESUBRESOURCE, PNEXT, SIZEOF, STYPE
-
-
Constructor Summary
Constructors Constructor Description VkBufferImageCopy2KHR(java.nio.ByteBuffer container)Creates aVkBufferImageCopy2KHRinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VkBufferImageCopy2KHRbufferImageHeight(int value)Sets the specified value to thebufferImageHeightfield.VkBufferImageCopy2KHRbufferOffset(long value)Sets the specified value to thebufferOffsetfield.VkBufferImageCopy2KHRbufferRowLength(int value)Sets the specified value to thebufferRowLengthfield.static VkBufferImageCopy2KHRcalloc()Returns a newVkBufferImageCopy2KHRinstance allocated withmemCalloc.static VkBufferImageCopy2KHR.Buffercalloc(int capacity)Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemCalloc.static VkBufferImageCopy2KHR.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferImageCopy2KHRcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferImageCopy2KHRcreate()Returns a newVkBufferImageCopy2KHRinstance allocated withBufferUtils.static VkBufferImageCopy2KHR.Buffercreate(int capacity)Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withBufferUtils.static VkBufferImageCopy2KHRcreate(long address)Returns a newVkBufferImageCopy2KHRinstance for the specified memory address.static VkBufferImageCopy2KHR.Buffercreate(long address, int capacity)Create aVkBufferImageCopy2KHR.Bufferinstance at the specified memory.static VkBufferImageCopy2KHRcreateSafe(long address)static VkBufferImageCopy2KHR.BuffercreateSafe(long address, int capacity)VkBufferImageCopy2KHRimageExtent(java.util.function.Consumer<VkExtent3D> consumer)Passes theimageExtentfield to the specifiedConsumer.VkBufferImageCopy2KHRimageExtent(VkExtent3D value)Copies the specifiedVkExtent3Dto theimageExtentfield.VkBufferImageCopy2KHRimageOffset(java.util.function.Consumer<VkOffset3D> consumer)Passes theimageOffsetfield to the specifiedConsumer.VkBufferImageCopy2KHRimageOffset(VkOffset3D value)Copies the specifiedVkOffset3Dto theimageOffsetfield.VkBufferImageCopy2KHRimageSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)Passes theimageSubresourcefield to the specifiedConsumer.VkBufferImageCopy2KHRimageSubresource(VkImageSubresourceLayers value)Copies the specifiedVkImageSubresourceLayersto theimageSubresourcefield.static VkBufferImageCopy2KHRmalloc()Returns a newVkBufferImageCopy2KHRinstance allocated withmemAlloc.static VkBufferImageCopy2KHR.Buffermalloc(int capacity)Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemAlloc.static VkBufferImageCopy2KHR.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferImageCopy2KHRmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStack.VkBufferImageCopy2KHRpNext(long value)Sets the specified value to thepNextfield.VkBufferImageCopy2KHRset(int sType, long pNext, long bufferOffset, int bufferRowLength, int bufferImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent)Initializes this struct with the specified values.VkBufferImageCopy2KHRset(VkBufferImageCopy2KHR src)Copies the specified struct data to this struct.VkBufferImageCopy2KHRsType(int value)Sets the specified value to thesTypefield.VkBufferImageCopy2KHRsType$Default()Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2value to thesTypefield.-
Methods inherited from class org.lwjgl.vulkan.VkBufferImageCopy2
bufferImageHeight, bufferOffset, bufferRowLength, imageExtent, imageOffset, imageSubresource, nbufferImageHeight, nbufferImageHeight, nbufferOffset, nbufferOffset, nbufferRowLength, nbufferRowLength, nimageExtent, nimageExtent, nimageOffset, nimageOffset, nimageSubresource, nimageSubresource, npNext, npNext, nsType, nsType, pNext, pNext, set, sizeof, sType
-
-
-
-
Constructor Detail
-
VkBufferImageCopy2KHR
public VkBufferImageCopy2KHR(java.nio.ByteBuffer container)
Creates aVkBufferImageCopy2KHRinstance 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 VkBufferImageCopy2KHR sType(int value)
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkBufferImageCopy2
-
sType$Default
public VkBufferImageCopy2KHR sType$Default()
Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2value to thesTypefield.- Overrides:
sType$Defaultin classVkBufferImageCopy2
-
pNext
public VkBufferImageCopy2KHR pNext(long value)
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkBufferImageCopy2
-
bufferOffset
public VkBufferImageCopy2KHR bufferOffset(long value)
Sets the specified value to thebufferOffsetfield.- Overrides:
bufferOffsetin classVkBufferImageCopy2
-
bufferRowLength
public VkBufferImageCopy2KHR bufferRowLength(int value)
Sets the specified value to thebufferRowLengthfield.- Overrides:
bufferRowLengthin classVkBufferImageCopy2
-
bufferImageHeight
public VkBufferImageCopy2KHR bufferImageHeight(int value)
Sets the specified value to thebufferImageHeightfield.- Overrides:
bufferImageHeightin classVkBufferImageCopy2
-
imageSubresource
public VkBufferImageCopy2KHR imageSubresource(VkImageSubresourceLayers value)
Copies the specifiedVkImageSubresourceLayersto theimageSubresourcefield.- Overrides:
imageSubresourcein classVkBufferImageCopy2
-
imageSubresource
public VkBufferImageCopy2KHR imageSubresource(java.util.function.Consumer<VkImageSubresourceLayers> consumer)
Passes theimageSubresourcefield to the specifiedConsumer.- Overrides:
imageSubresourcein classVkBufferImageCopy2
-
imageOffset
public VkBufferImageCopy2KHR imageOffset(VkOffset3D value)
Copies the specifiedVkOffset3Dto theimageOffsetfield.- Overrides:
imageOffsetin classVkBufferImageCopy2
-
imageOffset
public VkBufferImageCopy2KHR imageOffset(java.util.function.Consumer<VkOffset3D> consumer)
Passes theimageOffsetfield to the specifiedConsumer.- Overrides:
imageOffsetin classVkBufferImageCopy2
-
imageExtent
public VkBufferImageCopy2KHR imageExtent(VkExtent3D value)
Copies the specifiedVkExtent3Dto theimageExtentfield.- Overrides:
imageExtentin classVkBufferImageCopy2
-
imageExtent
public VkBufferImageCopy2KHR imageExtent(java.util.function.Consumer<VkExtent3D> consumer)
Passes theimageExtentfield to the specifiedConsumer.- Overrides:
imageExtentin classVkBufferImageCopy2
-
set
public VkBufferImageCopy2KHR set(int sType, long pNext, long bufferOffset, int bufferRowLength, int bufferImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent)
Initializes this struct with the specified values.- Overrides:
setin classVkBufferImageCopy2
-
set
public VkBufferImageCopy2KHR set(VkBufferImageCopy2KHR src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkBufferImageCopy2KHR malloc()
Returns a newVkBufferImageCopy2KHRinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkBufferImageCopy2KHR calloc()
Returns a newVkBufferImageCopy2KHRinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkBufferImageCopy2KHR create()
Returns a newVkBufferImageCopy2KHRinstance allocated withBufferUtils.
-
create
public static VkBufferImageCopy2KHR create(long address)
Returns a newVkBufferImageCopy2KHRinstance for the specified memory address.
-
createSafe
@Nullable public static VkBufferImageCopy2KHR createSafe(long address)
-
malloc
public static VkBufferImageCopy2KHR.Buffer malloc(int capacity)
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkBufferImageCopy2KHR.Buffer calloc(int capacity)
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferImageCopy2KHR.Buffer create(int capacity)
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkBufferImageCopy2KHR.Buffer create(long address, int capacity)
Create aVkBufferImageCopy2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkBufferImageCopy2KHR.Buffer createSafe(long address, int capacity)
-
malloc
public static VkBufferImageCopy2KHR malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkBufferImageCopy2KHR calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkBufferImageCopy2KHR.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkBufferImageCopy2KHR.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
-