Class VkDisplayModePropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayModePropertiesKHR
- All Implemented Interfaces:
Addressable
Layout
struct VkDisplayModePropertiesKHR {
(uint64_t) VkDisplayModeKHR displayMode;
(struct VkDisplayModeParametersKHR) VkDisplayModeParametersKHR parameters;
};
-
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, long elementCount) CreatesVkDisplayModePropertiesKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayModePropertiesKHR
alloc
(SegmentAllocator allocator) Allocates aVkDisplayModePropertiesKHR
with the given segment allocator.static VkDisplayModePropertiesKHR
alloc
(SegmentAllocator allocator, long count) Allocates aVkDisplayModePropertiesKHR
with the given segment allocator and count.asSlice
(long index) Creates a slice ofVkDisplayModePropertiesKHR
.asSlice
(long index, long count) Creates a slice ofVkDisplayModePropertiesKHR
.at
(long index, Consumer<VkDisplayModePropertiesKHR> func) VisitsVkDisplayModePropertiesKHR
buffer at the given index.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.long
displayModeAt
(long index) ReturnsdisplayMode
at the given index.displayModeAt
(long index, long value) SetsdisplayMode
with the given value at the given index.static VkDisplayModePropertiesKHR
of
(MemorySegment segment) CreatesVkDisplayModePropertiesKHR
with the given segment.static VkDisplayModePropertiesKHR
ofNative
(MemorySegment segment) CreatesVkDisplayModePropertiesKHR
with the given segment.static VkDisplayModePropertiesKHR
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.Acceptsparameters
with the given function.parametersAt
(long index) Returnsparameters
at the given index.parametersAt
(long index, MemorySegment value) Setsparameters
with the given value at the given index.parametersAt
(long index, Consumer<VkDisplayModeParametersKHR> func) Acceptsparameters
with the given function.reinterpret
(long count) Reinterprets this buffer with the given count.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 segmentelementCount
- the element count of this struct buffer
-
-
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
-
reinterpret
Reinterprets this buffer with the given count.- Parameters:
count
- the new count- Returns:
- the reinterpreted 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
-
parameters
Acceptsparameters
with the given function.- Parameters:
func
- the function- Returns:
this
-
asSlice
Creates a slice ofVkDisplayModePropertiesKHR
.- Parameters:
index
- the index of the struct buffer- Returns:
- the slice of
VkDisplayModePropertiesKHR
-
asSlice
Creates a slice ofVkDisplayModePropertiesKHR
.- Parameters:
index
- the index of the struct buffercount
- the count- Returns:
- the slice of
VkDisplayModePropertiesKHR
-
at
VisitsVkDisplayModePropertiesKHR
buffer at the given index.- Parameters:
index
- the index of this bufferfunc
- the function to run with the slice of this buffer- Returns:
this
-
displayModeAt
public long displayModeAt(long index) ReturnsdisplayMode
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
displayMode
at the given index
-
displayModeAt
SetsdisplayMode
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
parametersAt
Returnsparameters
at the given index.- Parameters:
index
- the index of the struct buffer- Returns:
parameters
at the given index
-
parametersAt
Setsparameters
with the given value at the given index.- Parameters:
index
- the index of the struct buffervalue
- the value- Returns:
this
-
parametersAt
public VkDisplayModePropertiesKHR parametersAt(long index, Consumer<VkDisplayModeParametersKHR> func) Acceptsparameters
with the given function.- Parameters:
index
- the index of the struct bufferfunc
- the function- Returns:
this
-