sparseResidencyAliased feature is not enabled, and if any other resources are bound to ranges of memory, the range of memory being bound must not overlap with those bound rangesmemory and memoryOffset must match the memory requirements of the calling command’s image, as described in section Resource Memory Associationsubresource must be a valid image subresource for image (see Image Views)offset.x must be a multiple of the sparse image block width (VkSparseImageFormatProperties::imageGranularity.width) of the imageextent.width must either be a multiple of the sparse image block width of the image, or else (extent.width + offset.x) must equal the width of the image subresourceoffset.y must be a multiple of the sparse image block height (VkSparseImageFormatProperties::imageGranularity.height) of the imageextent.height must either be a multiple of the sparse image block height of the image, or else (extent.height + offset.y) must equal the height of the image subresourceoffset.z must be a multiple of the sparse image block depth (VkSparseImageFormatProperties::imageGranularity.depth) of the imageextent.depth must either be a multiple of the sparse image block depth of the image, or else (extent.depth + offset.z) must equal the depth of the image subresourcememory was created with VkExportMemoryAllocateInfo::handleTypes not equal to 0, at least one handle type it contained must also have been set in VkExternalMemoryImageCreateInfo::handleTypes when the image was createdmemory was created by a memory import operation, the external handle type of the imported memory must also have been set in VkExternalMemoryImageCreateInfo::handleTypes when image was createdsubresource must be a valid VkImageSubresource structurememory is not NULL_HANDLE, memory must be a valid VkDeviceMemory handleflags must be a valid combination of VkSparseMemoryBindFlagBits valuesVkExtent3D, VkImageSubresource, VkOffset3D, VkSparseImageMemoryBindInfo
struct VkSparseImageMemoryBind {
VkImageSubresource subresource;
VkOffset3D offset;
VkExtent3D extent;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkSparseMemoryBindFlags flags;
}
| Modifier and Type | Class and Description |
|---|---|
| public static class | VkSparseImageMemoryBind.
An array of |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | ALIGNOF
The struct alignment in bytes. |
| public static final int | EXTENT
The struct member offsets. |
| public static final int | FLAGS
The struct member offsets. |
| public static final int | MEMORY
The struct member offsets. |
| public static final int | MEMORYOFFSET
The struct member offsets. |
| public static final int | OFFSET
The struct member offsets. |
| public static final int | SIZEOF
The struct size in bytes. |
| public static final int | SUBRESOURCE
The struct member offsets. |
| Access | Constructor and Description |
|---|---|
| protected | |
| public | VkSparseImageMemoryBind(ByteBuffer container)
Creates a |
| Modifier and Type | Method and Description |
|---|---|
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind. | calloc(int
the buffer capacity capacity)Returns a new |
| public static VkSparseImageMemoryBind | calloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSparseImageMemoryBind. | calloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind. | |
| public static VkSparseImageMemoryBind. | |
| protected VkSparseImageMemoryBind | create(long
the struct memory address address, ByteBuffer an optional container buffer, to be referenced strongly by the struct instance. container)Implements abstract org. the constructor, but returns the exact type of the Struct subclass.
|
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind | create(long address)
Returns a new |
| public static VkSparseImageMemoryBind. | create(int
the buffer capacity capacity)Returns a new |
| public static VkSparseImageMemoryBind. | create(long
the memory address address, int the buffer capacity capacity)Create a |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind. | |
| public VkExtent3D | |
| public VkSparseImageMemoryBind | |
| public VkSparseImageMemoryBind | |
| public int | |
| public VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind. | malloc(int
the buffer capacity capacity)Returns a new |
| public static VkSparseImageMemoryBind | malloc(MemoryStack
the stack from which to allocate stack)Returns a new |
| public static VkSparseImageMemoryBind. | malloc(int
the buffer capacity capacity, MemoryStack the stack from which to allocate stack)Returns a new |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind | |
| public static VkSparseImageMemoryBind. | |
| public static VkSparseImageMemoryBind. | |
| public long | |
| public VkSparseImageMemoryBind | |
| public long | |
| public VkSparseImageMemoryBind | |
| public static VkExtent3D | |
| public static void | |
| public static int | |
| public static void | |
| public static long | |
| public static void | |
| public static long | |
| public static void | |
| public static VkOffset3D | |
| public static void | |
| public static VkImageSubresource | |
| public static void | |
| public VkOffset3D | |
| public VkSparseImageMemoryBind | |
| public VkSparseImageMemoryBind | |
| public VkSparseImageMemoryBind | set(VkImageSubresource subresource, VkOffset3D offset, VkExtent3D extent, long memory, long memoryOffset, int flags)
Initializes this struct with the specified values. |
| public VkSparseImageMemoryBind | Returns: this structthe source struct src)Copies the specified struct data to this struct. |
| public int | |
| public VkImageSubresource | |
| public VkSparseImageMemoryBind | subresource(VkImageSubresource value)
Copies the specified |
| public VkSparseImageMemoryBind | subresource(Consumer<VkImageSubresource> consumer)
Passes the |
| ALIGNOF | back to summary |
|---|---|
| public static final int ALIGNOF The struct alignment in bytes. | |
| EXTENT | back to summary |
|---|---|
| public static final int EXTENT The struct member offsets. | |
| FLAGS | back to summary |
|---|---|
| public static final int FLAGS The struct member offsets. | |
| MEMORY | back to summary |
|---|---|
| public static final int MEMORY The struct member offsets. | |
| MEMORYOFFSET | back to summary |
|---|---|
| public static final int MEMORYOFFSET The struct member offsets. | |
| OFFSET | back to summary |
|---|---|
| public static final int OFFSET The struct member offsets. | |
| SIZEOF | back to summary |
|---|---|
| public static final int SIZEOF The struct size in bytes. | |
| SUBRESOURCE | back to summary |
|---|---|
| public static final int SUBRESOURCE The struct member offsets. | |
| VkSparseImageMemoryBind | back to summary |
|---|---|
| protected VkSparseImageMemoryBind(long address, ByteBuffer container) | |
| VkSparseImageMemoryBind | back to summary |
|---|---|
| public VkSparseImageMemoryBind(ByteBuffer container) Creates a The created instance holds a strong reference to the container object. | |
| calloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind calloc() Returns a new | |
| calloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind calloc(MemoryStack stack) Returns a new
| |
| calloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Returns a new
| |
| callocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind callocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind callocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| callocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| create | back to summary |
|---|---|
| protected VkSparseImageMemoryBind create(long address, ByteBuffer container) Implements abstract org. Doc from org. Similar to Effectively, every
| |
| create | back to summary |
|---|---|
| public static VkSparseImageMemoryBind create() Returns a new | |
| create | back to summary |
|---|---|
| public static VkSparseImageMemoryBind create(long address) Returns a new | |
| create | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Returns a new
| |
| create | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Create a
| |
| createSafe | back to summary |
|---|---|
| public static VkSparseImageMemoryBind createSafe(long address) Like
| |
| createSafe | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Like
| |
| extent | back to summary |
|---|---|
| public VkExtent3D extent() the size in texels of the region within the image subresource to bind. The extent must be a multiple of the sparse image block dimensions, except when binding sparse image blocks along the edge of an image subresource it can instead be such that any coordinate of | |
| extent | back to summary |
|---|---|
| public VkSparseImageMemoryBind extent(VkExtent3D value) Copies the specified | |
| extent | back to summary |
|---|---|
| public VkSparseImageMemoryBind extent(Consumer<VkExtent3D> consumer) | |
| flags | back to summary |
|---|---|
| public int flags() are sparse memory binding flags.
| |
| flags | back to summary |
|---|---|
| public VkSparseImageMemoryBind flags(int value) Sets the specified value to the | |
| malloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind malloc() Returns a new | |
| malloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind malloc(MemoryStack stack) Returns a new
| |
| malloc | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Returns a new
| |
| mallocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind mallocStack()
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind mallocStack(MemoryStack stack)
Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| mallocStack | back to summary |
|---|---|
| public static VkSparseImageMemoryBind. Deprecated
Deprecated for removal in 3.4.0. Use
| |
| memory | back to summary |
|---|---|
| public long memory() the
| |
| memory | back to summary |
|---|---|
| public VkSparseImageMemoryBind memory(long value) Sets the specified value to the | |
| memoryOffset | back to summary |
|---|---|
| public long memoryOffset() an offset into
| |
| memoryOffset | back to summary |
|---|---|
| public VkSparseImageMemoryBind memoryOffset(long value) Sets the specified value to the | |
| nextent | back to summary |
|---|---|
| public static VkExtent3D nextent(long struct) Unsafe version of | |
| nextent | back to summary |
|---|---|
| public static void nextent(long struct, VkExtent3D value) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static int nflags(long struct) Unsafe version of | |
| nflags | back to summary |
|---|---|
| public static void nflags(long struct, int value) Unsafe version of | |
| nmemory | back to summary |
|---|---|
| public static long nmemory(long struct) Unsafe version of | |
| nmemory | back to summary |
|---|---|
| public static void nmemory(long struct, long value) Unsafe version of | |
| nmemoryOffset | back to summary |
|---|---|
| public static long nmemoryOffset(long struct) Unsafe version of | |
| nmemoryOffset | back to summary |
|---|---|
| public static void nmemoryOffset(long struct, long value) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static VkOffset3D noffset(long struct) Unsafe version of | |
| noffset | back to summary |
|---|---|
| public static void noffset(long struct, VkOffset3D value) Unsafe version of | |
| nsubresource | back to summary |
|---|---|
| public static VkImageSubresource nsubresource(long struct) Unsafe version of | |
| nsubresource | back to summary |
|---|---|
| public static void nsubresource(long struct, VkImageSubresource value) Unsafe version of | |
| offset | back to summary |
|---|---|
| public VkOffset3D offset() are the coordinates of the first texel within the image subresource to bind. | |
| offset | back to summary |
|---|---|
| public VkSparseImageMemoryBind offset(VkOffset3D value) Copies the specified | |
| offset | back to summary |
|---|---|
| public VkSparseImageMemoryBind offset(Consumer<VkOffset3D> consumer) | |
| set | back to summary |
|---|---|
| public VkSparseImageMemoryBind set(VkImageSubresource subresource, VkOffset3D offset, VkExtent3D extent, long memory, long memoryOffset, int flags) Initializes this struct with the specified values. | |
| set | back to summary |
|---|---|
| public VkSparseImageMemoryBind set(VkSparseImageMemoryBind src) Copies the specified struct data to this struct.
| |
| sizeof | back to summary |
|---|---|
| public int sizeof() Implements abstract org. Doc from org. Returns
| |
| subresource | back to summary |
|---|---|
| public VkImageSubresource subresource() the image aspect and region of interest in the image. | |
| subresource | back to summary |
|---|---|
| public VkSparseImageMemoryBind subresource(VkImageSubresource value) Copies the specified | |
| subresource | back to summary |
|---|---|
| public VkSparseImageMemoryBind subresource(Consumer<VkImageSubresource> consumer) Passes the | |
VkSparseImageMemoryBind structs.
| Modifier and Type | Field and Description |
|---|---|
| private static final VkSparseImageMemoryBind |
| Access | Constructor and Description |
|---|---|
| public | Buffer(ByteBuffer container)
Creates a new |
| public | |
| pack-priv |
| ELEMENT_FACTORY | back to summary |
|---|---|
| private static final VkSparseImageMemoryBind ELEMENT_FACTORY | |
| Buffer | back to summary |
|---|---|
| public Buffer(ByteBuffer container) Creates a new Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values
will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided
by The created buffer instance holds a strong reference to the container object. | |
| Buffer | back to summary |
|---|---|
| public Buffer(long address, int cap) | |
| Buffer | back to summary |
|---|---|
| pack-priv Buffer(long address, ByteBuffer container, int mark, int pos, int lim, int cap) | |
| extent | back to summary |
|---|---|
public VkExtent3D extent()
| |
| extent | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Copies the specified | |
| extent | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Passes the | |
| flags | back to summary |
|---|---|
public int flags()
| |
| flags | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Sets the specified value to the | |
| getElementFactory | back to summary |
|---|---|
| protected VkSparseImageMemoryBind getElementFactory() Implements abstract org.
| |
| memory | back to summary |
|---|---|
public long memory()
| |
| memory | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Sets the specified value to the | |
| memoryOffset | back to summary |
|---|---|
public long memoryOffset()
| |
| memoryOffset | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Sets the specified value to the | |
| offset | back to summary |
|---|---|
public VkOffset3D offset()
| |
| offset | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Copies the specified | |
| offset | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Passes the | |
| self | back to summary |
|---|---|
| protected VkSparseImageMemoryBind. Implements abstract org.
| |
| subresource | back to summary |
|---|---|
public VkImageSubresource subresource()
| |
| subresource | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Copies the specified | |
| subresource | back to summary |
|---|---|
| public VkSparseImageMemoryBind. Passes the | |