Record Class VkHdrMetadataEXT
- All Implemented Interfaces:
IPointer
,IVkHdrMetadataEXT
Represents a pointer to a VkHdrMetadataEXT
structure in native memory.
Structure
typedef struct VkHdrMetadataEXT {
VkStructureType
sType
;
void const* pNext
; // optional
VkXYColorEXT
displayPrimaryRed
;
VkXYColorEXT
displayPrimaryGreen
;
VkXYColorEXT
displayPrimaryBlue
;
VkXYColorEXT
whitePoint
;
float maxLuminance
;
float minLuminance
;
float maxContentLightLevel
;
float maxFrameAverageLightLevel
;
} VkHdrMetadataEXT;
Auto initialization
This structure has the following members that can be automatically initialized:
sType = VK_STRUCTURE_TYPE_HDR_METADATA_EXT
The allocate
(allocate(Arena)
, allocate(Arena, long)
)
functions will automatically initialize these fields. Also, you may call autoInit()
to initialize these fields manually for non-allocated instances.
Contracts
The property segment()
should always be not-null
(segment != NULL && !segment.equals(MemorySegment.NULL)
), and properly aligned to
LAYOUT.byteAlignment()
bytes. To represent null pointer, you may use a Java
null
instead. See the documentation of IPointer.segment()
for more details.
The constructor of this class is marked as UnsafeConstructor
, because it does not
perform any runtime check. The constructor can be useful for automatic code generators.
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final record
Represents a pointer to / an array ofVkHdrMetadataEXT
structure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final long
static final StructLayout
static final StructLayout
static final StructLayout
static final StructLayout
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final ValueLayout.OfFloat
static final AddressLayout
static final ValueLayout.OfInt
static final StructLayout
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final MemoryLayout.PathElement
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
static final long
-
Constructor Summary
ConstructorsConstructorDescriptionVkHdrMetadataEXT
(@NotNull MemorySegment segment) Creates an instance of aVkHdrMetadataEXT
record class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkHdrMetadataEXT
static VkHdrMetadataEXT.Ptr
void
autoInit()
static VkHdrMetadataEXT
clone
(Arena arena, VkHdrMetadataEXT src) @NotNull VkXYColorEXT
displayPrimaryBlue
(@NotNull VkXYColorEXT value) displayPrimaryBlue
(Consumer<@NotNull VkXYColorEXT> consumer) @NotNull VkXYColorEXT
displayPrimaryGreen
(@NotNull VkXYColorEXT value) displayPrimaryGreen
(Consumer<@NotNull VkXYColorEXT> consumer) @NotNull VkXYColorEXT
displayPrimaryRed
(@NotNull VkXYColorEXT value) displayPrimaryRed
(Consumer<@NotNull VkXYColorEXT> consumer) final boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.float
maxContentLightLevel
(float value) float
maxFrameAverageLightLevel
(float value) float
maxLuminance
(float value) float
minLuminance
(float value) pNext()
void
pNext
(MemorySegment value) @NotNull MemorySegment
segment()
Returns the value of thesegment
record component.int
sType()
sType
(int value) final String
toString()
Returns a string representation of this record class.@NotNull VkXYColorEXT
whitePoint
(@NotNull VkXYColorEXT value) whitePoint
(Consumer<@NotNull VkXYColorEXT> consumer)
-
Field Details
-
LAYOUT
-
BYTES
public static final long BYTES -
PATH$sType
-
PATH$pNext
-
PATH$displayPrimaryRed
-
PATH$displayPrimaryGreen
-
PATH$displayPrimaryBlue
-
PATH$whitePoint
-
PATH$maxLuminance
-
PATH$minLuminance
-
PATH$maxContentLightLevel
-
PATH$maxFrameAverageLightLevel
-
LAYOUT$sType
-
LAYOUT$pNext
-
LAYOUT$displayPrimaryRed
-
LAYOUT$displayPrimaryGreen
-
LAYOUT$displayPrimaryBlue
-
LAYOUT$whitePoint
-
LAYOUT$maxLuminance
-
LAYOUT$minLuminance
-
LAYOUT$maxContentLightLevel
-
LAYOUT$maxFrameAverageLightLevel
-
SIZE$sType
public static final long SIZE$sType -
SIZE$pNext
public static final long SIZE$pNext -
SIZE$displayPrimaryRed
public static final long SIZE$displayPrimaryRed -
SIZE$displayPrimaryGreen
public static final long SIZE$displayPrimaryGreen -
SIZE$displayPrimaryBlue
public static final long SIZE$displayPrimaryBlue -
SIZE$whitePoint
public static final long SIZE$whitePoint -
SIZE$maxLuminance
public static final long SIZE$maxLuminance -
SIZE$minLuminance
public static final long SIZE$minLuminance -
SIZE$maxContentLightLevel
public static final long SIZE$maxContentLightLevel -
SIZE$maxFrameAverageLightLevel
public static final long SIZE$maxFrameAverageLightLevel -
OFFSET$sType
public static final long OFFSET$sType -
OFFSET$pNext
public static final long OFFSET$pNext -
OFFSET$displayPrimaryRed
public static final long OFFSET$displayPrimaryRed -
OFFSET$displayPrimaryGreen
public static final long OFFSET$displayPrimaryGreen -
OFFSET$displayPrimaryBlue
public static final long OFFSET$displayPrimaryBlue -
OFFSET$whitePoint
public static final long OFFSET$whitePoint -
OFFSET$maxLuminance
public static final long OFFSET$maxLuminance -
OFFSET$minLuminance
public static final long OFFSET$minLuminance -
OFFSET$maxContentLightLevel
public static final long OFFSET$maxContentLightLevel -
OFFSET$maxFrameAverageLightLevel
public static final long OFFSET$maxFrameAverageLightLevel
-
-
Constructor Details
-
VkHdrMetadataEXT
Creates an instance of aVkHdrMetadataEXT
record class.- Parameters:
segment
- the value for thesegment
record component
-
-
Method Details
-
allocate
-
allocate
-
clone
-
autoInit
public void autoInit() -
sType
-
sType
-
pNext
-
pNext
-
pNext
-
displayPrimaryRed
-
displayPrimaryRed
-
displayPrimaryRed
-
displayPrimaryGreen
-
displayPrimaryGreen
-
displayPrimaryGreen
-
displayPrimaryBlue
-
displayPrimaryBlue
-
displayPrimaryBlue
-
whitePoint
-
whitePoint
-
whitePoint
-
maxLuminance
public float maxLuminance() -
maxLuminance
-
minLuminance
public float minLuminance() -
minLuminance
-
maxContentLightLevel
public float maxContentLightLevel() -
maxContentLightLevel
-
maxFrameAverageLightLevel
public float maxFrameAverageLightLevel() -
maxFrameAverageLightLevel
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
segment
Returns the value of thesegment
record component.
-