Package org.lwjgl.vulkan
Class VkBufferImageCopy2KHR
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkBufferImageCopy2>
org.lwjgl.vulkan.VkBufferImageCopy2
org.lwjgl.vulkan.VkBufferImageCopy2KHR
- All Implemented Interfaces:
AutoCloseable,NativeResource,Pointer
struct VkBufferImageCopy2KHR {
VkStructureType sType;
void const * pNext;
VkDeviceSize bufferOffset;
uint32_t bufferRowLength;
uint32_t bufferImageHeight;
VkImageSubresourceLayers imageSubresource;
VkOffset3D imageOffset;
VkExtent3D imageExtent;
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
Fields inherited from class org.lwjgl.vulkan.VkBufferImageCopy2
ALIGNOF, BUFFERIMAGEHEIGHT, BUFFEROFFSET, BUFFERROWLENGTH, IMAGEEXTENT, IMAGEOFFSET, IMAGESUBRESOURCE, PNEXT, SIZEOF, STYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkBufferImageCopy2KHR(ByteBuffer container) Creates aVkBufferImageCopy2KHRinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionbufferImageHeight(int value) Sets the specified value to thebufferImageHeightfield.bufferOffset(long value) Sets the specified value to thebufferOffsetfield.bufferRowLength(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, MemoryStack stack) Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkBufferImageCopy2KHRcalloc(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 @Nullable VkBufferImageCopy2KHRcreateSafe(long address) static @Nullable VkBufferImageCopy2KHR.BuffercreateSafe(long address, int capacity) imageExtent(Consumer<VkExtent3D> consumer) Passes theimageExtentfield to the specifiedConsumer.imageExtent(VkExtent3D value) Copies the specifiedVkExtent3Dto theimageExtentfield.imageOffset(Consumer<VkOffset3D> consumer) Passes theimageOffsetfield to the specifiedConsumer.imageOffset(VkOffset3D value) Copies the specifiedVkOffset3Dto theimageOffsetfield.imageSubresource(Consumer<VkImageSubresourceLayers> consumer) Passes theimageSubresourcefield to the specifiedConsumer.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, MemoryStack stack) Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.static VkBufferImageCopy2KHRmalloc(MemoryStack stack) Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStack.pNext(long value) Sets the specified value to thepNextfield.set(int sType, long pNext, long bufferOffset, int bufferRowLength, int bufferImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent) Initializes this struct with the specified values.set(VkBufferImageCopy2KHR src) Copies the specified struct data to this struct.sType(int value) Sets the specified value to thesTypefield.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, sTypeMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkBufferImageCopy2KHR
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 Details
-
sType
Sets the specified value to thesTypefield.- Overrides:
sTypein classVkBufferImageCopy2
-
sType$Default
Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2value to thesTypefield.- Overrides:
sType$Defaultin classVkBufferImageCopy2
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkBufferImageCopy2
-
bufferOffset
Sets the specified value to thebufferOffsetfield.- Overrides:
bufferOffsetin classVkBufferImageCopy2
-
bufferRowLength
Sets the specified value to thebufferRowLengthfield.- Overrides:
bufferRowLengthin classVkBufferImageCopy2
-
bufferImageHeight
Sets the specified value to thebufferImageHeightfield.- Overrides:
bufferImageHeightin classVkBufferImageCopy2
-
imageSubresource
Copies the specifiedVkImageSubresourceLayersto theimageSubresourcefield.- Overrides:
imageSubresourcein classVkBufferImageCopy2
-
imageSubresource
Passes theimageSubresourcefield to the specifiedConsumer.- Overrides:
imageSubresourcein classVkBufferImageCopy2
-
imageOffset
Copies the specifiedVkOffset3Dto theimageOffsetfield.- Overrides:
imageOffsetin classVkBufferImageCopy2
-
imageOffset
Passes theimageOffsetfield to the specifiedConsumer.- Overrides:
imageOffsetin classVkBufferImageCopy2
-
imageExtent
Copies the specifiedVkExtent3Dto theimageExtentfield.- Overrides:
imageExtentin classVkBufferImageCopy2
-
imageExtent
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkBufferImageCopy2KHRinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkBufferImageCopy2KHRinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkBufferImageCopy2KHRinstance allocated withBufferUtils. -
create
Returns a newVkBufferImageCopy2KHRinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkBufferImageCopy2KHR.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkBufferImageCopy2KHRinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkBufferImageCopy2KHR.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-