public class VkHdrMetadataEXT
extends org.lwjgl.system.Struct
implements org.lwjgl.system.NativeResource
sType must be STRUCTURE_TYPE_HDR_METADATA_EXTpNext must be NULLThe validity and use of this data is outside the scope of Vulkan.
VkXYColorEXT, SetHdrMetadataEXT
sType – the type of this structure.pNext – NULL or 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
struct VkHdrMetadataEXT {
VkStructureType sType;
void const * pNext;
VkXYColorEXT displayPrimaryRed;
VkXYColorEXT displayPrimaryGreen;
VkXYColorEXT displayPrimaryBlue;
VkXYColorEXT whitePoint;
float maxLuminance;
float minLuminance;
float maxContentLightLevel;
float maxFrameAverageLightLevel;
}| Modifier and Type | Class and Description |
|---|---|
static class |
VkHdrMetadataEXT.Buffer
An array of
VkHdrMetadataEXT structs. |
| Modifier and Type | Field and Description |
|---|---|
static int |
ALIGNOF
The struct alignment in bytes.
|
static int |
DISPLAYPRIMARYBLUE
The struct member offsets.
|
static int |
DISPLAYPRIMARYGREEN
The struct member offsets.
|
static int |
DISPLAYPRIMARYRED
The struct member offsets.
|
static int |
MAXCONTENTLIGHTLEVEL
The struct member offsets.
|
static int |
MAXFRAMEAVERAGELIGHTLEVEL
The struct member offsets.
|
static int |
MAXLUMINANCE
The struct member offsets.
|
static int |
MINLUMINANCE
The struct member offsets.
|
static int |
PNEXT
The struct member offsets.
|
static int |
SIZEOF
The struct size in bytes.
|
static int |
STYPE
The struct member offsets.
|
static int |
WHITEPOINT
The struct member offsets.
|
| Constructor and Description |
|---|
VkHdrMetadataEXT(java.nio.ByteBuffer container)
Creates a
VkHdrMetadataEXT instance at the current position of the specified ByteBuffer container. |
| Modifier and Type | Method and Description |
|---|---|
static VkHdrMetadataEXT |
calloc()
Returns a new
VkHdrMetadataEXT instance allocated with memCalloc. |
static VkHdrMetadataEXT.Buffer |
calloc(int capacity)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated with memCalloc. |
static VkHdrMetadataEXT |
callocStack()
Returns a new
VkHdrMetadataEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkHdrMetadataEXT.Buffer |
callocStack(int capacity)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero. |
static VkHdrMetadataEXT.Buffer |
callocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkHdrMetadataEXT |
callocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkHdrMetadataEXT instance allocated on the specified MemoryStack and initializes all its bits to zero. |
static VkHdrMetadataEXT |
create()
Returns a new
VkHdrMetadataEXT instance allocated with BufferUtils. |
static VkHdrMetadataEXT.Buffer |
create(int capacity)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated with BufferUtils. |
static VkHdrMetadataEXT |
create(long address)
Returns a new
VkHdrMetadataEXT instance for the specified memory address. |
static VkHdrMetadataEXT.Buffer |
create(long address,
int capacity)
Create a
VkHdrMetadataEXT.Buffer instance at the specified memory. |
static VkHdrMetadataEXT |
createSafe(long address)
|
static VkHdrMetadataEXT.Buffer |
createSafe(long address,
int capacity)
|
VkXYColorEXT |
displayPrimaryBlue()
Returns a
VkXYColorEXT view of the displayPrimaryBlue field. |
VkHdrMetadataEXT |
displayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes the
displayPrimaryBlue field to the specified Consumer. |
VkHdrMetadataEXT |
displayPrimaryBlue(VkXYColorEXT value)
Copies the specified
VkXYColorEXT to the displayPrimaryBlue field. |
VkXYColorEXT |
displayPrimaryGreen()
Returns a
VkXYColorEXT view of the displayPrimaryGreen field. |
VkHdrMetadataEXT |
displayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes the
displayPrimaryGreen field to the specified Consumer. |
VkHdrMetadataEXT |
displayPrimaryGreen(VkXYColorEXT value)
Copies the specified
VkXYColorEXT to the displayPrimaryGreen field. |
VkXYColorEXT |
displayPrimaryRed()
Returns a
VkXYColorEXT view of the displayPrimaryRed field. |
VkHdrMetadataEXT |
displayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes the
displayPrimaryRed field to the specified Consumer. |
VkHdrMetadataEXT |
displayPrimaryRed(VkXYColorEXT value)
Copies the specified
VkXYColorEXT to the displayPrimaryRed field. |
static VkHdrMetadataEXT |
malloc()
Returns a new
VkHdrMetadataEXT instance allocated with memAlloc. |
static VkHdrMetadataEXT.Buffer |
malloc(int capacity)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated with memAlloc. |
static VkHdrMetadataEXT |
mallocStack()
Returns a new
VkHdrMetadataEXT instance allocated on the thread-local MemoryStack. |
static VkHdrMetadataEXT.Buffer |
mallocStack(int capacity)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated on the thread-local MemoryStack. |
static VkHdrMetadataEXT.Buffer |
mallocStack(int capacity,
org.lwjgl.system.MemoryStack stack)
Returns a new
VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack. |
static VkHdrMetadataEXT |
mallocStack(org.lwjgl.system.MemoryStack stack)
Returns a new
VkHdrMetadataEXT instance allocated on the specified MemoryStack. |
float |
maxContentLightLevel()
Returns the value of the
maxContentLightLevel field. |
VkHdrMetadataEXT |
maxContentLightLevel(float value)
Sets the specified value to the
maxContentLightLevel field. |
float |
maxFrameAverageLightLevel()
Returns the value of the
maxFrameAverageLightLevel field. |
VkHdrMetadataEXT |
maxFrameAverageLightLevel(float value)
Sets the specified value to the
maxFrameAverageLightLevel field. |
float |
maxLuminance()
Returns the value of the
maxLuminance field. |
VkHdrMetadataEXT |
maxLuminance(float value)
Sets the specified value to the
maxLuminance field. |
float |
minLuminance()
Returns the value of the
minLuminance field. |
VkHdrMetadataEXT |
minLuminance(float value)
Sets the specified value to the
minLuminance field. |
static VkXYColorEXT |
ndisplayPrimaryBlue(long struct)
Unsafe version of
displayPrimaryBlue(). |
static void |
ndisplayPrimaryBlue(long struct,
VkXYColorEXT value)
Unsafe version of
displayPrimaryBlue. |
static VkXYColorEXT |
ndisplayPrimaryGreen(long struct)
Unsafe version of
displayPrimaryGreen(). |
static void |
ndisplayPrimaryGreen(long struct,
VkXYColorEXT value)
Unsafe version of
displayPrimaryGreen. |
static VkXYColorEXT |
ndisplayPrimaryRed(long struct)
Unsafe version of
displayPrimaryRed(). |
static void |
ndisplayPrimaryRed(long struct,
VkXYColorEXT value)
Unsafe version of
displayPrimaryRed. |
static float |
nmaxContentLightLevel(long struct)
Unsafe version of
maxContentLightLevel(). |
static void |
nmaxContentLightLevel(long struct,
float value)
Unsafe version of
maxContentLightLevel. |
static float |
nmaxFrameAverageLightLevel(long struct)
Unsafe version of
maxFrameAverageLightLevel(). |
static void |
nmaxFrameAverageLightLevel(long struct,
float value)
Unsafe version of
maxFrameAverageLightLevel. |
static float |
nmaxLuminance(long struct)
Unsafe version of
maxLuminance(). |
static void |
nmaxLuminance(long struct,
float value)
Unsafe version of
maxLuminance. |
static float |
nminLuminance(long struct)
Unsafe version of
minLuminance(). |
static void |
nminLuminance(long struct,
float value)
Unsafe version of
minLuminance. |
static long |
npNext(long struct)
Unsafe version of
pNext(). |
static void |
npNext(long struct,
long value)
Unsafe version of
pNext. |
static int |
nsType(long struct)
Unsafe version of
sType(). |
static void |
nsType(long struct,
int value)
Unsafe version of
sType. |
static VkXYColorEXT |
nwhitePoint(long struct)
Unsafe version of
whitePoint(). |
static void |
nwhitePoint(long struct,
VkXYColorEXT value)
Unsafe version of
whitePoint. |
long |
pNext()
Returns the value of the
pNext field. |
VkHdrMetadataEXT |
pNext(long value)
Sets the specified value to the
pNext field. |
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.
|
VkHdrMetadataEXT |
set(VkHdrMetadataEXT src)
Copies the specified struct data to this struct.
|
int |
sizeof() |
int |
sType()
Returns the value of the
sType field. |
VkHdrMetadataEXT |
sType(int value)
Sets the specified value to the
sType field. |
VkXYColorEXT |
whitePoint()
Returns a
VkXYColorEXT view of the whitePoint field. |
VkHdrMetadataEXT |
whitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)
Passes the
whitePoint field to the specified Consumer. |
VkHdrMetadataEXT |
whitePoint(VkXYColorEXT value)
Copies the specified
VkXYColorEXT to the whitePoint field. |
public static final int SIZEOF
public static final int ALIGNOF
public static final int STYPE
public static final int PNEXT
public static final int DISPLAYPRIMARYRED
public static final int DISPLAYPRIMARYGREEN
public static final int DISPLAYPRIMARYBLUE
public static final int WHITEPOINT
public static final int MAXLUMINANCE
public static final int MINLUMINANCE
public static final int MAXCONTENTLIGHTLEVEL
public static final int MAXFRAMEAVERAGELIGHTLEVEL
public VkHdrMetadataEXT(java.nio.ByteBuffer container)
VkHdrMetadataEXT instance at the current position of the specified ByteBuffer 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.
public int sizeof()
sizeof in class org.lwjgl.system.Structpublic int sType()
sType field.public long pNext()
pNext field.public VkXYColorEXT displayPrimaryRed()
VkXYColorEXT view of the displayPrimaryRed field.public VkXYColorEXT displayPrimaryGreen()
VkXYColorEXT view of the displayPrimaryGreen field.public VkXYColorEXT displayPrimaryBlue()
VkXYColorEXT view of the displayPrimaryBlue field.public VkXYColorEXT whitePoint()
VkXYColorEXT view of the whitePoint field.public float maxLuminance()
maxLuminance field.public float minLuminance()
minLuminance field.public float maxContentLightLevel()
maxContentLightLevel field.public float maxFrameAverageLightLevel()
maxFrameAverageLightLevel field.public VkHdrMetadataEXT sType(int value)
sType field.public VkHdrMetadataEXT pNext(long value)
pNext field.public VkHdrMetadataEXT displayPrimaryRed(VkXYColorEXT value)
VkXYColorEXT to the displayPrimaryRed field.public VkHdrMetadataEXT displayPrimaryRed(java.util.function.Consumer<VkXYColorEXT> consumer)
displayPrimaryRed field to the specified Consumer.public VkHdrMetadataEXT displayPrimaryGreen(VkXYColorEXT value)
VkXYColorEXT to the displayPrimaryGreen field.public VkHdrMetadataEXT displayPrimaryGreen(java.util.function.Consumer<VkXYColorEXT> consumer)
displayPrimaryGreen field to the specified Consumer.public VkHdrMetadataEXT displayPrimaryBlue(VkXYColorEXT value)
VkXYColorEXT to the displayPrimaryBlue field.public VkHdrMetadataEXT displayPrimaryBlue(java.util.function.Consumer<VkXYColorEXT> consumer)
displayPrimaryBlue field to the specified Consumer.public VkHdrMetadataEXT whitePoint(VkXYColorEXT value)
VkXYColorEXT to the whitePoint field.public VkHdrMetadataEXT whitePoint(java.util.function.Consumer<VkXYColorEXT> consumer)
whitePoint field to the specified Consumer.public VkHdrMetadataEXT maxLuminance(float value)
maxLuminance field.public VkHdrMetadataEXT minLuminance(float value)
minLuminance field.public VkHdrMetadataEXT maxContentLightLevel(float value)
maxContentLightLevel field.public VkHdrMetadataEXT maxFrameAverageLightLevel(float value)
maxFrameAverageLightLevel field.public VkHdrMetadataEXT set(int sType, long pNext, VkXYColorEXT displayPrimaryRed, VkXYColorEXT displayPrimaryGreen, VkXYColorEXT displayPrimaryBlue, VkXYColorEXT whitePoint, float maxLuminance, float minLuminance, float maxContentLightLevel, float maxFrameAverageLightLevel)
public VkHdrMetadataEXT set(VkHdrMetadataEXT src)
src - the source structpublic static VkHdrMetadataEXT malloc()
VkHdrMetadataEXT instance allocated with memAlloc. The instance must be explicitly freed.public static VkHdrMetadataEXT calloc()
VkHdrMetadataEXT instance allocated with memCalloc. The instance must be explicitly freed.public static VkHdrMetadataEXT create()
VkHdrMetadataEXT instance allocated with BufferUtils.public static VkHdrMetadataEXT create(long address)
VkHdrMetadataEXT instance for the specified memory address.@Nullable public static VkHdrMetadataEXT createSafe(long address)
public static VkHdrMetadataEXT.Buffer malloc(int capacity)
VkHdrMetadataEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer calloc(int capacity)
VkHdrMetadataEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.capacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer create(int capacity)
VkHdrMetadataEXT.Buffer instance allocated with BufferUtils.capacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer create(long address, int capacity)
VkHdrMetadataEXT.Buffer instance at the specified memory.address - the memory addresscapacity - the buffer capacity@Nullable public static VkHdrMetadataEXT.Buffer createSafe(long address, int capacity)
public static VkHdrMetadataEXT mallocStack()
VkHdrMetadataEXT instance allocated on the thread-local MemoryStack.public static VkHdrMetadataEXT callocStack()
VkHdrMetadataEXT instance allocated on the thread-local MemoryStack and initializes all its bits to zero.public static VkHdrMetadataEXT mallocStack(org.lwjgl.system.MemoryStack stack)
VkHdrMetadataEXT instance allocated on the specified MemoryStack.stack - the stack from which to allocatepublic static VkHdrMetadataEXT callocStack(org.lwjgl.system.MemoryStack stack)
VkHdrMetadataEXT instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatepublic static VkHdrMetadataEXT.Buffer mallocStack(int capacity)
VkHdrMetadataEXT.Buffer instance allocated on the thread-local MemoryStack.capacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer callocStack(int capacity)
VkHdrMetadataEXT.Buffer instance allocated on the thread-local MemoryStack and initializes all its bits to zero.capacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer mallocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack.stack - the stack from which to allocatecapacity - the buffer capacitypublic static VkHdrMetadataEXT.Buffer callocStack(int capacity, org.lwjgl.system.MemoryStack stack)
VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.stack - the stack from which to allocatecapacity - the buffer capacitypublic static int nsType(long struct)
sType().public static long npNext(long struct)
pNext().public static VkXYColorEXT ndisplayPrimaryRed(long struct)
displayPrimaryRed().public static VkXYColorEXT ndisplayPrimaryGreen(long struct)
displayPrimaryGreen().public static VkXYColorEXT ndisplayPrimaryBlue(long struct)
displayPrimaryBlue().public static VkXYColorEXT nwhitePoint(long struct)
whitePoint().public static float nmaxLuminance(long struct)
maxLuminance().public static float nminLuminance(long struct)
minLuminance().public static float nmaxContentLightLevel(long struct)
maxContentLightLevel().public static float nmaxFrameAverageLightLevel(long struct)
maxFrameAverageLightLevel().public static void nsType(long struct,
int value)
sType.public static void npNext(long struct,
long value)
pNext.public static void ndisplayPrimaryRed(long struct,
VkXYColorEXT value)
displayPrimaryRed.public static void ndisplayPrimaryGreen(long struct,
VkXYColorEXT value)
displayPrimaryGreen.public static void ndisplayPrimaryBlue(long struct,
VkXYColorEXT value)
displayPrimaryBlue.public static void nwhitePoint(long struct,
VkXYColorEXT value)
whitePoint.public static void nmaxLuminance(long struct,
float value)
maxLuminance.public static void nminLuminance(long struct,
float value)
minLuminance.public static void nmaxContentLightLevel(long struct,
float value)
maxContentLightLevel.public static void nmaxFrameAverageLightLevel(long struct,
float value)
maxFrameAverageLightLevel.Copyright LWJGL. All Rights Reserved. License terms.