Class VkSparseImageMemoryBind
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.struct.VkSparseImageMemoryBind
- All Implemented Interfaces:
Addressable
Represents VkSparseImageMemoryBind.
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;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkSparseImageMemoryBind.static final MemoryLayoutThe memory layout ofextent.static final MemoryLayoutThe memory layout offlags.static final MemoryLayoutThe memory layout ofmemory.static final MemoryLayoutThe memory layout ofmemoryOffset.static final MemoryLayoutThe memory layout ofoffset.static final MemoryLayoutThe memory layout ofsubresource.static final longThe byte offset ofextent.static final longThe byte offset offlags.static final longThe byte offset ofmemory.static final longThe byte offset ofmemoryOffset.static final longThe byte offset ofoffset.static final longThe byte offset ofsubresource.static final VarHandlestatic final VarHandlestatic final VarHandleTheVarHandleofmemoryOffsetof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkSparseImageMemoryBind(MemorySegment segment, long elementCount) CreatesVkSparseImageMemoryBindwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkSparseImageMemoryBindalloc(SegmentAllocator allocator) Allocates aVkSparseImageMemoryBindwith the given segment allocator.static VkSparseImageMemoryBindalloc(SegmentAllocator allocator, long count) Allocates aVkSparseImageMemoryBindwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkSparseImageMemoryBind.asSlice(long index, long count) Creates a slice ofVkSparseImageMemoryBind.at(long index, Consumer<VkSparseImageMemoryBind> func) VisitsVkSparseImageMemoryBindbuffer at the given index.Copies from the given source.extent()Returnsextent.extent(MemorySegment value) Setsextentwith the given value.static MemorySegmentextent(MemorySegment segment, long index) Returnsextentat the given index.static voidextent(MemorySegment segment, long index, MemorySegment value) Setsextentwith the given value at the given index.extent(Consumer<VkExtent3D> func) Acceptsextentwith the given function.extentAt(long index) Returnsextentat the given index.extentAt(long index, MemorySegment value) Setsextentwith the given value at the given index.extentAt(long index, Consumer<VkExtent3D> func) Acceptsextentwith the given function.intflags()Returnsflags.flags(int value) Setsflagswith the given value.static intflags(MemorySegment segment, long index) Returnsflagsat the given index.static voidflags(MemorySegment segment, long index, int value) Setsflagswith the given value at the given index.intflagsAt(long index) Returnsflagsat the given index.flagsAt(long index, int value) Setsflagswith the given value at the given index.longmemory()Returnsmemory.memory(long value) Setsmemorywith the given value.static longmemory(MemorySegment segment, long index) Returnsmemoryat the given index.static voidmemory(MemorySegment segment, long index, long value) Setsmemorywith the given value at the given index.longmemoryAt(long index) Returnsmemoryat the given index.memoryAt(long index, long value) Setsmemorywith the given value at the given index.longReturnsmemoryOffset.memoryOffset(long value) SetsmemoryOffsetwith the given value.static longmemoryOffset(MemorySegment segment, long index) ReturnsmemoryOffsetat the given index.static voidmemoryOffset(MemorySegment segment, long index, long value) SetsmemoryOffsetwith the given value at the given index.longmemoryOffsetAt(long index) ReturnsmemoryOffsetat the given index.memoryOffsetAt(long index, long value) SetsmemoryOffsetwith the given value at the given index.static VkSparseImageMemoryBindof(MemorySegment segment) CreatesVkSparseImageMemoryBindwith the given segment.offset()Returnsoffset.offset(MemorySegment value) Setsoffsetwith the given value.static MemorySegmentoffset(MemorySegment segment, long index) Returnsoffsetat the given index.static voidoffset(MemorySegment segment, long index, MemorySegment value) Setsoffsetwith the given value at the given index.offset(Consumer<VkOffset3D> func) Acceptsoffsetwith the given function.offsetAt(long index) Returnsoffsetat the given index.offsetAt(long index, MemorySegment value) Setsoffsetwith the given value at the given index.offsetAt(long index, Consumer<VkOffset3D> func) Acceptsoffsetwith the given function.static VkSparseImageMemoryBindofNative(MemorySegment segment) CreatesVkSparseImageMemoryBindwith the given segment.static VkSparseImageMemoryBindofNative(MemorySegment segment, long count) CreatesVkSparseImageMemoryBindwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.Returnssubresource.subresource(MemorySegment value) Setssubresourcewith the given value.static MemorySegmentsubresource(MemorySegment segment, long index) Returnssubresourceat the given index.static voidsubresource(MemorySegment segment, long index, MemorySegment value) Setssubresourcewith the given value at the given index.Acceptssubresourcewith the given function.subresourceAt(long index) Returnssubresourceat the given index.subresourceAt(long index, MemorySegment value) Setssubresourcewith the given value at the given index.subresourceAt(long index, Consumer<VkImageSubresource> func) Acceptssubresourcewith the given function.Methods inherited from class 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
CreatesVkSparseImageMemoryBindwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkSparseImageMemoryBindwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkSparseImageMemoryBindwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkSparseImageMemoryBindwith the given segment.Reinterprets the segment if zero-length.
- Parameters:
segment- the memory segmentcount- the count of the buffer- Returns:
- the created instance or
nullif the segment isNULL
-
alloc
Allocates aVkSparseImageMemoryBindwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkSparseImageMemoryBind
-
alloc
Allocates aVkSparseImageMemoryBindwith 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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
subresource
Returnssubresourceat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
subresourceat the given index
-
subresource
-
subresource
Setssubresourcewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
subresource
Setssubresourcewith the given value.- Parameters:
value- the value- Returns:
this
-
subresource
Acceptssubresourcewith the given function.- Parameters:
func- the function- Returns:
this
-
offset
Returnsoffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
offsetat the given index
-
offset
-
offset
Setsoffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
offset
Setsoffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
offset
Acceptsoffsetwith the given function.- Parameters:
func- the function- Returns:
this
-
extent
Returnsextentat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
extentat the given index
-
extent
-
extent
Setsextentwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
extent
Setsextentwith the given value.- Parameters:
value- the value- Returns:
this
-
extent
Acceptsextentwith the given function.- Parameters:
func- the function- Returns:
this
-
memory
Returnsmemoryat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
memoryat the given index
-
memory
public long memory()Returnsmemory.- Returns:
memory
-
memory
Setsmemorywith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
memory
Setsmemorywith the given value.- Parameters:
value- the value- Returns:
this
-
memoryOffset
ReturnsmemoryOffsetat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
memoryOffsetat the given index
-
memoryOffset
public long memoryOffset()ReturnsmemoryOffset.- Returns:
memoryOffset
-
memoryOffset
SetsmemoryOffsetwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
memoryOffset
SetsmemoryOffsetwith the given value.- Parameters:
value- the value- Returns:
this
-
flags
Returnsflagsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
flagsat the given index
-
flags
public int flags()Returnsflags.- Returns:
flags
-
flags
Setsflagswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
flags
Setsflagswith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkSparseImageMemoryBind.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkSparseImageMemoryBind
-
asSlice
Creates a slice ofVkSparseImageMemoryBind.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkSparseImageMemoryBind
-
at
VisitsVkSparseImageMemoryBindbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
subresourceAt
Returnssubresourceat the given index.- Parameters:
index- the index of the struct buffer- Returns:
subresourceat the given index
-
subresourceAt
Setssubresourcewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
subresourceAt
Acceptssubresourcewith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
offsetAt
Returnsoffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
offsetat the given index
-
offsetAt
Setsoffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
offsetAt
Acceptsoffsetwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
extentAt
Returnsextentat the given index.- Parameters:
index- the index of the struct buffer- Returns:
extentat the given index
-
extentAt
Setsextentwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
extentAt
Acceptsextentwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
memoryAt
public long memoryAt(long index) Returnsmemoryat the given index.- Parameters:
index- the index of the struct buffer- Returns:
memoryat the given index
-
memoryAt
Setsmemorywith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
memoryOffsetAt
public long memoryOffsetAt(long index) ReturnsmemoryOffsetat the given index.- Parameters:
index- the index of the struct buffer- Returns:
memoryOffsetat the given index
-
memoryOffsetAt
SetsmemoryOffsetwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
flagsAt
public int flagsAt(long index) Returnsflagsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
flagsat the given index
-
flagsAt
Setsflagswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-