Package org.lwjgl.vulkan
Class VkMemoryToImageCopyEXT
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<VkMemoryToImageCopy>
org.lwjgl.vulkan.VkMemoryToImageCopy
org.lwjgl.vulkan.VkMemoryToImageCopyEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkMemoryToImageCopyEXT {
VkStructureType sType;
void const * pNext;
void const * 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.VkMemoryToImageCopy
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
ConstructorsConstructorDescriptionVkMemoryToImageCopyEXT
(ByteBuffer container) Creates aVkMemoryToImageCopyEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMemoryToImageCopyEXT
calloc()
Returns a newVkMemoryToImageCopyEXT
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryToImageCopyEXT
calloc
(MemoryStack stack) Returns a newVkMemoryToImageCopyEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkMemoryToImageCopyEXT
create()
Returns a newVkMemoryToImageCopyEXT
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withBufferUtils
.static VkMemoryToImageCopyEXT
create
(long address) Returns a newVkMemoryToImageCopyEXT
instance for the specified memory address.create
(long address, int capacity) Create aVkMemoryToImageCopyEXT.Buffer
instance at the specified memory.static @Nullable VkMemoryToImageCopyEXT
createSafe
(long address) static @Nullable VkMemoryToImageCopyEXT.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 VkMemoryToImageCopyEXT
malloc()
Returns a newVkMemoryToImageCopyEXT
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkMemoryToImageCopyEXT
malloc
(MemoryStack stack) Returns a newVkMemoryToImageCopyEXT
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_MEMORY_TO_IMAGE_COPY
value to thesType
field.Methods inherited from class org.lwjgl.vulkan.VkMemoryToImageCopy
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
-
VkMemoryToImageCopyEXT
Creates aVkMemoryToImageCopyEXT
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 classVkMemoryToImageCopy
-
sType$Default
Sets theSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPY
value to thesType
field.- Overrides:
sType$Default
in classVkMemoryToImageCopy
-
pNext
Sets the specified value to thepNext
field.- Overrides:
pNext
in classVkMemoryToImageCopy
-
pHostPointer
Sets the specified value to thepHostPointer
field.- Overrides:
pHostPointer
in classVkMemoryToImageCopy
-
memoryRowLength
Sets the specified value to thememoryRowLength
field.- Overrides:
memoryRowLength
in classVkMemoryToImageCopy
-
memoryImageHeight
Sets the specified value to thememoryImageHeight
field.- Overrides:
memoryImageHeight
in classVkMemoryToImageCopy
-
imageSubresource
Copies the specifiedVkImageSubresourceLayers
to theimageSubresource
field.- Overrides:
imageSubresource
in classVkMemoryToImageCopy
-
imageSubresource
Passes theimageSubresource
field to the specifiedConsumer
.- Overrides:
imageSubresource
in classVkMemoryToImageCopy
-
imageOffset
Copies the specifiedVkOffset3D
to theimageOffset
field.- Overrides:
imageOffset
in classVkMemoryToImageCopy
-
imageOffset
Passes theimageOffset
field to the specifiedConsumer
.- Overrides:
imageOffset
in classVkMemoryToImageCopy
-
imageExtent
Copies the specifiedVkExtent3D
to theimageExtent
field.- Overrides:
imageExtent
in classVkMemoryToImageCopy
-
imageExtent
Passes theimageExtent
field to the specifiedConsumer
.- Overrides:
imageExtent
in classVkMemoryToImageCopy
-
set
public VkMemoryToImageCopyEXT 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 classVkMemoryToImageCopy
-
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMemoryToImageCopyEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkMemoryToImageCopyEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkMemoryToImageCopyEXT
instance allocated withBufferUtils
. -
create
Returns a newVkMemoryToImageCopyEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkMemoryToImageCopyEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMemoryToImageCopyEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkMemoryToImageCopyEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkMemoryToImageCopyEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-