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;
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.VkMemoryToImageCopy
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
ConstructorsConstructorDescriptionVkMemoryToImageCopyEXT(ByteBuffer container) Creates aVkMemoryToImageCopyEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkMemoryToImageCopyEXTcalloc()Returns a newVkMemoryToImageCopyEXTinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryToImageCopyEXTcalloc(MemoryStack stack) Returns a newVkMemoryToImageCopyEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkMemoryToImageCopyEXTcreate()Returns a newVkMemoryToImageCopyEXTinstance allocated withBufferUtils.create(int capacity) Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withBufferUtils.static VkMemoryToImageCopyEXTcreate(long address) Returns a newVkMemoryToImageCopyEXTinstance for the specified memory address.create(long address, int capacity) Create aVkMemoryToImageCopyEXT.Bufferinstance at the specified memory.static @Nullable VkMemoryToImageCopyEXTcreateSafe(long address) static @Nullable VkMemoryToImageCopyEXT.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 VkMemoryToImageCopyEXTmalloc()Returns a newVkMemoryToImageCopyEXTinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkMemoryToImageCopyEXTmalloc(MemoryStack stack) Returns a newVkMemoryToImageCopyEXTinstance 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_MEMORY_TO_IMAGE_COPYvalue to thesTypefield.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, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Constructor Details
-
VkMemoryToImageCopyEXT
Creates aVkMemoryToImageCopyEXTinstance 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 classVkMemoryToImageCopy
-
sType$Default
Sets theSTRUCTURE_TYPE_MEMORY_TO_IMAGE_COPYvalue to thesTypefield.- Overrides:
sType$Defaultin classVkMemoryToImageCopy
-
pNext
Sets the specified value to thepNextfield.- Overrides:
pNextin classVkMemoryToImageCopy
-
pHostPointer
Sets the specified value to thepHostPointerfield.- Overrides:
pHostPointerin classVkMemoryToImageCopy
-
memoryRowLength
Sets the specified value to thememoryRowLengthfield.- Overrides:
memoryRowLengthin classVkMemoryToImageCopy
-
memoryImageHeight
Sets the specified value to thememoryImageHeightfield.- Overrides:
memoryImageHeightin classVkMemoryToImageCopy
-
imageSubresource
Copies the specifiedVkImageSubresourceLayersto theimageSubresourcefield.- Overrides:
imageSubresourcein classVkMemoryToImageCopy
-
imageSubresource
Passes theimageSubresourcefield to the specifiedConsumer.- Overrides:
imageSubresourcein classVkMemoryToImageCopy
-
imageOffset
Copies the specifiedVkOffset3Dto theimageOffsetfield.- Overrides:
imageOffsetin classVkMemoryToImageCopy
-
imageOffset
Passes theimageOffsetfield to the specifiedConsumer.- Overrides:
imageOffsetin classVkMemoryToImageCopy
-
imageExtent
Copies the specifiedVkExtent3Dto theimageExtentfield.- Overrides:
imageExtentin classVkMemoryToImageCopy
-
imageExtent
Passes theimageExtentfield to the specifiedConsumer.- Overrides:
imageExtentin 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:
setin classVkMemoryToImageCopy
-
set
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkMemoryToImageCopyEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkMemoryToImageCopyEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkMemoryToImageCopyEXTinstance allocated withBufferUtils. -
create
Returns a newVkMemoryToImageCopyEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkMemoryToImageCopyEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
malloc
Returns a newVkMemoryToImageCopyEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkMemoryToImageCopyEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkMemoryToImageCopyEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-