Class VkDisplayPlanePropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayPlanePropertiesKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkDisplayPlanePropertiesKHR.Buffer
public sealed class VkDisplayPlanePropertiesKHR
extends GroupType
permits VkDisplayPlanePropertiesKHR.Buffer
Layout
struct VkDisplayPlanePropertiesKHR {
(uint64_t) VkDisplayKHR currentDisplay;
uint32_t currentStackIndex;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkDisplayPlanePropertiesKHR
.static final MemoryLayout
The memory layout ofcurrentDisplay
.static final MemoryLayout
The memory layout ofcurrentStackIndex
.static final long
The byte offset ofcurrentDisplay
.static final long
The byte offset ofcurrentStackIndex
.static final VarHandle
TheVarHandle
ofcurrentDisplay
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofcurrentStackIndex
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayPlanePropertiesKHR
(MemorySegment segment) CreatesVkDisplayPlanePropertiesKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayPlanePropertiesKHR
alloc
(SegmentAllocator allocator) Allocates aVkDisplayPlanePropertiesKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkDisplayPlanePropertiesKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.long
ReturnscurrentDisplay
.currentDisplay
(long value) SetscurrentDisplay
with the given value.static long
currentDisplay
(MemorySegment segment, long index) ReturnscurrentDisplay
at the given index.static void
currentDisplay
(MemorySegment segment, long index, long value) SetscurrentDisplay
with the given value at the given index.int
ReturnscurrentStackIndex
.currentStackIndex
(int value) SetscurrentStackIndex
with the given value.static int
currentStackIndex
(MemorySegment segment, long index) ReturnscurrentStackIndex
at the given index.static void
currentStackIndex
(MemorySegment segment, long index, int value) SetscurrentStackIndex
with the given value at the given index.of
(MemorySegment segment) CreatesVkDisplayPlanePropertiesKHR
with the given segment.static VkDisplayPlanePropertiesKHR
ofNative
(MemorySegment segment) CreatesVkDisplayPlanePropertiesKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkDisplayPlanePropertiesKHR
with the given segment.Methods inherited from class overrungl.struct.GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkDisplayPlanePropertiesKHR
. -
OFFSET_currentDisplay
public static final long OFFSET_currentDisplayThe byte offset ofcurrentDisplay
. -
LAYOUT_currentDisplay
The memory layout ofcurrentDisplay
. -
VH_currentDisplay
-
OFFSET_currentStackIndex
public static final long OFFSET_currentStackIndexThe byte offset ofcurrentStackIndex
. -
LAYOUT_currentStackIndex
The memory layout ofcurrentStackIndex
. -
VH_currentStackIndex
-
-
Constructor Details
-
VkDisplayPlanePropertiesKHR
CreatesVkDisplayPlanePropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkDisplayPlanePropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkDisplayPlanePropertiesKHR
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
VkDisplayPlanePropertiesKHR
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 aVkDisplayPlanePropertiesKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkDisplayPlanePropertiesKHR
-
alloc
Allocates aVkDisplayPlanePropertiesKHR
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkDisplayPlanePropertiesKHR
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
currentDisplay
ReturnscurrentDisplay
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
currentDisplay
at the given index
-
currentDisplay
public long currentDisplay()ReturnscurrentDisplay
.- Returns:
currentDisplay
-
currentDisplay
SetscurrentDisplay
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
currentDisplay
SetscurrentDisplay
with the given value.- Parameters:
value
- the value- Returns:
this
-
currentStackIndex
ReturnscurrentStackIndex
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
currentStackIndex
at the given index
-
currentStackIndex
public int currentStackIndex()ReturnscurrentStackIndex
.- Returns:
currentStackIndex
-
currentStackIndex
SetscurrentStackIndex
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
currentStackIndex
SetscurrentStackIndex
with the given value.- Parameters:
value
- the value- Returns:
this
-