Class VkDisplayPropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayPropertiesKHR
- All Implemented Interfaces:
Addressable
Represents VkDisplayPropertiesKHR.
Layout
struct VkDisplayPropertiesKHR {
(uint64_t) VkDisplayKHR display;
const char* displayName;
(struct VkExtent2D) VkExtent2D physicalDimensions;
(struct VkExtent2D) VkExtent2D physicalResolution;
((uint32_t) VkFlags) VkSurfaceTransformFlagsKHR supportedTransforms;
(uint32_t) VkBool32 planeReorderPossible;
(uint32_t) VkBool32 persistentContent;
};
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StructLayoutThe struct layout ofVkDisplayPropertiesKHR.static final MemoryLayoutThe memory layout ofdisplay.static final MemoryLayoutThe memory layout ofdisplayName.static final MemoryLayoutThe memory layout ofpersistentContent.static final MemoryLayoutThe memory layout ofphysicalDimensions.static final MemoryLayoutThe memory layout ofphysicalResolution.static final MemoryLayoutThe memory layout ofplaneReorderPossible.static final MemoryLayoutThe memory layout ofsupportedTransforms.static final longThe byte offset ofdisplay.static final longThe byte offset ofdisplayName.static final longThe byte offset ofpersistentContent.static final longThe byte offset ofphysicalDimensions.static final longThe byte offset ofphysicalResolution.static final longThe byte offset ofplaneReorderPossible.static final longThe byte offset ofsupportedTransforms.static final VarHandlestatic final VarHandleTheVarHandleofdisplayNameof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofpersistentContentof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofplaneReorderPossibleof type(MemorySegment base, long baseOffset, long index)MemorySegment.static final VarHandleTheVarHandleofsupportedTransformsof type(MemorySegment base, long baseOffset, long index)MemorySegment. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayPropertiesKHR(MemorySegment segment, long elementCount) CreatesVkDisplayPropertiesKHRwith the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayPropertiesKHRalloc(SegmentAllocator allocator) Allocates aVkDisplayPropertiesKHRwith the given segment allocator.static VkDisplayPropertiesKHRalloc(SegmentAllocator allocator, long count) Allocates aVkDisplayPropertiesKHRwith the given segment allocator and count.asSlice(long index) Creates a slice ofVkDisplayPropertiesKHR.asSlice(long index, long count) Creates a slice ofVkDisplayPropertiesKHR.at(long index, Consumer<VkDisplayPropertiesKHR> func) VisitsVkDisplayPropertiesKHRbuffer at the given index.Copies from the given source.longdisplay()Returnsdisplay.display(long value) Setsdisplaywith the given value.static longdisplay(MemorySegment segment, long index) Returnsdisplayat the given index.static voiddisplay(MemorySegment segment, long index, long value) Setsdisplaywith the given value at the given index.longdisplayAt(long index) Returnsdisplayat the given index.displayAt(long index, long value) Setsdisplaywith the given value at the given index.ReturnsdisplayName.displayName(MemorySegment value) SetsdisplayNamewith the given value.static MemorySegmentdisplayName(MemorySegment segment, long index) ReturnsdisplayNameat the given index.static voiddisplayName(MemorySegment segment, long index, MemorySegment value) SetsdisplayNamewith the given value at the given index.displayNameAt(long index) ReturnsdisplayNameat the given index.displayNameAt(long index, MemorySegment value) SetsdisplayNamewith the given value at the given index.static VkDisplayPropertiesKHRof(MemorySegment segment) CreatesVkDisplayPropertiesKHRwith the given segment.static VkDisplayPropertiesKHRofNative(MemorySegment segment) CreatesVkDisplayPropertiesKHRwith the given segment.static VkDisplayPropertiesKHRofNative(MemorySegment segment, long count) CreatesVkDisplayPropertiesKHRwith the given segment.intReturnspersistentContent.persistentContent(int value) SetspersistentContentwith the given value.static intpersistentContent(MemorySegment segment, long index) ReturnspersistentContentat the given index.static voidpersistentContent(MemorySegment segment, long index, int value) SetspersistentContentwith the given value at the given index.intpersistentContentAt(long index) ReturnspersistentContentat the given index.persistentContentAt(long index, int value) SetspersistentContentwith the given value at the given index.ReturnsphysicalDimensions.physicalDimensions(MemorySegment value) SetsphysicalDimensionswith the given value.static MemorySegmentphysicalDimensions(MemorySegment segment, long index) ReturnsphysicalDimensionsat the given index.static voidphysicalDimensions(MemorySegment segment, long index, MemorySegment value) SetsphysicalDimensionswith the given value at the given index.physicalDimensions(Consumer<VkExtent2D> func) AcceptsphysicalDimensionswith the given function.physicalDimensionsAt(long index) ReturnsphysicalDimensionsat the given index.physicalDimensionsAt(long index, MemorySegment value) SetsphysicalDimensionswith the given value at the given index.physicalDimensionsAt(long index, Consumer<VkExtent2D> func) AcceptsphysicalDimensionswith the given function.ReturnsphysicalResolution.physicalResolution(MemorySegment value) SetsphysicalResolutionwith the given value.static MemorySegmentphysicalResolution(MemorySegment segment, long index) ReturnsphysicalResolutionat the given index.static voidphysicalResolution(MemorySegment segment, long index, MemorySegment value) SetsphysicalResolutionwith the given value at the given index.physicalResolution(Consumer<VkExtent2D> func) AcceptsphysicalResolutionwith the given function.physicalResolutionAt(long index) ReturnsphysicalResolutionat the given index.physicalResolutionAt(long index, MemorySegment value) SetsphysicalResolutionwith the given value at the given index.physicalResolutionAt(long index, Consumer<VkExtent2D> func) AcceptsphysicalResolutionwith the given function.intReturnsplaneReorderPossible.planeReorderPossible(int value) SetsplaneReorderPossiblewith the given value.static intplaneReorderPossible(MemorySegment segment, long index) ReturnsplaneReorderPossibleat the given index.static voidplaneReorderPossible(MemorySegment segment, long index, int value) SetsplaneReorderPossiblewith the given value at the given index.intplaneReorderPossibleAt(long index) ReturnsplaneReorderPossibleat the given index.planeReorderPossibleAt(long index, int value) SetsplaneReorderPossiblewith the given value at the given index.reinterpret(long count) Reinterprets this buffer with the given count.intReturnssupportedTransforms.supportedTransforms(int value) SetssupportedTransformswith the given value.static intsupportedTransforms(MemorySegment segment, long index) ReturnssupportedTransformsat the given index.static voidsupportedTransforms(MemorySegment segment, long index, int value) SetssupportedTransformswith the given value at the given index.intsupportedTransformsAt(long index) ReturnssupportedTransformsat the given index.supportedTransformsAt(long index, int value) SetssupportedTransformswith the given value at the given index.Methods inherited from class GroupType
estimateCount, estimateCount, groupLayout, segment
-
Field Details
-
LAYOUT
The struct layout ofVkDisplayPropertiesKHR. -
OFFSET_display
public static final long OFFSET_displayThe byte offset ofdisplay. -
LAYOUT_display
The memory layout ofdisplay. -
VH_display
-
OFFSET_displayName
public static final long OFFSET_displayNameThe byte offset ofdisplayName. -
LAYOUT_displayName
The memory layout ofdisplayName. -
VH_displayName
-
OFFSET_physicalDimensions
public static final long OFFSET_physicalDimensionsThe byte offset ofphysicalDimensions. -
LAYOUT_physicalDimensions
The memory layout ofphysicalDimensions. -
OFFSET_physicalResolution
public static final long OFFSET_physicalResolutionThe byte offset ofphysicalResolution. -
LAYOUT_physicalResolution
The memory layout ofphysicalResolution. -
OFFSET_supportedTransforms
public static final long OFFSET_supportedTransformsThe byte offset ofsupportedTransforms. -
LAYOUT_supportedTransforms
The memory layout ofsupportedTransforms. -
VH_supportedTransforms
-
OFFSET_planeReorderPossible
public static final long OFFSET_planeReorderPossibleThe byte offset ofplaneReorderPossible. -
LAYOUT_planeReorderPossible
The memory layout ofplaneReorderPossible. -
VH_planeReorderPossible
-
OFFSET_persistentContent
public static final long OFFSET_persistentContentThe byte offset ofpersistentContent. -
LAYOUT_persistentContent
The memory layout ofpersistentContent. -
VH_persistentContent
-
-
Constructor Details
-
VkDisplayPropertiesKHR
CreatesVkDisplayPropertiesKHRwith the given segment.- Parameters:
segment- the memory segmentelementCount- the element count of this struct buffer
-
-
Method Details
-
of
CreatesVkDisplayPropertiesKHRwith the given segment.- Parameters:
segment- the memory segment- Returns:
- the created instance or
nullif the segment isNULL
-
ofNative
Creates
VkDisplayPropertiesKHRwith 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
VkDisplayPropertiesKHRwith 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 aVkDisplayPropertiesKHRwith the given segment allocator.- Parameters:
allocator- the segment allocator- Returns:
- the allocated
VkDisplayPropertiesKHR
-
alloc
Allocates aVkDisplayPropertiesKHRwith the given segment allocator and count.- Parameters:
allocator- the segment allocatorcount- the count- Returns:
- the allocated
VkDisplayPropertiesKHR
-
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
-
display
Returnsdisplayat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
displayat the given index
-
display
public long display()Returnsdisplay.- Returns:
display
-
display
Setsdisplaywith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
display
Setsdisplaywith the given value.- Parameters:
value- the value- Returns:
this
-
displayName
ReturnsdisplayNameat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
displayNameat the given index
-
displayName
-
displayName
SetsdisplayNamewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
displayName
SetsdisplayNamewith the given value.- Parameters:
value- the value- Returns:
this
-
physicalDimensions
ReturnsphysicalDimensionsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
physicalDimensionsat the given index
-
physicalDimensions
-
physicalDimensions
SetsphysicalDimensionswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
physicalDimensions
SetsphysicalDimensionswith the given value.- Parameters:
value- the value- Returns:
this
-
physicalDimensions
AcceptsphysicalDimensionswith the given function.- Parameters:
func- the function- Returns:
this
-
physicalResolution
ReturnsphysicalResolutionat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
physicalResolutionat the given index
-
physicalResolution
-
physicalResolution
SetsphysicalResolutionwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
physicalResolution
SetsphysicalResolutionwith the given value.- Parameters:
value- the value- Returns:
this
-
physicalResolution
AcceptsphysicalResolutionwith the given function.- Parameters:
func- the function- Returns:
this
-
supportedTransforms
ReturnssupportedTransformsat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
supportedTransformsat the given index
-
supportedTransforms
public int supportedTransforms()ReturnssupportedTransforms.- Returns:
supportedTransforms
-
supportedTransforms
SetssupportedTransformswith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
supportedTransforms
SetssupportedTransformswith the given value.- Parameters:
value- the value- Returns:
this
-
planeReorderPossible
ReturnsplaneReorderPossibleat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
planeReorderPossibleat the given index
-
planeReorderPossible
public int planeReorderPossible()ReturnsplaneReorderPossible.- Returns:
planeReorderPossible
-
planeReorderPossible
SetsplaneReorderPossiblewith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
planeReorderPossible
SetsplaneReorderPossiblewith the given value.- Parameters:
value- the value- Returns:
this
-
persistentContent
ReturnspersistentContentat the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffer- Returns:
persistentContentat the given index
-
persistentContent
public int persistentContent()ReturnspersistentContent.- Returns:
persistentContent
-
persistentContent
SetspersistentContentwith the given value at the given index.- Parameters:
segment- the segment of the structindex- the index of the struct buffervalue- the value
-
persistentContent
SetspersistentContentwith the given value.- Parameters:
value- the value- Returns:
this
-
asSlice
Creates a slice ofVkDisplayPropertiesKHR.- Parameters:
index- the index of the struct buffer- Returns:
- the slice of
VkDisplayPropertiesKHR
-
asSlice
Creates a slice ofVkDisplayPropertiesKHR.- Parameters:
index- the index of the struct buffercount- the count- Returns:
- the slice of
VkDisplayPropertiesKHR
-
at
VisitsVkDisplayPropertiesKHRbuffer at the given index.- Parameters:
index- the index of this bufferfunc- the function to run with the slice of this buffer- Returns:
this
-
displayAt
public long displayAt(long index) Returnsdisplayat the given index.- Parameters:
index- the index of the struct buffer- Returns:
displayat the given index
-
displayAt
Setsdisplaywith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
displayNameAt
ReturnsdisplayNameat the given index.- Parameters:
index- the index of the struct buffer- Returns:
displayNameat the given index
-
displayNameAt
SetsdisplayNamewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
physicalDimensionsAt
ReturnsphysicalDimensionsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
physicalDimensionsat the given index
-
physicalDimensionsAt
SetsphysicalDimensionswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
physicalDimensionsAt
AcceptsphysicalDimensionswith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
physicalResolutionAt
ReturnsphysicalResolutionat the given index.- Parameters:
index- the index of the struct buffer- Returns:
physicalResolutionat the given index
-
physicalResolutionAt
SetsphysicalResolutionwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
physicalResolutionAt
AcceptsphysicalResolutionwith the given function.- Parameters:
index- the index of the struct bufferfunc- the function- Returns:
this
-
supportedTransformsAt
public int supportedTransformsAt(long index) ReturnssupportedTransformsat the given index.- Parameters:
index- the index of the struct buffer- Returns:
supportedTransformsat the given index
-
supportedTransformsAt
SetssupportedTransformswith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
planeReorderPossibleAt
public int planeReorderPossibleAt(long index) ReturnsplaneReorderPossibleat the given index.- Parameters:
index- the index of the struct buffer- Returns:
planeReorderPossibleat the given index
-
planeReorderPossibleAt
SetsplaneReorderPossiblewith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-
persistentContentAt
public int persistentContentAt(long index) ReturnspersistentContentat the given index.- Parameters:
index- the index of the struct buffer- Returns:
persistentContentat the given index
-
persistentContentAt
SetspersistentContentwith the given value at the given index.- Parameters:
index- the index of the struct buffervalue- the value- Returns:
this
-