Package org.lwjgl.vulkan
Class VkSparseImageMemoryBind
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
public class VkSparseImageMemoryBind
extends Struct<VkSparseImageMemoryBind>
implements NativeResource
struct VkSparseImageMemoryBind {
{@link VkImageSubresource VkImageSubresource} subresource;
{@link VkOffset3D VkOffset3D} offset;
{@link VkExtent3D VkExtent3D} extent;
VkDeviceMemory memory;
VkDeviceSize memoryOffset;
VkSparseMemoryBindFlags flags;
}
-
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
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkSparseImageMemoryBind
(ByteBuffer container) Creates aVkSparseImageMemoryBind
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseImageMemoryBind
calloc()
Returns a newVkSparseImageMemoryBind
instance allocated withmemCalloc
.calloc
(int capacity) Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withmemCalloc
.calloc
(int capacity, MemoryStack stack) Returns a newVkSparseImageMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseImageMemoryBind
calloc
(MemoryStack stack) Returns a newVkSparseImageMemoryBind
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkSparseImageMemoryBind
Deprecated.callocStack
(int capacity) Deprecated.callocStack
(int capacity, MemoryStack stack) Deprecated.static VkSparseImageMemoryBind
callocStack
(MemoryStack stack) Deprecated.static VkSparseImageMemoryBind
create()
Returns a newVkSparseImageMemoryBind
instance allocated withBufferUtils
.create
(int capacity) Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withBufferUtils
.static VkSparseImageMemoryBind
create
(long address) Returns a newVkSparseImageMemoryBind
instance for the specified memory address.create
(long address, int capacity) Create aVkSparseImageMemoryBind.Buffer
instance at the specified memory.static @Nullable VkSparseImageMemoryBind
createSafe
(long address) static @Nullable VkSparseImageMemoryBind.Buffer
createSafe
(long address, int capacity) extent()
extent
(Consumer<VkExtent3D> consumer) Passes theextent
field to the specifiedConsumer
.extent
(VkExtent3D value) Copies the specifiedVkExtent3D
to theextent
field.int
flags()
flags
(int value) Sets the specified value to theflags
field.static VkSparseImageMemoryBind
malloc()
Returns a newVkSparseImageMemoryBind
instance allocated withmemAlloc
.malloc
(int capacity) Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withmemAlloc
.malloc
(int capacity, MemoryStack stack) Returns a newVkSparseImageMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
.static VkSparseImageMemoryBind
malloc
(MemoryStack stack) Returns a newVkSparseImageMemoryBind
instance allocated on the specifiedMemoryStack
.static VkSparseImageMemoryBind
Deprecated.mallocStack
(int capacity) Deprecated.mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkSparseImageMemoryBind
mallocStack
(MemoryStack stack) Deprecated.long
memory()
memory
(long value) Sets the specified value to thememory
field.long
memoryOffset
(long value) Sets the specified value to thememoryOffset
field.static VkExtent3D
nextent
(long struct) Unsafe version ofextent()
.static void
nextent
(long struct, VkExtent3D value) Unsafe version ofextent
.static int
nflags
(long struct) Unsafe version offlags()
.static void
nflags
(long struct, int value) Unsafe version offlags
.static long
nmemory
(long struct) Unsafe version ofmemory()
.static void
nmemory
(long struct, long value) Unsafe version ofmemory
.static long
nmemoryOffset
(long struct) Unsafe version ofmemoryOffset()
.static void
nmemoryOffset
(long struct, long value) Unsafe version ofmemoryOffset
.static VkOffset3D
noffset
(long struct) Unsafe version ofoffset()
.static void
noffset
(long struct, VkOffset3D value) Unsafe version ofoffset
.static VkImageSubresource
nsubresource
(long struct) Unsafe version ofsubresource()
.static void
nsubresource
(long struct, VkImageSubresource value) Unsafe version ofsubresource
.offset()
offset
(Consumer<VkOffset3D> consumer) Passes theoffset
field to the specifiedConsumer
.offset
(VkOffset3D value) Copies the specifiedVkOffset3D
to theoffset
field.set
(VkImageSubresource subresource, VkOffset3D offset, VkExtent3D extent, long memory, long memoryOffset, int flags) Initializes this struct with the specified values.Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.subresource
(Consumer<VkImageSubresource> consumer) Passes thesubresource
field to the specifiedConsumer
.subresource
(VkImageSubresource value) Copies the specifiedVkImageSubresource
to thesubresource
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
SUBRESOURCE
public static final int SUBRESOURCEThe struct member offsets. -
OFFSET
public static final int OFFSETThe struct member offsets. -
EXTENT
public static final int EXTENTThe struct member offsets. -
MEMORY
public static final int MEMORYThe struct member offsets. -
MEMORYOFFSET
public static final int MEMORYOFFSETThe struct member offsets. -
FLAGS
public static final int FLAGSThe struct member offsets.
-
-
Constructor Details
-
VkSparseImageMemoryBind
Creates aVkSparseImageMemoryBind
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
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkSparseImageMemoryBind>
-
subresource
- Returns:
- a
VkImageSubresource
view of thesubresource
field.
-
offset
- Returns:
- a
VkOffset3D
view of theoffset
field.
-
extent
- Returns:
- a
VkExtent3D
view of theextent
field.
-
memory
public long memory()- Returns:
- the value of the
memory
field.
-
memoryOffset
public long memoryOffset()- Returns:
- the value of the
memoryOffset
field.
-
flags
public int flags()- Returns:
- the value of the
flags
field.
-
subresource
Copies the specifiedVkImageSubresource
to thesubresource
field. -
subresource
Passes thesubresource
field to the specifiedConsumer
. -
offset
Copies the specifiedVkOffset3D
to theoffset
field. -
offset
Passes theoffset
field to the specifiedConsumer
. -
extent
Copies the specifiedVkExtent3D
to theextent
field. -
extent
Passes theextent
field to the specifiedConsumer
. -
memory
Sets the specified value to thememory
field. -
memoryOffset
Sets the specified value to thememoryOffset
field. -
flags
Sets the specified value to theflags
field. -
set
public VkSparseImageMemoryBind set(VkImageSubresource subresource, VkOffset3D offset, VkExtent3D extent, long memory, long memoryOffset, int flags) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkSparseImageMemoryBind
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkSparseImageMemoryBind
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkSparseImageMemoryBind
instance allocated withBufferUtils
. -
create
Returns a newVkSparseImageMemoryBind
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkSparseImageMemoryBind.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkSparseImageMemoryBind.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
@Deprecated public static VkSparseImageMemoryBind.Buffer mallocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
@Deprecated public static VkSparseImageMemoryBind.Buffer callocStack(int capacity, MemoryStack stack) Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkSparseImageMemoryBind
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkSparseImageMemoryBind
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkSparseImageMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkSparseImageMemoryBind.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsubresource
Unsafe version ofsubresource()
. -
noffset
Unsafe version ofoffset()
. -
nextent
Unsafe version ofextent()
. -
nmemory
public static long nmemory(long struct) Unsafe version ofmemory()
. -
nmemoryOffset
public static long nmemoryOffset(long struct) Unsafe version ofmemoryOffset()
. -
nflags
public static int nflags(long struct) Unsafe version offlags()
. -
nsubresource
Unsafe version ofsubresource
. -
noffset
Unsafe version ofoffset
. -
nextent
Unsafe version ofextent
. -
nmemory
public static void nmemory(long struct, long value) Unsafe version ofmemory
. -
nmemoryOffset
public static void nmemoryOffset(long struct, long value) Unsafe version ofmemoryOffset
. -
nflags
public static void nflags(long struct, int value) Unsafe version offlags
.
-