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 recordRepresents a pointer to / an array ofVkHdrMetadataEXTstructure(s) in native memory. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final longstatic final StructLayoutstatic final StructLayoutstatic final StructLayoutstatic final StructLayoutstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final ValueLayout.OfFloatstatic final AddressLayoutstatic final ValueLayout.OfIntstatic final StructLayoutstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final MemoryLayout.PathElementstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final longstatic final long -
Constructor Summary
ConstructorsConstructorDescriptionVkHdrMetadataEXT(@NotNull MemorySegment segment) Creates an instance of aVkHdrMetadataEXTrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkHdrMetadataEXTstatic VkHdrMetadataEXT.PtrvoidautoInit()static VkHdrMetadataEXTclone(Arena arena, VkHdrMetadataEXT src) @NotNull VkXYColorEXTdisplayPrimaryBlue(@NotNull VkXYColorEXT value) displayPrimaryBlue(Consumer<@NotNull VkXYColorEXT> consumer) @NotNull VkXYColorEXTdisplayPrimaryGreen(@NotNull VkXYColorEXT value) displayPrimaryGreen(Consumer<@NotNull VkXYColorEXT> consumer) @NotNull VkXYColorEXTdisplayPrimaryRed(@NotNull VkXYColorEXT value) displayPrimaryRed(Consumer<@NotNull VkXYColorEXT> consumer) final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.floatmaxContentLightLevel(float value) floatmaxFrameAverageLightLevel(float value) floatmaxLuminance(float value) floatminLuminance(float value) @NotNull MemorySegmentpNext()pNext(@NotNull MemorySegment value) @NotNull MemorySegmentsegment()Returns the value of thesegmentrecord component.intsType()sType(int value) final StringtoString()Returns a string representation of this record class.@NotNull VkXYColorEXTwhitePoint(@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 aVkHdrMetadataEXTrecord class.- Parameters:
segment- the value for thesegmentrecord 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 thesegmentrecord component.
-