Class VkDisplayModePropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayModePropertiesKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkDisplayModePropertiesKHR.Buffer
public sealed class VkDisplayModePropertiesKHR
extends GroupType
permits VkDisplayModePropertiesKHR.Buffer
Layout
struct VkDisplayModePropertiesKHR {
(uint64_t) VkDisplayModeKHR displayMode;
(struct VkDisplayModeParametersKHR) VkDisplayModeParametersKHR parameters;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkDisplayModePropertiesKHR
.static final MemoryLayout
The memory layout ofdisplayMode
.static final MemoryLayout
The memory layout ofparameters
.static final long
The byte offset ofdisplayMode
.static final long
The byte offset ofparameters
.static final VarHandle
TheVarHandle
ofdisplayMode
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayModePropertiesKHR
(MemorySegment segment) CreatesVkDisplayModePropertiesKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayModePropertiesKHR
alloc
(SegmentAllocator allocator) Allocates aVkDisplayModePropertiesKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkDisplayModePropertiesKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.long
ReturnsdisplayMode
.displayMode
(long value) SetsdisplayMode
with the given value.static long
displayMode
(MemorySegment segment, long index) ReturnsdisplayMode
at the given index.static void
displayMode
(MemorySegment segment, long index, long value) SetsdisplayMode
with the given value at the given index.of
(MemorySegment segment) CreatesVkDisplayModePropertiesKHR
with the given segment.static VkDisplayModePropertiesKHR
ofNative
(MemorySegment segment) CreatesVkDisplayModePropertiesKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkDisplayModePropertiesKHR
with the given segment.Returnsparameters
.parameters
(MemorySegment value) Setsparameters
with the given value.static MemorySegment
parameters
(MemorySegment segment, long index) Returnsparameters
at the given index.static void
parameters
(MemorySegment segment, long index, MemorySegment value) Setsparameters
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 ofVkDisplayModePropertiesKHR
. -
OFFSET_displayMode
public static final long OFFSET_displayModeThe byte offset ofdisplayMode
. -
LAYOUT_displayMode
The memory layout ofdisplayMode
. -
VH_displayMode
-
OFFSET_parameters
public static final long OFFSET_parametersThe byte offset ofparameters
. -
LAYOUT_parameters
The memory layout ofparameters
.
-
-
Constructor Details
-
VkDisplayModePropertiesKHR
CreatesVkDisplayModePropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkDisplayModePropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkDisplayModePropertiesKHR
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
VkDisplayModePropertiesKHR
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 aVkDisplayModePropertiesKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkDisplayModePropertiesKHR
-
alloc
Allocates aVkDisplayModePropertiesKHR
with the given segment allocator and count.- Parameters:
allocator
- the segment allocatorcount
- the count- Returns:
- the allocated
VkDisplayModePropertiesKHR
-
copyFrom
Copies from the given source.- Parameters:
src
- the source- Returns:
this
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
displayMode
ReturnsdisplayMode
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
displayMode
at the given index
-
displayMode
public long displayMode()ReturnsdisplayMode
.- Returns:
displayMode
-
displayMode
SetsdisplayMode
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
displayMode
SetsdisplayMode
with the given value.- Parameters:
value
- the value- Returns:
this
-
parameters
Returnsparameters
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
parameters
at the given index
-
parameters
-
parameters
Setsparameters
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
parameters
Setsparameters
with the given value.- Parameters:
value
- the value- Returns:
this
-