Package org.lwjgl.vulkan
Class VkImageToMemoryCopyEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkImageToMemoryCopy>
org.lwjgl.vulkan.VkImageToMemoryCopy
org.lwjgl.vulkan.VkImageToMemoryCopyEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkImageToMemoryCopyEXT {
VkStructureType sType;
void const * pNext;
void * pHostPointer;
uint32_t memoryRowLength;
uint32_t memoryImageHeight;
{@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.VkImageToMemoryCopy
ALIGNOF, IMAGEEXTENT, IMAGEOFFSET, IMAGESUBRESOURCE, MEMORYIMAGEHEIGHT, MEMORYROWLENGTH, PHOSTPOINTER, PNEXT, SIZEOF, STYPE
Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkImageToMemoryCopyEXT
(ByteBuffer container) Creates aVkImageToMemoryCopyEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageToMemoryCopyEXT
calloc()
Returns a newVkImageToMemoryCopyEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageToMemoryCopyEXT
calloc
(MemoryStack stack) Returns a newVkImageToMemoryCopyEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkImageToMemoryCopyEXT
create()
Returns a newVkImageToMemoryCopyEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withBufferUtils
.static VkImageToMemoryCopyEXT
create
(long address) Returns a newVkImageToMemoryCopyEXT
instance for the specified memory address.create
(long address, int capacity) Create aVkImageToMemoryCopyEXT.Buffer
instance at the specified memory.static @Nullable VkImageToMemoryCopyEXT
createSafe
(long address) static @Nullable VkImageToMemoryCopyEXT.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 VkImageToMemoryCopyEXT
malloc()
Returns a newVkImageToMemoryCopyEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkImageToMemoryCopyEXT
malloc
(MemoryStack stack) Returns a newVkImageToMemoryCopyEXT
instance allocated on the specifiedMemoryStack
.memoryImageHeight
(int value) Sets the specified value to thememoryImageHeight
field.memoryRowLength
(int value) Sets the specified value to thememoryRowLength
field.pHostPointer
(long value) Sets the specified value to thepHostPointer
field.pNext
(long value) Sets the specified value to thepNext
field.set
(int sType, long pNext, long pHostPointer, int memoryRowLength, int memoryImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent) Initializes this struct with the specified values.Copies the specified struct data to this struct.sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY
value to thesType
field.Methods inherited from class org.lwjgl.vulkan.VkImageToMemoryCopy
imageExtent, imageOffset, imageSubresource, memoryImageHeight, memoryRowLength, nimageExtent, nimageExtent, nimageOffset, nimageOffset, nimageSubresource, nimageSubresource, nmemoryImageHeight, nmemoryImageHeight, nmemoryRowLength, nmemoryRowLength, npHostPointer, npHostPointer, npNext, npNext, nsType, nsType, pHostPointer, pNext, set, sizeof, sType, validate
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
-
VkImageToMemoryCopyEXT
Creates aVkImageToMemoryCopyEXT
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 classVkImageToMemoryCopy
-
sType$Default
Sets theSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPY
value to thesType
field.- Overrides:
sType$Default
in classVkImageToMemoryCopy
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkImageToMemoryCopy
-
pHostPointer
Sets the specified value to thepHostPointer
field.- Overrides:
pHostPointer
in classVkImageToMemoryCopy
-
memoryRowLength
Sets the specified value to thememoryRowLength
field.- Overrides:
memoryRowLength
in classVkImageToMemoryCopy
-
memoryImageHeight
Sets the specified value to thememoryImageHeight
field.- Overrides:
memoryImageHeight
in classVkImageToMemoryCopy
-
imageSubresource
Copies the specifiedVkImageSubresourceLayers
to theimageSubresource
field.- Overrides:
imageSubresource
in classVkImageToMemoryCopy
-
imageSubresource
Passes theimageSubresource
field to the specifiedConsumer
.- Overrides:
imageSubresource
in classVkImageToMemoryCopy
-
imageOffset
Copies the specifiedVkOffset3D
to theimageOffset
field.- Overrides:
imageOffset
in classVkImageToMemoryCopy
-
imageOffset
Passes theimageOffset
field to the specifiedConsumer
.- Overrides:
imageOffset
in classVkImageToMemoryCopy
-
imageExtent
Copies the specifiedVkExtent3D
to theimageExtent
field.- Overrides:
imageExtent
in classVkImageToMemoryCopy
-
imageExtent
Passes theimageExtent
field to the specifiedConsumer
.- Overrides:
imageExtent
in classVkImageToMemoryCopy
-
set
public VkImageToMemoryCopyEXT set(int sType, long pNext, long pHostPointer, int memoryRowLength, int memoryImageHeight, VkImageSubresourceLayers imageSubresource, VkOffset3D imageOffset, VkExtent3D imageExtent) Initializes this struct with the specified values.- Overrides:
set
in classVkImageToMemoryCopy
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkImageToMemoryCopyEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkImageToMemoryCopyEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkImageToMemoryCopyEXT
instance allocated withBufferUtils
. -
create
Returns a newVkImageToMemoryCopyEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkImageToMemoryCopyEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageToMemoryCopyEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkImageToMemoryCopyEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkImageToMemoryCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-