Package org.lwjgl.vulkan
Class VkHdrMetadataEXT
- All Implemented Interfaces:
AutoCloseable
,NativeResource
,Pointer
struct VkHdrMetadataEXT {
VkStructureType sType;
void const * pNext;
{@link VkXYColorEXT VkXYColorEXT} displayPrimaryRed;
{@link VkXYColorEXT VkXYColorEXT} displayPrimaryGreen;
{@link VkXYColorEXT VkXYColorEXT} displayPrimaryBlue;
{@link VkXYColorEXT VkXYColorEXT} whitePoint;
float maxLuminance;
float minLuminance;
float maxContentLightLevel;
float maxFrameAverageLightLevel;
}
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
Struct.StructValidation
Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
The struct alignment in bytes.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct member offsets.static final int
The struct size in bytes.static final int
The struct member offsets.static final int
The struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
-
Constructor Summary
ConstructorsConstructorDescriptionVkHdrMetadataEXT
(ByteBuffer container) Creates aVkHdrMetadataEXT
instance at the current position of the specifiedByteBuffer
container. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkHdrMetadataEXT
calloc()
Returns a newVkHdrMetadataEXT
instance allocated withmemCalloc
.static VkHdrMetadataEXT.Buffer
calloc
(int capacity) Returns a newVkHdrMetadataEXT.Buffer
instance allocated withmemCalloc
.static VkHdrMetadataEXT.Buffer
calloc
(int capacity, MemoryStack stack) Returns a newVkHdrMetadataEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkHdrMetadataEXT
calloc
(MemoryStack stack) Returns a newVkHdrMetadataEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.static VkHdrMetadataEXT
Deprecated.static VkHdrMetadataEXT.Buffer
callocStack
(int capacity) Deprecated.static VkHdrMetadataEXT.Buffer
callocStack
(int capacity, MemoryStack stack) Deprecated.static VkHdrMetadataEXT
callocStack
(MemoryStack stack) Deprecated.static VkHdrMetadataEXT
create()
Returns a newVkHdrMetadataEXT
instance allocated withBufferUtils
.static VkHdrMetadataEXT.Buffer
create
(int capacity) Returns a newVkHdrMetadataEXT.Buffer
instance allocated withBufferUtils
.static VkHdrMetadataEXT
create
(long address) Returns a newVkHdrMetadataEXT
instance for the specified memory address.static VkHdrMetadataEXT.Buffer
create
(long address, int capacity) Create aVkHdrMetadataEXT.Buffer
instance at the specified memory.static @Nullable VkHdrMetadataEXT
createSafe
(long address) static @Nullable VkHdrMetadataEXT.Buffer
createSafe
(long address, int capacity) displayPrimaryBlue
(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryBlue
field to the specifiedConsumer
.displayPrimaryBlue
(VkXYColorEXT value) Copies the specifiedVkXYColorEXT
to thedisplayPrimaryBlue
field.displayPrimaryGreen
(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryGreen
field to the specifiedConsumer
.displayPrimaryGreen
(VkXYColorEXT value) Copies the specifiedVkXYColorEXT
to thedisplayPrimaryGreen
field.displayPrimaryRed
(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryRed
field to the specifiedConsumer
.displayPrimaryRed
(VkXYColorEXT value) Copies the specifiedVkXYColorEXT
to thedisplayPrimaryRed
field.static VkHdrMetadataEXT
malloc()
Returns a newVkHdrMetadataEXT
instance allocated withmemAlloc
.static VkHdrMetadataEXT.Buffer
malloc
(int capacity) Returns a newVkHdrMetadataEXT.Buffer
instance allocated withmemAlloc
.static VkHdrMetadataEXT.Buffer
malloc
(int capacity, MemoryStack stack) Returns a newVkHdrMetadataEXT.Buffer
instance allocated on the specifiedMemoryStack
.static VkHdrMetadataEXT
malloc
(MemoryStack stack) Returns a newVkHdrMetadataEXT
instance allocated on the specifiedMemoryStack
.static VkHdrMetadataEXT
Deprecated.static VkHdrMetadataEXT.Buffer
mallocStack
(int capacity) Deprecated.static VkHdrMetadataEXT.Buffer
mallocStack
(int capacity, MemoryStack stack) Deprecated.static VkHdrMetadataEXT
mallocStack
(MemoryStack stack) Deprecated.float
maxContentLightLevel
(float value) Sets the specified value to themaxContentLightLevel
field.float
maxFrameAverageLightLevel
(float value) Sets the specified value to themaxFrameAverageLightLevel
field.float
maxLuminance
(float value) Sets the specified value to themaxLuminance
field.float
minLuminance
(float value) Sets the specified value to theminLuminance
field.static VkXYColorEXT
ndisplayPrimaryBlue
(long struct) Unsafe version ofdisplayPrimaryBlue()
.static void
ndisplayPrimaryBlue
(long struct, VkXYColorEXT value) Unsafe version ofdisplayPrimaryBlue
.static VkXYColorEXT
ndisplayPrimaryGreen
(long struct) Unsafe version ofdisplayPrimaryGreen()
.static void
ndisplayPrimaryGreen
(long struct, VkXYColorEXT value) Unsafe version ofdisplayPrimaryGreen
.static VkXYColorEXT
ndisplayPrimaryRed
(long struct) Unsafe version ofdisplayPrimaryRed()
.static void
ndisplayPrimaryRed
(long struct, VkXYColorEXT value) Unsafe version ofdisplayPrimaryRed
.static float
nmaxContentLightLevel
(long struct) Unsafe version ofmaxContentLightLevel()
.static void
nmaxContentLightLevel
(long struct, float value) Unsafe version ofmaxContentLightLevel
.static float
nmaxFrameAverageLightLevel
(long struct) Unsafe version ofmaxFrameAverageLightLevel()
.static void
nmaxFrameAverageLightLevel
(long struct, float value) Unsafe version ofmaxFrameAverageLightLevel
.static float
nmaxLuminance
(long struct) Unsafe version ofmaxLuminance()
.static void
nmaxLuminance
(long struct, float value) Unsafe version ofmaxLuminance
.static float
nminLuminance
(long struct) Unsafe version ofminLuminance()
.static void
nminLuminance
(long struct, float value) Unsafe version ofminLuminance
.static long
npNext
(long struct) Unsafe version ofpNext()
.static void
npNext
(long struct, long value) Unsafe version ofpNext
.static int
nsType
(long struct) Unsafe version ofsType()
.static void
nsType
(long struct, int value) Unsafe version ofsType
.static VkXYColorEXT
nwhitePoint
(long struct) Unsafe version ofwhitePoint()
.static void
nwhitePoint
(long struct, VkXYColorEXT value) Unsafe version ofwhitePoint
.long
pNext()
pNext
(long value) Sets the specified value to thepNext
field.Prepends the specifiedVkHdrVividDynamicMetadataHUAWEI
value to thepNext
chain.set
(int sType, long pNext, VkXYColorEXT displayPrimaryRed, VkXYColorEXT displayPrimaryGreen, VkXYColorEXT displayPrimaryBlue, VkXYColorEXT whitePoint, float maxLuminance, float minLuminance, float maxContentLightLevel, float maxFrameAverageLightLevel) Initializes this struct with the specified values.set
(VkHdrMetadataEXT src) Copies the specified struct data to this struct.int
sizeof()
Returnssizeof(struct)
.int
sType()
sType
(int value) Sets the specified value to thesType
field.Sets theSTRUCTURE_TYPE_HDR_METADATA_EXT
value to thesType
field.whitePoint
(Consumer<VkXYColorEXT> consumer) Passes thewhitePoint
field to the specifiedConsumer
.whitePoint
(VkXYColorEXT value) Copies the specifiedVkXYColorEXT
to thewhitePoint
field.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
Methods inherited from interface org.lwjgl.system.NativeResource
close, free
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
STYPE
public static final int STYPEThe struct member offsets. -
PNEXT
public static final int PNEXTThe struct member offsets. -
DISPLAYPRIMARYRED
public static final int DISPLAYPRIMARYREDThe struct member offsets. -
DISPLAYPRIMARYGREEN
public static final int DISPLAYPRIMARYGREENThe struct member offsets. -
DISPLAYPRIMARYBLUE
public static final int DISPLAYPRIMARYBLUEThe struct member offsets. -
WHITEPOINT
public static final int WHITEPOINTThe struct member offsets. -
MAXLUMINANCE
public static final int MAXLUMINANCEThe struct member offsets. -
MINLUMINANCE
public static final int MINLUMINANCEThe struct member offsets. -
MAXCONTENTLIGHTLEVEL
public static final int MAXCONTENTLIGHTLEVELThe struct member offsets. -
MAXFRAMEAVERAGELIGHTLEVEL
public static final int MAXFRAMEAVERAGELIGHTLEVELThe struct member offsets.
-
-
Constructor Details
-
VkHdrMetadataEXT
Creates aVkHdrMetadataEXT
instance at the current position of the specifiedByteBuffer
container. Changes to the buffer's content will be visible to the struct instance and vice versa.The created instance holds a strong reference to the container object.
-
-
Method Details
-
sizeof
public int sizeof()Description copied from class:Struct
Returnssizeof(struct)
.- Specified by:
sizeof
in classStruct<VkHdrMetadataEXT>
-
sType
public int sType()- Returns:
- the value of the
sType
field.
-
pNext
public long pNext()- Returns:
- the value of the
pNext
field.
-
displayPrimaryRed
- Returns:
- a
VkXYColorEXT
view of thedisplayPrimaryRed
field.
-
displayPrimaryGreen
- Returns:
- a
VkXYColorEXT
view of thedisplayPrimaryGreen
field.
-
displayPrimaryBlue
- Returns:
- a
VkXYColorEXT
view of thedisplayPrimaryBlue
field.
-
whitePoint
- Returns:
- a
VkXYColorEXT
view of thewhitePoint
field.
-
maxLuminance
public float maxLuminance()- Returns:
- the value of the
maxLuminance
field.
-
minLuminance
public float minLuminance()- Returns:
- the value of the
minLuminance
field.
-
maxContentLightLevel
public float maxContentLightLevel()- Returns:
- the value of the
maxContentLightLevel
field.
-
maxFrameAverageLightLevel
public float maxFrameAverageLightLevel()- Returns:
- the value of the
maxFrameAverageLightLevel
field.
-
sType
Sets the specified value to thesType
field. -
sType$Default
Sets theSTRUCTURE_TYPE_HDR_METADATA_EXT
value to thesType
field. -
pNext
Sets the specified value to thepNext
field. -
pNext
Prepends the specifiedVkHdrVividDynamicMetadataHUAWEI
value to thepNext
chain. -
displayPrimaryRed
Copies the specifiedVkXYColorEXT
to thedisplayPrimaryRed
field. -
displayPrimaryRed
Passes thedisplayPrimaryRed
field to the specifiedConsumer
. -
displayPrimaryGreen
Copies the specifiedVkXYColorEXT
to thedisplayPrimaryGreen
field. -
displayPrimaryGreen
Passes thedisplayPrimaryGreen
field to the specifiedConsumer
. -
displayPrimaryBlue
Copies the specifiedVkXYColorEXT
to thedisplayPrimaryBlue
field. -
displayPrimaryBlue
Passes thedisplayPrimaryBlue
field to the specifiedConsumer
. -
whitePoint
Copies the specifiedVkXYColorEXT
to thewhitePoint
field. -
whitePoint
Passes thewhitePoint
field to the specifiedConsumer
. -
maxLuminance
Sets the specified value to themaxLuminance
field. -
minLuminance
Sets the specified value to theminLuminance
field. -
maxContentLightLevel
Sets the specified value to themaxContentLightLevel
field. -
maxFrameAverageLightLevel
Sets the specified value to themaxFrameAverageLightLevel
field. -
set
public VkHdrMetadataEXT set(int sType, long pNext, VkXYColorEXT displayPrimaryRed, VkXYColorEXT displayPrimaryGreen, VkXYColorEXT displayPrimaryBlue, VkXYColorEXT whitePoint, float maxLuminance, float minLuminance, float maxContentLightLevel, float maxFrameAverageLightLevel) Initializes this struct with the specified values. -
set
Copies the specified struct data to this struct.- Parameters:
src
- the source struct- Returns:
- this struct
-
malloc
Returns a newVkHdrMetadataEXT
instance allocated withmemAlloc
. The instance must be explicitly freed. -
calloc
Returns a newVkHdrMetadataEXT
instance allocated withmemCalloc
. The instance must be explicitly freed. -
create
Returns a newVkHdrMetadataEXT
instance allocated withBufferUtils
. -
create
Returns a newVkHdrMetadataEXT
instance for the specified memory address. -
createSafe
-
malloc
Returns a newVkHdrMetadataEXT.Buffer
instance allocated withmemAlloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
calloc
Returns a newVkHdrMetadataEXT.Buffer
instance allocated withmemCalloc
. The instance must be explicitly freed.- Parameters:
capacity
- the buffer capacity
-
create
Returns a newVkHdrMetadataEXT.Buffer
instance allocated withBufferUtils
.- Parameters:
capacity
- the buffer capacity
-
create
Create aVkHdrMetadataEXT.Buffer
instance at the specified memory.- Parameters:
address
- the memory addresscapacity
- the buffer capacity
-
createSafe
-
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
mallocStack
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)
instead. -
callocStack
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)
instead. -
malloc
Returns a newVkHdrMetadataEXT
instance allocated on the specifiedMemoryStack
.- Parameters:
stack
- the stack from which to allocate
-
calloc
Returns a newVkHdrMetadataEXT
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
stack
- the stack from which to allocate
-
malloc
Returns a newVkHdrMetadataEXT.Buffer
instance allocated on the specifiedMemoryStack
.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
calloc
Returns a newVkHdrMetadataEXT.Buffer
instance allocated on the specifiedMemoryStack
and initializes all its bits to zero.- Parameters:
capacity
- the buffer capacitystack
- the stack from which to allocate
-
nsType
public static int nsType(long struct) Unsafe version ofsType()
. -
npNext
public static long npNext(long struct) Unsafe version ofpNext()
. -
ndisplayPrimaryRed
Unsafe version ofdisplayPrimaryRed()
. -
ndisplayPrimaryGreen
Unsafe version ofdisplayPrimaryGreen()
. -
ndisplayPrimaryBlue
Unsafe version ofdisplayPrimaryBlue()
. -
nwhitePoint
Unsafe version ofwhitePoint()
. -
nmaxLuminance
public static float nmaxLuminance(long struct) Unsafe version ofmaxLuminance()
. -
nminLuminance
public static float nminLuminance(long struct) Unsafe version ofminLuminance()
. -
nmaxContentLightLevel
public static float nmaxContentLightLevel(long struct) Unsafe version ofmaxContentLightLevel()
. -
nmaxFrameAverageLightLevel
public static float nmaxFrameAverageLightLevel(long struct) Unsafe version ofmaxFrameAverageLightLevel()
. -
nsType
public static void nsType(long struct, int value) Unsafe version ofsType
. -
npNext
public static void npNext(long struct, long value) Unsafe version ofpNext
. -
ndisplayPrimaryRed
Unsafe version ofdisplayPrimaryRed
. -
ndisplayPrimaryGreen
Unsafe version ofdisplayPrimaryGreen
. -
ndisplayPrimaryBlue
Unsafe version ofdisplayPrimaryBlue
. -
nwhitePoint
Unsafe version ofwhitePoint
. -
nmaxLuminance
public static void nmaxLuminance(long struct, float value) Unsafe version ofmaxLuminance
. -
nminLuminance
public static void nminLuminance(long struct, float value) Unsafe version ofminLuminance
. -
nmaxContentLightLevel
public static void nmaxContentLightLevel(long struct, float value) Unsafe version ofmaxContentLightLevel
. -
nmaxFrameAverageLightLevel
public static void nmaxFrameAverageLightLevel(long struct, float value) Unsafe version ofmaxFrameAverageLightLevel
.
-