Top Description Inners Fields Constructors Methods
org.lwjgl.vulkan

public Class VkMemoryToImageCopyEXT

extends Struct<VkMemoryToImageCopyEXT>
implements NativeResource
Class Inheritance
All Implemented Interfaces
org.lwjgl.system.NativeResource, java.lang.AutoCloseable
Imports
javax.annotation.*, java.nio.*, org.lwjgl.*, org.lwjgl.system.*

Structure specifying a host memory to image copy operation.
Description

This structure is functionally similar to VkBufferImageCopy2, except it defines host memory as the source of copy instead of a buffer. In particular, the same data packing rules and restrictions as that structure apply here as well.

Valid Usage
Valid Usage (Implicit)
See Also

VkCopyMemoryToImageInfoEXT, VkExtent3D, VkImageSubresourceLayers, VkOffset3D

Layout


struct VkMemoryToImageCopyEXT {
    VkStructureType sType;
    void const * pNext;
    void const * pHostPointer;
    uint32_t memoryRowLength;
    uint32_t memoryImageHeight;
    VkImageSubresourceLayers imageSubresource;
    VkOffset3D imageOffset;
    VkExtent3D imageExtent;
}

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class

Field Summary

Modifier and TypeField and Description
public static final int
ALIGNOF

The struct alignment in bytes.

public static final int
IMAGEEXTENT

The struct member offsets.

public static final int
IMAGEOFFSET

The struct member offsets.

public static final int
IMAGESUBRESOURCE

The struct member offsets.

public static final int
MEMORYIMAGEHEIGHT

The struct member offsets.

public static final int
MEMORYROWLENGTH

The struct member offsets.

public static final int
PHOSTPOINTER

The struct member offsets.

public static final int
PNEXT

The struct member offsets.

public static final int
SIZEOF

The struct size in bytes.

public static final int
STYPE

The struct member offsets.

Inherited from org.lwjgl.system.Struct:
containerDEFAULT_ALIGN_ASDEFAULT_PACK_ALIGNMENT

Constructor Summary

AccessConstructor and Description
protected
VkMemoryToImageCopyEXT(long address, ByteBuffer container)

public
VkMemoryToImageCopyEXT(ByteBuffer container)

Creates a VkMemoryToImageCopyEXT instance at the current position of the specified ByteBuffer container.

Method Summary

Modifier and TypeMethod and Description
public static VkMemoryToImageCopyEXT
calloc()

Returns a new VkMemoryToImageCopyEXT instance allocated with memCalloc.

public static VkMemoryToImageCopyEXT.Buffer
calloc(int
the buffer capacity
capacity
)

Returns a new VkMemoryToImageCopyEXT.Buffer instance allocated with memCalloc.

public static VkMemoryToImageCopyEXT
calloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryToImageCopyEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.

public static VkMemoryToImageCopyEXT.Buffer
calloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryToImageCopyEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.

protected VkMemoryToImageCopyEXT
create(long
the struct memory address
address
,
ByteBuffer
an optional container buffer, to be referenced strongly by the struct instance.
container
)

Implements abstract org.lwjgl.system.Struct.create.

Similar to the constructor, but returns the exact type of the Struct subclass.
public static VkMemoryToImageCopyEXT
create()

Returns a new VkMemoryToImageCopyEXT instance allocated with BufferUtils.

public static VkMemoryToImageCopyEXT
create(long address)

Returns a new VkMemoryToImageCopyEXT instance for the specified memory address.

public static VkMemoryToImageCopyEXT.Buffer
create(int
the buffer capacity
capacity
)

Returns a new VkMemoryToImageCopyEXT.Buffer instance allocated with BufferUtils.

public static VkMemoryToImageCopyEXT.Buffer
create(long
the memory address
address
,
int
the buffer capacity
capacity
)

Create a VkMemoryToImageCopyEXT.Buffer instance at the specified memory.

public static VkMemoryToImageCopyEXT
createSafe(long address)

Like create, but returns null if address is NULL.

public static VkMemoryToImageCopyEXT.Buffer
createSafe(long address, int capacity)

Like create, but returns null if address is NULL.

public VkExtent3D
imageExtent()

the size in texels of the image to copy in width, height and depth.

public VkMemoryToImageCopyEXT
imageExtent(VkExtent3D value)

Copies the specified VkExtent3D to the imageExtent field.

public VkMemoryToImageCopyEXT
imageExtent(Consumer<VkExtent3D> consumer)

Passes the imageExtent field to the specified Consumer.

public VkOffset3D
imageOffset()

selects the initial x, y, z offsets in texels of the sub-region of the destination image data.

public VkMemoryToImageCopyEXT
imageOffset(VkOffset3D value)

Copies the specified VkOffset3D to the imageOffset field.

public VkMemoryToImageCopyEXT
imageOffset(Consumer<VkOffset3D> consumer)

Passes the imageOffset field to the specified Consumer.

public VkImageSubresourceLayers
imageSubresource()

a VkImageSubresourceLayers used to specify the specific image subresources of the image used for the source or destination image data.

public VkMemoryToImageCopyEXT
public VkMemoryToImageCopyEXT
imageSubresource(Consumer<VkImageSubresourceLayers> consumer)

Passes the imageSubresource field to the specified Consumer.

public static VkMemoryToImageCopyEXT
malloc()

Returns a new VkMemoryToImageCopyEXT instance allocated with memAlloc.

public static VkMemoryToImageCopyEXT.Buffer
malloc(int
the buffer capacity
capacity
)

Returns a new VkMemoryToImageCopyEXT.Buffer instance allocated with memAlloc.

public static VkMemoryToImageCopyEXT
malloc(MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryToImageCopyEXT instance allocated on the specified MemoryStack.

public static VkMemoryToImageCopyEXT.Buffer
malloc(int
the buffer capacity
capacity
,
MemoryStack
the stack from which to allocate
stack
)

Returns a new VkMemoryToImageCopyEXT.Buffer instance allocated on the specified MemoryStack.

public int
memoryImageHeight()

see memoryRowLength

public VkMemoryToImageCopyEXT
memoryImageHeight(int value)

Sets the specified value to the memoryImageHeight field.

public int
memoryRowLength()

memoryRowLength and memoryImageHeight specify in texels a subregion of a larger two- or three-dimensional image in host memory, and control the addressing calculations.

public VkMemoryToImageCopyEXT
memoryRowLength(int value)

Sets the specified value to the memoryRowLength field.

public static VkExtent3D
nimageExtent(long struct)

Unsafe version of imageExtent.

public static void
nimageExtent(long struct, VkExtent3D value)

Unsafe version of imageExtent.

public static VkOffset3D
nimageOffset(long struct)

Unsafe version of imageOffset.

public static void
nimageOffset(long struct, VkOffset3D value)

Unsafe version of imageOffset.

public static VkImageSubresourceLayers
nimageSubresource(long struct)

Unsafe version of imageSubresource.

public static void
nimageSubresource(long struct, VkImageSubresourceLayers value)

Unsafe version of imageSubresource.

public static int
nmemoryImageHeight(long struct)

Unsafe version of memoryImageHeight.

public static void
nmemoryImageHeight(long struct, int value)

Unsafe version of memoryImageHeight.

public static int
nmemoryRowLength(long struct)

Unsafe version of memoryRowLength.

public static void
nmemoryRowLength(long struct, int value)

Unsafe version of memoryRowLength.

public static long
npHostPointer(long struct)

Unsafe version of pHostPointer.

public static void
npHostPointer(long struct, long value)

Unsafe version of pHostPointer.

public static long
npNext(long struct)

Unsafe version of pNext.

public static void
npNext(long struct, long value)

Unsafe version of pNext.

public static int
nsType(long struct)

Unsafe version of sType.

public static void
nsType(long struct, int value)

Unsafe version of sType.

public long
pHostPointer()

the host memory address which is the source of the copy.

public VkMemoryToImageCopyEXT
pHostPointer(long value)

Sets the specified value to the pHostPointer field.

public long
pNext()

NULL or a pointer to a structure extending this structure.

public VkMemoryToImageCopyEXT
pNext(long value)

Sets the specified value to the pNext field.

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.

public VkMemoryToImageCopyEXT

Returns:

this struct
set
(VkMemoryToImageCopyEXT
the source struct
src
)

Copies the specified struct data to this struct.

public int
sizeof()

Implements abstract org.lwjgl.system.Struct.sizeof.

Returns sizeof(struct).
public int
sType()

a VkStructureType value identifying this structure.

public VkMemoryToImageCopyEXT
sType(int value)

Sets the specified value to the sType field.

public VkMemoryToImageCopyEXT
public static void
validate(long
the struct to validate
struct
)

Validates pointer members that should not be NULL.

Inherited from org.lwjgl.system.Struct:
__array__array__array__checkContainer__checkMalloc__create__getContainer__getContainer__member__member__member__padding__padding__struct__struct__union__unionclearfreeisNullvalidate