Package org.lwjgl.vulkan
Class VkHdrMetadataEXT
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.vulkan.VkHdrMetadataEXT
-
- All Implemented Interfaces:
java.lang.AutoCloseable,org.lwjgl.system.NativeResource,org.lwjgl.system.Pointer
public class VkHdrMetadataEXT extends org.lwjgl.system.Struct implements org.lwjgl.system.NativeResourceSpecify Hdr metadata.Valid Usage (Implicit)
sTypemust beSTRUCTURE_TYPE_HDR_METADATA_EXTpNextmust beNULL
Note
The validity and use of this data is outside the scope of Vulkan.
See Also
VkXYColorEXT,SetHdrMetadataEXTLayout
struct VkHdrMetadataEXT { VkStructureTypesType(); void const *pNext();VkXYColorEXTdisplayPrimaryRed();VkXYColorEXTdisplayPrimaryGreen();VkXYColorEXTdisplayPrimaryBlue();VkXYColorEXTwhitePoint(); floatmaxLuminance(); floatminLuminance(); floatmaxContentLightLevel(); floatmaxFrameAverageLightLevel(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classVkHdrMetadataEXT.BufferAn array ofVkHdrMetadataEXTstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intDISPLAYPRIMARYBLUE
DISPLAYPRIMARYGREEN
DISPLAYPRIMARYRED
MAXCONTENTLIGHTLEVEL
MAXFRAMEAVERAGELIGHTLEVEL
MAXLUMINANCE
MINLUMINANCE
PNEXTThe struct member offsets.static intSIZEOFThe struct size in bytes.static intSTYPE
WHITEPOINTThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description VkHdrMetadataEXT(java.nio.ByteBuffer container)Creates aVkHdrMetadataEXTinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static VkHdrMetadataEXTcalloc()Returns a newVkHdrMetadataEXTinstance allocated withmemCalloc.static VkHdrMetadataEXT.Buffercalloc(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemCalloc.static VkHdrMetadataEXT.Buffercalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXTcalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXTcallocStack()Deprecated.static VkHdrMetadataEXT.BuffercallocStack(int capacity)Deprecated.static VkHdrMetadataEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkHdrMetadataEXTcallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.static VkHdrMetadataEXTcreate()Returns a newVkHdrMetadataEXTinstance allocated withBufferUtils.static VkHdrMetadataEXT.Buffercreate(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated withBufferUtils.static VkHdrMetadataEXTcreate(long address)Returns a newVkHdrMetadataEXTinstance for the specified memory address.static VkHdrMetadataEXT.Buffercreate(long address, int capacity)Create aVkHdrMetadataEXT.Bufferinstance at the specified memory.static VkHdrMetadataEXTcreateSafe(long address)static VkHdrMetadataEXT.BuffercreateSafe(long address, int capacity)VkXYColorEXTdisplayPrimaryBlue()aVkXYColorEXTstructure specifying the reference monitor’s blue primary in chromaticity coordinatesVkHdrMetadataEXTdisplayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryBlue()field to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryBlue(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryBlue()field.VkXYColorEXTdisplayPrimaryGreen()aVkXYColorEXTstructure specifying the reference monitor’s green primary in chromaticity coordinatesVkHdrMetadataEXTdisplayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryGreen()field to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryGreen(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreen()field.VkXYColorEXTdisplayPrimaryRed()aVkXYColorEXTstructure specifying the reference monitor’s red primary in chromaticity coordinatesVkHdrMetadataEXTdisplayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryRed()field to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryRed(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryRed()field.static VkHdrMetadataEXTmalloc()Returns a newVkHdrMetadataEXTinstance allocated withmemAlloc.static VkHdrMetadataEXT.Buffermalloc(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemAlloc.static VkHdrMetadataEXT.Buffermalloc(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkHdrMetadataEXTmalloc(org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.static VkHdrMetadataEXTmallocStack()Deprecated.static VkHdrMetadataEXT.BuffermallocStack(int capacity)Deprecated.static VkHdrMetadataEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Deprecated.static VkHdrMetadataEXTmallocStack(org.lwjgl.system.MemoryStack stack)Deprecated.floatmaxContentLightLevel()content’s maximum luminance in nitsVkHdrMetadataEXTmaxContentLightLevel(float value)Sets the specified value to themaxContentLightLevel()field.floatmaxFrameAverageLightLevel()the maximum frame average light level in nitsVkHdrMetadataEXTmaxFrameAverageLightLevel(float value)Sets the specified value to themaxFrameAverageLightLevel()field.floatmaxLuminance()the maximum luminance of the reference monitor in nitsVkHdrMetadataEXTmaxLuminance(float value)Sets the specified value to themaxLuminance()field.floatminLuminance()the minimum luminance of the reference monitor in nitsVkHdrMetadataEXTminLuminance(float value)Sets the specified value to theminLuminance()field.static VkXYColorEXTndisplayPrimaryBlue(long struct)Unsafe version ofdisplayPrimaryBlue().static voidndisplayPrimaryBlue(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryBlue.static VkXYColorEXTndisplayPrimaryGreen(long struct)Unsafe version ofdisplayPrimaryGreen().static voidndisplayPrimaryGreen(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryGreen.static VkXYColorEXTndisplayPrimaryRed(long struct)Unsafe version ofdisplayPrimaryRed().static voidndisplayPrimaryRed(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryRed.static floatnmaxContentLightLevel(long struct)Unsafe version ofmaxContentLightLevel().static voidnmaxContentLightLevel(long struct, float value)Unsafe version ofmaxContentLightLevel.static floatnmaxFrameAverageLightLevel(long struct)Unsafe version ofmaxFrameAverageLightLevel().static voidnmaxFrameAverageLightLevel(long struct, float value)Unsafe version ofmaxFrameAverageLightLevel.static floatnmaxLuminance(long struct)Unsafe version ofmaxLuminance().static voidnmaxLuminance(long struct, float value)Unsafe version ofmaxLuminance.static floatnminLuminance(long struct)Unsafe version ofminLuminance().static voidnminLuminance(long struct, float value)Unsafe version ofminLuminance.static longnpNext(long struct)Unsafe version ofpNext().static voidnpNext(long struct, long value)Unsafe version ofpNext.static intnsType(long struct)Unsafe version ofsType().static voidnsType(long struct, int value)Unsafe version ofsType.static VkXYColorEXTnwhitePoint(long struct)Unsafe version ofwhitePoint().static voidnwhitePoint(long struct, VkXYColorEXT value)Unsafe version ofwhitePoint.longpNext()NULLor a pointer to a structure extending this structure.VkHdrMetadataEXTpNext(long value)Sets the specified value to thepNext()field.VkHdrMetadataEXTset(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.VkHdrMetadataEXTset(VkHdrMetadataEXT src)Copies the specified struct data to this struct.intsizeof()intsType()the type of this structure.VkHdrMetadataEXTsType(int value)Sets the specified value to thesType()field.VkHdrMetadataEXTsType$Default()Sets theSTRUCTURE_TYPE_HDR_METADATA_EXTvalue to thesType()field.VkXYColorEXTwhitePoint()aVkXYColorEXTstructure specifying the reference monitor’s white-point in chromaticity coordinatesVkHdrMetadataEXTwhitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thewhitePoint()field to the specifiedConsumer.VkHdrMetadataEXTwhitePoint(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thewhitePoint()field.
-
-
-
Constructor Detail
-
VkHdrMetadataEXT
public VkHdrMetadataEXT(java.nio.ByteBuffer container)
Creates aVkHdrMetadataEXTinstance at the current position of the specifiedByteBuffercontainer. 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 Detail
-
sizeof
public int sizeof()
- Specified by:
sizeofin classorg.lwjgl.system.Struct
-
sType
public int sType()
the type of this structure.
-
pNext
public long pNext()
NULLor a pointer to a structure extending this structure.
-
displayPrimaryRed
public VkXYColorEXT displayPrimaryRed()
aVkXYColorEXTstructure specifying the reference monitor’s red primary in chromaticity coordinates
-
displayPrimaryGreen
public VkXYColorEXT displayPrimaryGreen()
aVkXYColorEXTstructure specifying the reference monitor’s green primary in chromaticity coordinates
-
displayPrimaryBlue
public VkXYColorEXT displayPrimaryBlue()
aVkXYColorEXTstructure specifying the reference monitor’s blue primary in chromaticity coordinates
-
whitePoint
public VkXYColorEXT whitePoint()
aVkXYColorEXTstructure specifying the reference monitor’s white-point in chromaticity coordinates
-
maxLuminance
public float maxLuminance()
the maximum luminance of the reference monitor in nits
-
minLuminance
public float minLuminance()
the minimum luminance of the reference monitor in nits
-
maxContentLightLevel
public float maxContentLightLevel()
content’s maximum luminance in nits
-
maxFrameAverageLightLevel
public float maxFrameAverageLightLevel()
the maximum frame average light level in nits
-
sType
public VkHdrMetadataEXT sType(int value)
Sets the specified value to thesType()field.
-
sType$Default
public VkHdrMetadataEXT sType$Default()
Sets theSTRUCTURE_TYPE_HDR_METADATA_EXTvalue to thesType()field.
-
pNext
public VkHdrMetadataEXT pNext(long value)
Sets the specified value to thepNext()field.
-
displayPrimaryRed
public VkHdrMetadataEXT displayPrimaryRed(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryRed()field.
-
displayPrimaryRed
public VkHdrMetadataEXT displayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryRed()field to the specifiedConsumer.
-
displayPrimaryGreen
public VkHdrMetadataEXT displayPrimaryGreen(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreen()field.
-
displayPrimaryGreen
public VkHdrMetadataEXT displayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryGreen()field to the specifiedConsumer.
-
displayPrimaryBlue
public VkHdrMetadataEXT displayPrimaryBlue(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryBlue()field.
-
displayPrimaryBlue
public VkHdrMetadataEXT displayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryBlue()field to the specifiedConsumer.
-
whitePoint
public VkHdrMetadataEXT whitePoint(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thewhitePoint()field.
-
whitePoint
public VkHdrMetadataEXT whitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thewhitePoint()field to the specifiedConsumer.
-
maxLuminance
public VkHdrMetadataEXT maxLuminance(float value)
Sets the specified value to themaxLuminance()field.
-
minLuminance
public VkHdrMetadataEXT minLuminance(float value)
Sets the specified value to theminLuminance()field.
-
maxContentLightLevel
public VkHdrMetadataEXT maxContentLightLevel(float value)
Sets the specified value to themaxContentLightLevel()field.
-
maxFrameAverageLightLevel
public VkHdrMetadataEXT maxFrameAverageLightLevel(float value)
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
public VkHdrMetadataEXT set(VkHdrMetadataEXT src)
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
public static VkHdrMetadataEXT malloc()
Returns a newVkHdrMetadataEXTinstance allocated withmemAlloc. The instance must be explicitly freed.
-
calloc
public static VkHdrMetadataEXT calloc()
Returns a newVkHdrMetadataEXTinstance allocated withmemCalloc. The instance must be explicitly freed.
-
create
public static VkHdrMetadataEXT create()
Returns a newVkHdrMetadataEXTinstance allocated withBufferUtils.
-
create
public static VkHdrMetadataEXT create(long address)
Returns a newVkHdrMetadataEXTinstance for the specified memory address.
-
createSafe
@Nullable public static VkHdrMetadataEXT createSafe(long address)
-
malloc
public static VkHdrMetadataEXT.Buffer malloc(int capacity)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
public static VkHdrMetadataEXT.Buffer calloc(int capacity)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
public static VkHdrMetadataEXT.Buffer create(int capacity)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
public static VkHdrMetadataEXT.Buffer create(long address, int capacity)
Create aVkHdrMetadataEXT.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static VkHdrMetadataEXT.Buffer createSafe(long address, int capacity)
-
mallocStack
@Deprecated public static VkHdrMetadataEXT mallocStack()
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkHdrMetadataEXT callocStack()
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkHdrMetadataEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(MemoryStack)instead.
-
callocStack
@Deprecated public static VkHdrMetadataEXT callocStack(org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(MemoryStack)instead.
-
mallocStack
@Deprecated public static VkHdrMetadataEXT.Buffer mallocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkHdrMetadataEXT.Buffer callocStack(int capacity)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
mallocStack
@Deprecated public static VkHdrMetadataEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usemalloc(int, MemoryStack)instead.
-
callocStack
@Deprecated public static VkHdrMetadataEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
Deprecated.Deprecated for removal in 3.4.0. Usecalloc(int, MemoryStack)instead.
-
malloc
public static VkHdrMetadataEXT malloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
public static VkHdrMetadataEXT calloc(org.lwjgl.system.MemoryStack stack)
Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
public static VkHdrMetadataEXT.Buffer malloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
calloc
public static VkHdrMetadataEXT.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocatecapacity- the buffer capacity
-
nsType
public static int nsType(long struct)
Unsafe version ofsType().
-
npNext
public static long npNext(long struct)
Unsafe version ofpNext().
-
ndisplayPrimaryRed
public static VkXYColorEXT ndisplayPrimaryRed(long struct)
Unsafe version ofdisplayPrimaryRed().
-
ndisplayPrimaryGreen
public static VkXYColorEXT ndisplayPrimaryGreen(long struct)
Unsafe version ofdisplayPrimaryGreen().
-
ndisplayPrimaryBlue
public static VkXYColorEXT ndisplayPrimaryBlue(long struct)
Unsafe version ofdisplayPrimaryBlue().
-
nwhitePoint
public static VkXYColorEXT nwhitePoint(long struct)
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
public static void ndisplayPrimaryRed(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryRed.
-
ndisplayPrimaryGreen
public static void ndisplayPrimaryGreen(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryGreen.
-
ndisplayPrimaryBlue
public static void ndisplayPrimaryBlue(long struct, VkXYColorEXT value)Unsafe version ofdisplayPrimaryBlue.
-
nwhitePoint
public static void nwhitePoint(long struct, VkXYColorEXT value)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.
-
-