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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe 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 aVkSparseImageMemoryBindinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseImageMemoryBindcalloc()Returns a newVkSparseImageMemoryBindinstance allocated withmemCalloc.calloc(int capacity) Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withmemCalloc.calloc(int capacity, MemoryStack stack) Returns a newVkSparseImageMemoryBind.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageMemoryBindcalloc(MemoryStack stack) Returns a newVkSparseImageMemoryBindinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkSparseImageMemoryBindDeprecated.callocStack(int capacity) Deprecated.callocStack(int capacity, MemoryStack stack) Deprecated.static VkSparseImageMemoryBindcallocStack(MemoryStack stack) Deprecated.static VkSparseImageMemoryBindcreate()Returns a newVkSparseImageMemoryBindinstance allocated withBufferUtils.create(int capacity) Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withBufferUtils.static VkSparseImageMemoryBindcreate(long address) Returns a newVkSparseImageMemoryBindinstance for the specified memory address.create(long address, int capacity) Create aVkSparseImageMemoryBind.Bufferinstance at the specified memory.static @Nullable VkSparseImageMemoryBindcreateSafe(long address) static @Nullable VkSparseImageMemoryBind.BuffercreateSafe(long address, int capacity) extent()extent(Consumer<VkExtent3D> consumer) Passes theextentfield to the specifiedConsumer.extent(VkExtent3D value) Copies the specifiedVkExtent3Dto theextentfield.intflags()flags(int value) Sets the specified value to theflagsfield.static VkSparseImageMemoryBindmalloc()Returns a newVkSparseImageMemoryBindinstance allocated withmemAlloc.malloc(int capacity) Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withmemAlloc.malloc(int capacity, MemoryStack stack) Returns a newVkSparseImageMemoryBind.Bufferinstance allocated on the specifiedMemoryStack.static VkSparseImageMemoryBindmalloc(MemoryStack stack) Returns a newVkSparseImageMemoryBindinstance allocated on the specifiedMemoryStack.static VkSparseImageMemoryBindDeprecated.mallocStack(int capacity) Deprecated.mallocStack(int capacity, MemoryStack stack) Deprecated.static VkSparseImageMemoryBindmallocStack(MemoryStack stack) Deprecated.longmemory()memory(long value) Sets the specified value to thememoryfield.longmemoryOffset(long value) Sets the specified value to thememoryOffsetfield.static VkExtent3Dnextent(long struct) Unsafe version ofextent().static voidnextent(long struct, VkExtent3D value) Unsafe version ofextent.static intnflags(long struct) Unsafe version offlags().static voidnflags(long struct, int value) Unsafe version offlags.static longnmemory(long struct) Unsafe version ofmemory().static voidnmemory(long struct, long value) Unsafe version ofmemory.static longnmemoryOffset(long struct) Unsafe version ofmemoryOffset().static voidnmemoryOffset(long struct, long value) Unsafe version ofmemoryOffset.static VkOffset3Dnoffset(long struct) Unsafe version ofoffset().static voidnoffset(long struct, VkOffset3D value) Unsafe version ofoffset.static VkImageSubresourcensubresource(long struct) Unsafe version ofsubresource().static voidnsubresource(long struct, VkImageSubresource value) Unsafe version ofsubresource.offset()offset(Consumer<VkOffset3D> consumer) Passes theoffsetfield to the specifiedConsumer.offset(VkOffset3D value) Copies the specifiedVkOffset3Dto theoffsetfield.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.intsizeof()Returnssizeof(struct).subresource(Consumer<VkImageSubresource> consumer) Passes thesubresourcefield to the specifiedConsumer.subresource(VkImageSubresource value) Copies the specifiedVkImageSubresourceto thesubresourcefield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 aVkSparseImageMemoryBindinstance 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
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkSparseImageMemoryBind>
-
subresource
- Returns:
- a
VkImageSubresourceview of thesubresourcefield.
-
offset
- Returns:
- a
VkOffset3Dview of theoffsetfield.
-
extent
- Returns:
- a
VkExtent3Dview of theextentfield.
-
memory
public long memory()- Returns:
- the value of the
memoryfield.
-
memoryOffset
public long memoryOffset()- Returns:
- the value of the
memoryOffsetfield.
-
flags
public int flags()- Returns:
- the value of the
flagsfield.
-
subresource
Copies the specifiedVkImageSubresourceto thesubresourcefield. -
subresource
Passes thesubresourcefield to the specifiedConsumer. -
offset
Copies the specifiedVkOffset3Dto theoffsetfield. -
offset
Passes theoffsetfield to the specifiedConsumer. -
extent
Copies the specifiedVkExtent3Dto theextentfield. -
extent
Passes theextentfield to the specifiedConsumer. -
memory
Sets the specified value to thememoryfield. -
memoryOffset
Sets the specified value to thememoryOffsetfield. -
flags
Sets the specified value to theflagsfield. -
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 newVkSparseImageMemoryBindinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkSparseImageMemoryBindinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkSparseImageMemoryBindinstance allocated withBufferUtils. -
create
Returns a newVkSparseImageMemoryBindinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkSparseImageMemoryBind.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkSparseImageMemoryBind.Bufferinstance 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 newVkSparseImageMemoryBindinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkSparseImageMemoryBindinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkSparseImageMemoryBind.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkSparseImageMemoryBind.Bufferinstance allocated on the specifiedMemoryStackand 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.
-