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;
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.VkImageToMemoryCopy
ALIGNOF, IMAGEEXTENT, IMAGEOFFSET, IMAGESUBRESOURCE, MEMORYIMAGEHEIGHT, MEMORYROWLENGTH, PHOSTPOINTER, PNEXT, SIZEOF, STYPEFields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionVkImageToMemoryCopyEXT(ByteBuffer container) Creates aVkImageToMemoryCopyEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkImageToMemoryCopyEXTcalloc()Returns a newVkImageToMemoryCopyEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageToMemoryCopyEXTcalloc(MemoryStack stack) Returns a newVkImageToMemoryCopyEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkImageToMemoryCopyEXTcreate()Returns a newVkImageToMemoryCopyEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withBufferUtils.static VkImageToMemoryCopyEXTcreate(long address) Returns a newVkImageToMemoryCopyEXTinstance for the specified memory address.create(long address, int capacity) Create aVkImageToMemoryCopyEXT.Bufferinstance at the specified memory.static @Nullable VkImageToMemoryCopyEXTcreateSafe(long address) static @Nullable VkImageToMemoryCopyEXT.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 VkImageToMemoryCopyEXTmalloc()Returns a newVkImageToMemoryCopyEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkImageToMemoryCopyEXTmalloc(MemoryStack stack) Returns a newVkImageToMemoryCopyEXTinstance allocated on the specifiedMemoryStack.memoryImageHeight(int value) Sets the specified value to thememoryImageHeightfield.memoryRowLength(int value) Sets the specified value to thememoryRowLengthfield.pHostPointer(long value) Sets the specified value to thepHostPointerfield.pNext(long value) Sets the specified value to thepNextfield.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 thesTypefield.Sets theSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPYvalue to thesTypefield.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, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkImageToMemoryCopyEXT
Creates aVkImageToMemoryCopyEXTinstance 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 classVkImageToMemoryCopy
-
sType$Default
Sets theSTRUCTURE_TYPE_IMAGE_TO_MEMORY_COPYvalue to thesTypefield.- Overrides:
sType$Defaultin classVkImageToMemoryCopy
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkImageToMemoryCopy
-
pHostPointer
Sets the specified value to thepHostPointerfield.- Overrides:
pHostPointerin classVkImageToMemoryCopy
-
memoryRowLength
Sets the specified value to thememoryRowLengthfield.- Overrides:
memoryRowLengthin classVkImageToMemoryCopy
-
memoryImageHeight
Sets the specified value to thememoryImageHeightfield.- Overrides:
memoryImageHeightin classVkImageToMemoryCopy
-
imageSubresource
Copies the specifiedVkImageSubresourceLayersto theimageSubresourcefield.- Overrides:
imageSubresourcein classVkImageToMemoryCopy
-
imageSubresource
Passes theimageSubresourcefield to the specifiedConsumer.- Overrides:
imageSubresourcein classVkImageToMemoryCopy
-
imageOffset
Copies the specifiedVkOffset3Dto theimageOffsetfield.- Overrides:
imageOffsetin classVkImageToMemoryCopy
-
imageOffset
Passes theimageOffsetfield to the specifiedConsumer.- Overrides:
imageOffsetin classVkImageToMemoryCopy
-
imageExtent
Copies the specifiedVkExtent3Dto theimageExtentfield.- Overrides:
imageExtentin classVkImageToMemoryCopy
-
imageExtent
Passes theimageExtentfield to the specifiedConsumer.- Overrides:
imageExtentin 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:
setin classVkImageToMemoryCopy
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkImageToMemoryCopyEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkImageToMemoryCopyEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkImageToMemoryCopyEXTinstance allocated withBufferUtils. -
create
Returns a newVkImageToMemoryCopyEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkImageToMemoryCopyEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkImageToMemoryCopyEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkImageToMemoryCopyEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkImageToMemoryCopyEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-