Class VkDisplayPropertiesKHR
java.lang.Object
overrungl.struct.GroupType
overrungl.vulkan.khr.struct.VkDisplayPropertiesKHR
- All Implemented Interfaces:
Addressable
- Direct Known Subclasses:
VkDisplayPropertiesKHR.Buffer
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;
};
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final GroupLayout
The struct layout ofVkDisplayPropertiesKHR
.static final MemoryLayout
The memory layout ofdisplay
.static final MemoryLayout
The memory layout ofdisplayName
.static final MemoryLayout
The memory layout ofpersistentContent
.static final MemoryLayout
The memory layout ofphysicalDimensions
.static final MemoryLayout
The memory layout ofphysicalResolution
.static final MemoryLayout
The memory layout ofplaneReorderPossible
.static final MemoryLayout
The memory layout ofsupportedTransforms
.static final long
The byte offset ofdisplay
.static final long
The byte offset ofdisplayName
.static final long
The byte offset ofpersistentContent
.static final long
The byte offset ofphysicalDimensions
.static final long
The byte offset ofphysicalResolution
.static final long
The byte offset ofplaneReorderPossible
.static final long
The byte offset ofsupportedTransforms
.static final VarHandle
static final VarHandle
TheVarHandle
ofdisplayName
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofpersistentContent
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofplaneReorderPossible
of type(MemorySegment base, long baseOffset, long index)MemorySegment
.static final VarHandle
TheVarHandle
ofsupportedTransforms
of type(MemorySegment base, long baseOffset, long index)MemorySegment
. -
Constructor Summary
ConstructorsConstructorDescriptionVkDisplayPropertiesKHR
(MemorySegment segment) CreatesVkDisplayPropertiesKHR
with the given segment. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkDisplayPropertiesKHR
alloc
(SegmentAllocator allocator) Allocates aVkDisplayPropertiesKHR
with the given segment allocator.alloc
(SegmentAllocator allocator, long count) Allocates aVkDisplayPropertiesKHR
with the given segment allocator and count.asBuffer()
Converts this instance to a buffer.Copies from the given source.long
display()
Returnsdisplay
.display
(long value) Setsdisplay
with the given value.static long
display
(MemorySegment segment, long index) Returnsdisplay
at the given index.static void
display
(MemorySegment segment, long index, long value) Setsdisplay
with the given value at the given index.ReturnsdisplayName
.displayName
(MemorySegment value) SetsdisplayName
with the given value.static MemorySegment
displayName
(MemorySegment segment, long index) ReturnsdisplayName
at the given index.static void
displayName
(MemorySegment segment, long index, MemorySegment value) SetsdisplayName
with the given value at the given index.of
(MemorySegment segment) CreatesVkDisplayPropertiesKHR
with the given segment.static VkDisplayPropertiesKHR
ofNative
(MemorySegment segment) CreatesVkDisplayPropertiesKHR
with the given segment.ofNative
(MemorySegment segment, long count) CreatesVkDisplayPropertiesKHR
with the given segment.int
ReturnspersistentContent
.persistentContent
(int value) SetspersistentContent
with the given value.static int
persistentContent
(MemorySegment segment, long index) ReturnspersistentContent
at the given index.static void
persistentContent
(MemorySegment segment, long index, int value) SetspersistentContent
with the given value at the given index.ReturnsphysicalDimensions
.physicalDimensions
(MemorySegment value) SetsphysicalDimensions
with the given value.static MemorySegment
physicalDimensions
(MemorySegment segment, long index) ReturnsphysicalDimensions
at the given index.static void
physicalDimensions
(MemorySegment segment, long index, MemorySegment value) SetsphysicalDimensions
with the given value at the given index.ReturnsphysicalResolution
.physicalResolution
(MemorySegment value) SetsphysicalResolution
with the given value.static MemorySegment
physicalResolution
(MemorySegment segment, long index) ReturnsphysicalResolution
at the given index.static void
physicalResolution
(MemorySegment segment, long index, MemorySegment value) SetsphysicalResolution
with the given value at the given index.int
ReturnsplaneReorderPossible
.planeReorderPossible
(int value) SetsplaneReorderPossible
with the given value.static int
planeReorderPossible
(MemorySegment segment, long index) ReturnsplaneReorderPossible
at the given index.static void
planeReorderPossible
(MemorySegment segment, long index, int value) SetsplaneReorderPossible
with the given value at the given index.int
ReturnssupportedTransforms
.supportedTransforms
(int value) SetssupportedTransforms
with the given value.static int
supportedTransforms
(MemorySegment segment, long index) ReturnssupportedTransforms
at the given index.static void
supportedTransforms
(MemorySegment segment, long index, int value) SetssupportedTransforms
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 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
CreatesVkDisplayPropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment
-
-
Method Details
-
of
CreatesVkDisplayPropertiesKHR
with the given segment.- Parameters:
segment
- the memory segment- Returns:
- the created instance or
null
if the segment isNULL
-
ofNative
Creates
VkDisplayPropertiesKHR
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
VkDisplayPropertiesKHR
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 aVkDisplayPropertiesKHR
with the given segment allocator.- Parameters:
allocator
- the segment allocator- Returns:
- the allocated
VkDisplayPropertiesKHR
-
alloc
Allocates aVkDisplayPropertiesKHR
with 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
-
asBuffer
Converts this instance to a buffer.- Returns:
- the buffer
-
display
Returnsdisplay
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
display
at the given index
-
display
public long display()Returnsdisplay
.- Returns:
display
-
display
Setsdisplay
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
display
Setsdisplay
with the given value.- Parameters:
value
- the value- Returns:
this
-
displayName
ReturnsdisplayName
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
displayName
at the given index
-
displayName
-
displayName
SetsdisplayName
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
displayName
SetsdisplayName
with the given value.- Parameters:
value
- the value- Returns:
this
-
physicalDimensions
ReturnsphysicalDimensions
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
physicalDimensions
at the given index
-
physicalDimensions
-
physicalDimensions
SetsphysicalDimensions
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
physicalDimensions
SetsphysicalDimensions
with the given value.- Parameters:
value
- the value- Returns:
this
-
physicalResolution
ReturnsphysicalResolution
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
physicalResolution
at the given index
-
physicalResolution
-
physicalResolution
SetsphysicalResolution
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
physicalResolution
SetsphysicalResolution
with the given value.- Parameters:
value
- the value- Returns:
this
-
supportedTransforms
ReturnssupportedTransforms
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
supportedTransforms
at the given index
-
supportedTransforms
public int supportedTransforms()ReturnssupportedTransforms
.- Returns:
supportedTransforms
-
supportedTransforms
SetssupportedTransforms
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
supportedTransforms
SetssupportedTransforms
with the given value.- Parameters:
value
- the value- Returns:
this
-
planeReorderPossible
ReturnsplaneReorderPossible
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
planeReorderPossible
at the given index
-
planeReorderPossible
public int planeReorderPossible()ReturnsplaneReorderPossible
.- Returns:
planeReorderPossible
-
planeReorderPossible
SetsplaneReorderPossible
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
planeReorderPossible
SetsplaneReorderPossible
with the given value.- Parameters:
value
- the value- Returns:
this
-
persistentContent
ReturnspersistentContent
at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffer- Returns:
persistentContent
at the given index
-
persistentContent
public int persistentContent()ReturnspersistentContent
.- Returns:
persistentContent
-
persistentContent
SetspersistentContent
with the given value at the given index.- Parameters:
segment
- the segment of the structindex
- the index of the struct buffervalue
- the value
-
persistentContent
SetspersistentContent
with the given value.- Parameters:
value
- the value- Returns:
this
-