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;
{@link VkImageSubresourceLayers VkImageSubresourceLayers} imageSubresource;
{@link VkOffset3D VkOffset3D} imageOffset;
{@link VkExtent3D VkExtent3D} imageExtent;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested 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, STYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkBufferImageCopy2KHR
(ByteBuffer container) Creates aVkBufferImageCopy2KHR
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionbufferImageHeight
(int value) Sets the specified value to thebufferImageHeight
field.bufferOffset
(long value) Sets the specified value to thebufferOffset
field.bufferRowLength
(int value) Sets the specified value to thebufferRowLength
field.static VkBufferImageCopy2KHR
calloc()
Returns a newVkBufferImageCopy2KHR
instance allocated withmemCalloc
.static VkBufferImageCopy2KHR.Buffer
calloc
(int capacity) Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withmemCalloc
.static VkBufferImageCopy2KHR.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBufferImageCopy2KHR
calloc
(MemoryStack stack) Returns a newVkBufferImageCopy2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkBufferImageCopy2KHR
create()
Returns a newVkBufferImageCopy2KHR
instance allocated withBufferUtils
.static VkBufferImageCopy2KHR.Buffer
create
(int capacity) Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withBufferUtils
.static VkBufferImageCopy2KHR
create
(long address) Returns a newVkBufferImageCopy2KHR
instance for the specified memory address.static VkBufferImageCopy2KHR.Buffer
create
(long address, int capacity) Create aVkBufferImageCopy2KHR.Buffer
instance at the specified memory.static @Nullable VkBufferImageCopy2KHR
createSafe
(long address) static @Nullable VkBufferImageCopy2KHR.Buffer
createSafe
(long address, int capacity) imageExtent
(Consumer<VkExtent3D> consumer) Passes theimageExtent
field to the specifiedConsumer
.imageExtent
(VkExtent3D value) Copies the specifiedVkExtent3D
to theimageExtent
field.imageOffset
(Consumer<VkOffset3D> consumer) Passes theimageOffset
field to the specifiedConsumer
.imageOffset
(VkOffset3D value) Copies the specifiedVkOffset3D
to theimageOffset
field.imageSubresource
(Consumer<VkImageSubresourceLayers> consumer) Passes theimageSubresource
field to the specifiedConsumer
.Copies the specifiedVkImageSubresourceLayers
to theimageSubresource
field.static VkBufferImageCopy2KHR
malloc()
Returns a newVkBufferImageCopy2KHR
instance allocated withmemAlloc
.static VkBufferImageCopy2KHR.Buffer
malloc
(int capacity) Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withmemAlloc
.static VkBufferImageCopy2KHR.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated on the specifiedMemoryStack
.static VkBufferImageCopy2KHR
malloc
(MemoryStack stack) Returns a newVkBufferImageCopy2KHR
instance allocated on the specifiedMemoryStack
.pNext
(long value) Sets the specified value to thepNext
field.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 thesType
field.Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2
value to thesType
field.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
Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkBufferImageCopy2KHR
Creates aVkBufferImageCopy2KHR
instance at the current position of the specifiedByteBuffer
container. 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 thesType
field.- Overrides:
sType
in classVkBufferImageCopy2
-
sType$Default
Sets theSTRUCTURE_TYPE_BUFFER_IMAGE_COPY_2
value to thesType
field.- Overrides:
sType$Default
in classVkBufferImageCopy2
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkBufferImageCopy2
-
bufferOffset
Sets the specified value to thebufferOffset
field.- Overrides:
bufferOffset
in classVkBufferImageCopy2
-
bufferRowLength
Sets the specified value to thebufferRowLength
field.- Overrides:
bufferRowLength
in classVkBufferImageCopy2
-
bufferImageHeight
Sets the specified value to thebufferImageHeight
field.- Overrides:
bufferImageHeight
in classVkBufferImageCopy2
-
imageSubresource
Copies the specifiedVkImageSubresourceLayers
to theimageSubresource
field.- Overrides:
imageSubresource
in classVkBufferImageCopy2
-
imageSubresource
Passes theimageSubresource
field to the specifiedConsumer
.- Overrides:
imageSubresource
in classVkBufferImageCopy2
-
imageOffset
Copies the specifiedVkOffset3D
to theimageOffset
field.- Overrides:
imageOffset
in classVkBufferImageCopy2
-
imageOffset
Passes theimageOffset
field to the specifiedConsumer
.- Overrides:
imageOffset
in classVkBufferImageCopy2
-
imageExtent
Copies the specifiedVkExtent3D
to theimageExtent
field.- Overrides:
imageExtent
in classVkBufferImageCopy2
-
imageExtent
Passes theimageExtent
field to the specifiedConsumer
.- Overrides:
imageExtent
in 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:
set
in classVkBufferImageCopy2
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkBufferImageCopy2KHR
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkBufferImageCopy2KHR
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkBufferImageCopy2KHR
instance allocated withBufferUtils
. -
create
Returns a newVkBufferImageCopy2KHR
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkBufferImageCopy2KHR.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkBufferImageCopy2KHR
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkBufferImageCopy2KHR
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkBufferImageCopy2KHR.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-