Class VkDisplayModePropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayModePropertiesKHR
- All Implemented Interfaces:
Addressable
Represents VkDisplayModePropertiesKHR.
Layout
struct VkDisplayModePropertiesKHR {
(uint64_t) VkDisplayModeKHR displayMode;
(struct VkDisplayModeParametersKHR) VkDisplayModeParametersKHR parameters;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkDisplayModePropertiesKHR.static final MemoryLayoutThe memory layout ofdisplayMode.static final MemoryLayoutThe memory layout ofparameters.static final longThe byte offset ofdisplayMode.static final longThe byte offset ofparameters.static final VarHandleTheVarHandleofdisplayModeof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayModePropertiesKHR(MemorySegment segment, long elementCount) CreatesVkDisplayModePropertiesKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayModePropertiesKHRalloc(SegmentAllocator allocator) Allocates aVkDisplayModePropertiesKHRwith the given segment allocator.static VkDisplayModePropertiesKHRalloc(SegmentAllocator allocator, long count) Allocates aVkDisplayModePropertiesKHRwith 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) VisitsVkDisplayModePropertiesKHRbuffer at the given index.Copies from the given source.longReturnsdisplayMode.displayMode(long value) SetsdisplayModewith the given value.static longdisplayMode(MemorySegment segment, long index) ReturnsdisplayModeat the given index.static voiddisplayMode(MemorySegment segment, long index, long value) SetsdisplayModewith the given value at the given index.longdisplayModeAt(long index) ReturnsdisplayModeat the given index.displayModeAt(long index, long value) SetsdisplayModewith the given value at the given index.static VkDisplayModePropertiesKHRof(MemorySegment segment) CreatesVkDisplayModePropertiesKHRwith the given segment.static VkDisplayModePropertiesKHRofNative(MemorySegment segment) CreatesVkDisplayModePropertiesKHRwith the given segment.static VkDisplayModePropertiesKHRofNative(MemorySegment segment, long count) CreatesVkDisplayModePropertiesKHRwith the given segment.Returnsparameters.parameters(MemorySegment value) Setsparameterswith the given value.static MemorySegmentparameters(MemorySegment segment, long index) Returnsparametersat the given index.static voidparameters(MemorySegment segment, long index, MemorySegment value) Setsparameterswith the given value at the given index.Acceptsparameterswith the given function.parametersAt(long index) Returnsparametersat the given index.parametersAt(long index, MemorySegment value) Setsparameterswith the given value at the given index.parametersAt(long index, Consumer<VkDisplayModeParametersKHR> func) Acceptsparameterswith the given function.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 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
CreatesVkDisplayModePropertiesKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkDisplayModePropertiesKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkDisplayModePropertiesKHRwith 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
VkDisplayModePropertiesKHRwith 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 aVkDisplayModePropertiesKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkDisplayModePropertiesKHR
-
alloc
Allocates aVkDisplayModePropertiesKHRwith 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
ReturnsdisplayModeat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
displayModeat the given index
-
displayMode
public long displayMode()ReturnsdisplayMode.- Returns:
displayMode
-
displayMode
SetsdisplayModewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
displayMode
SetsdisplayModewith the given value.- Parameters:
value- the value- Returns:
this
-
parameters
Returnsparametersat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
parametersat the given index
-
parameters
-
parameters
Setsparameterswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
parameters
Setsparameterswith the given value.- Parameters:
value- the value- Returns:
this
-
parameters
Acceptsparameterswith 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
VisitsVkDisplayModePropertiesKHRbuffer 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) ReturnsdisplayModeat the given index.- Parameters:
index- the index of the struct buffer- Returns:
displayModeat the given index
-
displayModeAt
SetsdisplayModewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
parametersAt
Returnsparametersat the given index.- Parameters:
index- the index of the struct buffer- Returns:
parametersat the given index
-
parametersAt
Setsparameterswith 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) Acceptsparameterswith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-