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.NativeResourcestructure to specify 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,SetHdrMetadataEXTMember documentation
sType– the type of this structure.pNext–NULLor a pointer to an extension-specific structure.displayPrimaryRed– the mastering display’s red primary in chromaticity coordinatesdisplayPrimaryGreen– the mastering display’s green primary in chromaticity coordinatesdisplayPrimaryBlue– the mastering display’s blue primary in chromaticity coordinateswhitePoint– the mastering display’s white-point in chromaticity coordinatesmaxLuminance– the maximum luminance of the mastering display in nitsminLuminance– the minimum luminance of the mastering display in nitsmaxContentLightLevel– content’s maximum luminance in nitsmaxFrameAverageLightLevel– the maximum frame average light level in nits
Layout
struct VkHdrMetadataEXT { VkStructureType sType; void const * pNext;VkXYColorEXTdisplayPrimaryRed;VkXYColorEXTdisplayPrimaryGreen;VkXYColorEXTdisplayPrimaryBlue;VkXYColorEXTwhitePoint; float maxLuminance; float minLuminance; float maxContentLightLevel; float maxFrameAverageLightLevel; }
-
-
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 Modifier and Type Method Description static VkHdrMetadataEXTcalloc()Returns a newVkHdrMetadataEXTinstance allocated withmemCalloc.static VkHdrMetadataEXT.Buffercalloc(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemCalloc.static VkHdrMetadataEXTcallocStack()Returns a newVkHdrMetadataEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXT.BuffercallocStack(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXT.BuffercallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXTcallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.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()Returns aVkXYColorEXTview of thedisplayPrimaryBluefield.VkHdrMetadataEXTdisplayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryBluefield to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryBlue(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryBluefield.VkXYColorEXTdisplayPrimaryGreen()Returns aVkXYColorEXTview of thedisplayPrimaryGreenfield.VkHdrMetadataEXTdisplayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryGreenfield to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryGreen(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreenfield.VkXYColorEXTdisplayPrimaryRed()Returns aVkXYColorEXTview of thedisplayPrimaryRedfield.VkHdrMetadataEXTdisplayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thedisplayPrimaryRedfield to the specifiedConsumer.VkHdrMetadataEXTdisplayPrimaryRed(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thedisplayPrimaryRedfield.static VkHdrMetadataEXTmalloc()Returns a newVkHdrMetadataEXTinstance allocated withmemAlloc.static VkHdrMetadataEXT.Buffermalloc(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemAlloc.static VkHdrMetadataEXTmallocStack()Returns a newVkHdrMetadataEXTinstance allocated on the thread-localMemoryStack.static VkHdrMetadataEXT.BuffermallocStack(int capacity)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the thread-localMemoryStack.static VkHdrMetadataEXT.BuffermallocStack(int capacity, org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkHdrMetadataEXTmallocStack(org.lwjgl.system.MemoryStack stack)Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.floatmaxContentLightLevel()Returns the value of themaxContentLightLevelfield.VkHdrMetadataEXTmaxContentLightLevel(float value)Sets the specified value to themaxContentLightLevelfield.floatmaxFrameAverageLightLevel()Returns the value of themaxFrameAverageLightLevelfield.VkHdrMetadataEXTmaxFrameAverageLightLevel(float value)Sets the specified value to themaxFrameAverageLightLevelfield.floatmaxLuminance()Returns the value of themaxLuminancefield.VkHdrMetadataEXTmaxLuminance(float value)Sets the specified value to themaxLuminancefield.floatminLuminance()Returns the value of theminLuminancefield.VkHdrMetadataEXTminLuminance(float value)Sets the specified value to theminLuminancefield.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()Returns the value of thepNextfield.VkHdrMetadataEXTpNext(long value)Sets the specified value to thepNextfield.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()Returns the value of thesTypefield.VkHdrMetadataEXTsType(int value)Sets the specified value to thesTypefield.VkXYColorEXTwhitePoint()Returns aVkXYColorEXTview of thewhitePointfield.VkHdrMetadataEXTwhitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)Passes thewhitePointfield to the specifiedConsumer.VkHdrMetadataEXTwhitePoint(VkXYColorEXT value)Copies the specifiedVkXYColorEXTto thewhitePointfield.
-
-
-
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()
Returns the value of thesTypefield.
-
pNext
public long pNext()
Returns the value of thepNextfield.
-
displayPrimaryRed
public VkXYColorEXT displayPrimaryRed()
Returns aVkXYColorEXTview of thedisplayPrimaryRedfield.
-
displayPrimaryGreen
public VkXYColorEXT displayPrimaryGreen()
Returns aVkXYColorEXTview of thedisplayPrimaryGreenfield.
-
displayPrimaryBlue
public VkXYColorEXT displayPrimaryBlue()
Returns aVkXYColorEXTview of thedisplayPrimaryBluefield.
-
whitePoint
public VkXYColorEXT whitePoint()
Returns aVkXYColorEXTview of thewhitePointfield.
-
maxLuminance
public float maxLuminance()
Returns the value of themaxLuminancefield.
-
minLuminance
public float minLuminance()
Returns the value of theminLuminancefield.
-
maxContentLightLevel
public float maxContentLightLevel()
Returns the value of themaxContentLightLevelfield.
-
maxFrameAverageLightLevel
public float maxFrameAverageLightLevel()
Returns the value of themaxFrameAverageLightLevelfield.
-
sType
public VkHdrMetadataEXT sType(int value)
Sets the specified value to thesTypefield.
-
pNext
public VkHdrMetadataEXT pNext(long value)
Sets the specified value to thepNextfield.
-
displayPrimaryRed
public VkHdrMetadataEXT displayPrimaryRed(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryRedfield.
-
displayPrimaryRed
public VkHdrMetadataEXT displayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryRedfield to the specifiedConsumer.
-
displayPrimaryGreen
public VkHdrMetadataEXT displayPrimaryGreen(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreenfield.
-
displayPrimaryGreen
public VkHdrMetadataEXT displayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryGreenfield to the specifiedConsumer.
-
displayPrimaryBlue
public VkHdrMetadataEXT displayPrimaryBlue(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thedisplayPrimaryBluefield.
-
displayPrimaryBlue
public VkHdrMetadataEXT displayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thedisplayPrimaryBluefield to the specifiedConsumer.
-
whitePoint
public VkHdrMetadataEXT whitePoint(VkXYColorEXT value)
Copies the specifiedVkXYColorEXTto thewhitePointfield.
-
whitePoint
public VkHdrMetadataEXT whitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes thewhitePointfield to the specifiedConsumer.
-
maxLuminance
public VkHdrMetadataEXT maxLuminance(float value)
Sets the specified value to themaxLuminancefield.
-
minLuminance
public VkHdrMetadataEXT minLuminance(float value)
Sets the specified value to theminLuminancefield.
-
maxContentLightLevel
public VkHdrMetadataEXT maxContentLightLevel(float value)
Sets the specified value to themaxContentLightLevelfield.
-
maxFrameAverageLightLevel
public VkHdrMetadataEXT maxFrameAverageLightLevel(float value)
Sets the specified value to themaxFrameAverageLightLevelfield.
-
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
public static VkHdrMetadataEXT mallocStack()
Returns a newVkHdrMetadataEXTinstance allocated on the thread-localMemoryStack.
-
callocStack
public static VkHdrMetadataEXT callocStack()
Returns a newVkHdrMetadataEXTinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.
-
mallocStack
public static VkHdrMetadataEXT mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
callocStack
public static VkHdrMetadataEXT callocStack(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
-
mallocStack
public static VkHdrMetadataEXT.Buffer mallocStack(int capacity)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the thread-localMemoryStack.- Parameters:
capacity- the buffer capacity
-
callocStack
public static VkHdrMetadataEXT.Buffer callocStack(int capacity)
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the thread-localMemoryStackand initializes all its bits to zero.- Parameters:
capacity- the buffer capacity
-
mallocStack
public static VkHdrMetadataEXT.Buffer mallocStack(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
-
callocStack
public static VkHdrMetadataEXT.Buffer callocStack(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.
-
-