Class VkSparseImageMemoryBind
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkSparseImageMemoryBind
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkSparseImageMemoryBind.Buffer
public sealed class VkSparseImageMemoryBind
extends GroupType
permits VkSparseImageMemoryBind.Buffer
Layout
struct VkSparseImageMemoryBind {
(struct VkImageSubresource) VkImageSubresource subresource;
(struct VkOffset3D) VkOffset3D offset;
(struct VkExtent3D) VkExtent3D extent;
(uint64_t) VkDeviceMemory memory;
(uint64_t) VkDeviceSize memoryOffset;
((uint32_t) VkFlags) VkSparseMemoryBindFlags flags;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkSparseImageMemoryBind
.static final MemoryLayout
The memory layout ofextent
.static final MemoryLayout
The memory layout offlags
.static final MemoryLayout
The memory layout ofmemory
.static final MemoryLayout
The memory layout ofmemoryOffset
.static final MemoryLayout
The memory layout ofoffset
.static final MemoryLayout
The memory layout ofsubresource
.static final long
The byte offset ofextent
.static final long
The byte offset offlags
.static final long
The byte offset ofmemory
.static final long
The byte offset ofmemoryOffset
.static final long
The byte offset ofoffset
.static final long
The byte offset ofsubresource
.static final VarHandle
static final VarHandle
static final VarHandle
TheVarHandle
ofmemoryOffset
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkSparseImageMemoryBind
(MemorySegment segment) CreatesVkSparseImageMemoryBind
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseImageMemoryBind
alloc
(SegmentAllocator allocator) Allocates aVkSparseImageMemoryBind
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkSparseImageMemoryBind
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.extent()
Returnsextent
.extent
(MemorySegment value) Setsextent
with the given value.static MemorySegment
extent
(MemorySegment segment, long index) Returnsextent
at the given index.static void
extent
(MemorySegment segment, long index, MemorySegment value) Setsextent
with the given value at the given index.int
flags()
Returnsflags
.flags
(int value) Setsflags
with the given value.static int
flags
(MemorySegment segment, long index) Returnsflags
at the given index.static void
flags
(MemorySegment segment, long index, int value) Setsflags
with the given value at the given index.long
memory()
Returnsmemory
.memory
(long value) Setsmemory
with the given value.static long
memory
(MemorySegment segment, long index) Returnsmemory
at the given index.static void
memory
(MemorySegment segment, long index, long value) Setsmemory
with the given value at the given index.long
ReturnsmemoryOffset
.memoryOffset
(long value) SetsmemoryOffset
with the given value.static long
memoryOffset
(MemorySegment segment, long index) ReturnsmemoryOffset
at the given index.static void
memoryOffset
(MemorySegment segment, long index, long value) SetsmemoryOffset
with the given value at the given index.of
(MemorySegment segment) CreatesVkSparseImageMemoryBind
with the given segment.offset()
Returnsoffset
.offset
(MemorySegment value) Setsoffset
with the given value.static MemorySegment
offset
(MemorySegment segment, long index) Returnsoffset
at the given index.static void
offset
(MemorySegment segment, long index, MemorySegment value) Setsoffset
with the given value at the given index.static VkSparseImageMemoryBind
ofNative
(MemorySegment segment) CreatesVkSparseImageMemoryBind
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkSparseImageMemoryBind
with the given segment.Returnssubresource
.subresource
(MemorySegment value) Setssubresource
with the given value.static MemorySegment
subresource
(MemorySegment segment, long index) Returnssubresource
at the given index.static void
subresource
(MemorySegment segment, long index, MemorySegment value) Setssubresource
with the given value at the given index.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkSparseImageMemoryBind
. -
OFFSET_subresource
public static final long OFFSET_subresourceThe byte offset ofsubresource
. -
LAYOUT_subresource
The memory layout ofsubresource
. -
OFFSET_offset
public static final long OFFSET_offsetThe byte offset ofoffset
. -
LAYOUT_offset
The memory layout ofoffset
. -
OFFSET_extent
public static final long OFFSET_extentThe byte offset ofextent
. -
LAYOUT_extent
The memory layout ofextent
. -
OFFSET_memory
public static final long OFFSET_memoryThe byte offset ofmemory
. -
LAYOUT_memory
The memory layout ofmemory
. -
VH_memory
-
OFFSET_memoryOffset
public static final long OFFSET_memoryOffsetThe byte offset ofmemoryOffset
. -
LAYOUT_memoryOffset
The memory layout ofmemoryOffset
. -
VH_memoryOffset
-
OFFSET_flags
public static final long OFFSET_flagsThe byte offset offlags
. -
LAYOUT_flags
The memory layout offlags
. -
VH_flags
-
-
Constructor Details
-
VkSparseImageMemoryBind
CreatesVkSparseImageMemoryBind
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkSparseImageMemoryBind
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkSparseImageMemoryBind
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkSparseImageMemoryBind
with the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment
- the memory segmentcount
- the count of the buffer- Returns:
- the created instance or
null
if the segment isNULL
-
alloc
Allocates aVkSparseImageMemoryBind
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkSparseImageMemoryBind
-
alloc
Allocates aVkSparseImageMemoryBind
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkSparseImageMemoryBind
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
subresource
Returnssubresource
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
subresource
at the given index
-
subresource
-
subresource
Setssubresource
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
subresource
Setssubresource
with the given value.- Parameters:
value
- the value- Returns:
this
-
offset
Returnsoffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
offset
at the given index
-
offset
-
offset
Setsoffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
offset
Setsoffset
with the given value.- Parameters:
value
- the value- Returns:
this
-
extent
Returnsextent
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
extent
at the given index
-
extent
-
extent
Setsextent
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
extent
Setsextent
with the given value.- Parameters:
value
- the value- Returns:
this
-
memory
Returnsmemory
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
memory
at the given index
-
memory
public long memory()Returnsmemory
.- Returns:
memory
-
memory
Setsmemory
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
memory
Setsmemory
with the given value.- Parameters:
value
- the value- Returns:
this
-
memoryOffset
ReturnsmemoryOffset
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
memoryOffset
at the given index
-
memoryOffset
public long memoryOffset()ReturnsmemoryOffset
.- Returns:
memoryOffset
-
memoryOffset
SetsmemoryOffset
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
memoryOffset
SetsmemoryOffset
with the given value.- Parameters:
value
- the value- Returns:
this
-
flags
Returnsflags
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
flags
at the given index
-
flags
public int flags()Returnsflags
.- Returns:
flags
-
flags
Setsflags
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
flags
Setsflags
with the given value.- Parameters:
value
- the value- Returns:
this
-