Class VkRefreshObjectKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkRefreshObjectKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkRefreshObjectKHR.Buffer
Layout
struct VkRefreshObjectKHR {
(int) VkObjectType objectType;
uint64_t objectHandle;
((uint32_t) VkFlags) VkRefreshObjectFlagsKHR flags;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkRefreshObjectKHR
.static final MemoryLayout
The memory layout offlags
.static final MemoryLayout
The memory layout ofobjectHandle
.static final MemoryLayout
The memory layout ofobjectType
.static final long
The byte offset offlags
.static final long
The byte offset ofobjectHandle
.static final long
The byte offset ofobjectType
.static final VarHandle
static final VarHandle
TheVarHandle
ofobjectHandle
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
-
Constructor Summary
ConstructorsConstructorDescriptionVkRefreshObjectKHR
(MemorySegment segment) CreatesVkRefreshObjectKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkRefreshObjectKHR
alloc
(SegmentAllocator allocator) Allocates aVkRefreshObjectKHR
with the given segment allocator.static VkRefreshObjectKHR.Buffer
alloc
(SegmentAllocator allocator, long count) Allocates aVkRefreshObjectKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.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
ReturnsobjectHandle
.objectHandle
(long value) SetsobjectHandle
with the given value.static long
objectHandle
(MemorySegment segment, long index) ReturnsobjectHandle
at the given index.static void
objectHandle
(MemorySegment segment, long index, long value) SetsobjectHandle
with the given value at the given index.int
ReturnsobjectType
.objectType
(int value) SetsobjectType
with the given value.static int
objectType
(MemorySegment segment, long index) ReturnsobjectType
at the given index.static void
objectType
(MemorySegment segment, long index, int value) SetsobjectType
with the given value at the given index.static VkRefreshObjectKHR.Buffer
of
(MemorySegment segment) CreatesVkRefreshObjectKHR
with the given segment.static VkRefreshObjectKHR
ofNative
(MemorySegment segment) CreatesVkRefreshObjectKHR
with the given segment.static VkRefreshObjectKHR.Buffer
ofNative
(MemorySegment segment, long count) CreatesVkRefreshObjectKHR
with the given segment.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkRefreshObjectKHR
. -
OFFSET_objectType
public static final long OFFSET_objectTypeThe byte offset ofobjectType
. -
LAYOUT_objectType
The memory layout ofobjectType
. -
VH_objectType
-
OFFSET_objectHandle
public static final long OFFSET_objectHandleThe byte offset ofobjectHandle
. -
LAYOUT_objectHandle
The memory layout ofobjectHandle
. -
VH_objectHandle
-
OFFSET_flags
public static final long OFFSET_flagsThe byte offset offlags
. -
LAYOUT_flags
The memory layout offlags
. -
VH_flags
-
-
Constructor Details
-
VkRefreshObjectKHR
CreatesVkRefreshObjectKHR
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkRefreshObjectKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkRefreshObjectKHR
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
VkRefreshObjectKHR
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 aVkRefreshObjectKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkRefreshObjectKHR
-
alloc
Allocates aVkRefreshObjectKHR
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkRefreshObjectKHR
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
-
objectType
ReturnsobjectType
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
objectType
at the given index
-
objectType
public int objectType()ReturnsobjectType
.- Returns:
objectType
-
objectType
SetsobjectType
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
objectType
SetsobjectType
with the given value.- Parameters:
value
- the value- Returns:
this
-
objectHandle
ReturnsobjectHandle
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
objectHandle
at the given index
-
objectHandle
public long objectHandle()ReturnsobjectHandle
.- Returns:
objectHandle
-
objectHandle
SetsobjectHandle
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
objectHandle
SetsobjectHandle
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
-