Class VkDisplayPlanePropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayPlanePropertiesKHR
- All Implemented Interfaces:
Addressable
Represents VkDisplayPlanePropertiesKHR.
Layout
struct VkDisplayPlanePropertiesKHR {
(uint64_t) VkDisplayKHR currentDisplay;
uint32_t currentStackIndex;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkDisplayPlanePropertiesKHR.static final MemoryLayoutThe memory layout ofcurrentDisplay.static final MemoryLayoutThe memory layout ofcurrentStackIndex.static final longThe byte offset ofcurrentDisplay.static final longThe byte offset ofcurrentStackIndex.static final VarHandleTheVarHandleofcurrentDisplayof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofcurrentStackIndexof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayPlanePropertiesKHR(MemorySegment segment, long elementCount) CreatesVkDisplayPlanePropertiesKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayPlanePropertiesKHRalloc(SegmentAllocator allocator) Allocates aVkDisplayPlanePropertiesKHRwith the given segment allocator.static VkDisplayPlanePropertiesKHRalloc(SegmentAllocator allocator, long count) Allocates aVkDisplayPlanePropertiesKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkDisplayPlanePropertiesKHR.asSlice(long index, long count) Creates a slice ofVkDisplayPlanePropertiesKHR.at(long index, Consumer<VkDisplayPlanePropertiesKHR> func) VisitsVkDisplayPlanePropertiesKHRbuffer at the given index.Copies from the given source.longReturnscurrentDisplay.currentDisplay(long value) SetscurrentDisplaywith the given value.static longcurrentDisplay(MemorySegment segment, long index) ReturnscurrentDisplayat the given index.static voidcurrentDisplay(MemorySegment segment, long index, long value) SetscurrentDisplaywith the given value at the given index.longcurrentDisplayAt(long index) ReturnscurrentDisplayat the given index.currentDisplayAt(long index, long value) SetscurrentDisplaywith the given value at the given index.intReturnscurrentStackIndex.currentStackIndex(int value) SetscurrentStackIndexwith the given value.static intcurrentStackIndex(MemorySegment segment, long index) ReturnscurrentStackIndexat the given index.static voidcurrentStackIndex(MemorySegment segment, long index, int value) SetscurrentStackIndexwith the given value at the given index.intcurrentStackIndexAt(long index) ReturnscurrentStackIndexat the given index.currentStackIndexAt(long index, int value) SetscurrentStackIndexwith the given value at the given index.static VkDisplayPlanePropertiesKHRof(MemorySegment segment) CreatesVkDisplayPlanePropertiesKHRwith the given segment.static VkDisplayPlanePropertiesKHRofNative(MemorySegment segment) CreatesVkDisplayPlanePropertiesKHRwith the given segment.static VkDisplayPlanePropertiesKHRofNative(MemorySegment segment, long count) CreatesVkDisplayPlanePropertiesKHRwith the given segment.reinterpret(long count) Reinterprets this buffer with the given count.Methods inherited from class 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
CreatesVkDisplayPlanePropertiesKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkDisplayPlanePropertiesKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkDisplayPlanePropertiesKHRwith 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
VkDisplayPlanePropertiesKHRwith 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 aVkDisplayPlanePropertiesKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkDisplayPlanePropertiesKHR
-
alloc
Allocates aVkDisplayPlanePropertiesKHRwith 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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count- the new count- Returns:
- the reinterpreted buffer
-
currentDisplay
ReturnscurrentDisplayat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
currentDisplayat the given index
-
currentDisplay
public long currentDisplay()ReturnscurrentDisplay.- Returns:
currentDisplay
-
currentDisplay
SetscurrentDisplaywith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
currentDisplay
SetscurrentDisplaywith the given value.- Parameters:
value- the value- Returns:
this
-
currentStackIndex
ReturnscurrentStackIndexat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
currentStackIndexat the given index
-
currentStackIndex
public int currentStackIndex()ReturnscurrentStackIndex.- Returns:
currentStackIndex
-
currentStackIndex
SetscurrentStackIndexwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
currentStackIndex
SetscurrentStackIndexwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkDisplayPlanePropertiesKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkDisplayPlanePropertiesKHR
-
asSlice
Creates a slice ofVkDisplayPlanePropertiesKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkDisplayPlanePropertiesKHR
-
at
VisitsVkDisplayPlanePropertiesKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
currentDisplayAt
public long currentDisplayAt(long index) ReturnscurrentDisplayat the given index.- Parameters:
index- the index of the struct buffer- Returns:
currentDisplayat the given index
-
currentDisplayAt
SetscurrentDisplaywith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
currentStackIndexAt
public int currentStackIndexAt(long index) ReturnscurrentStackIndexat the given index.- Parameters:
index- the index of the struct buffer- Returns:
currentStackIndexat the given index
-
currentStackIndexAt
SetscurrentStackIndexwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-