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.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe 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 aVkHdrMetadataEXTinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionstatic VkHdrMetadataEXTcalloc()Returns a newVkHdrMetadataEXTinstance allocated withmemCalloc.static VkHdrMetadataEXT.Buffercalloc(int capacity) Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemCalloc.static VkHdrMetadataEXT.Buffercalloc(int capacity, MemoryStack stack) Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXTcalloc(MemoryStack stack) Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.static VkHdrMetadataEXTDeprecated.static VkHdrMetadataEXT.BuffercallocStack(int capacity) Deprecated.static VkHdrMetadataEXT.BuffercallocStack(int capacity, MemoryStack stack) Deprecated.static VkHdrMetadataEXTcallocStack(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 @Nullable VkHdrMetadataEXTcreateSafe(long address) static @Nullable VkHdrMetadataEXT.BuffercreateSafe(long address, int capacity) displayPrimaryBlue(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryBluefield to the specifiedConsumer.displayPrimaryBlue(VkXYColorEXT value) Copies the specifiedVkXYColorEXTto thedisplayPrimaryBluefield.displayPrimaryGreen(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryGreenfield to the specifiedConsumer.displayPrimaryGreen(VkXYColorEXT value) Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreenfield.displayPrimaryRed(Consumer<VkXYColorEXT> consumer) Passes thedisplayPrimaryRedfield to the specifiedConsumer.displayPrimaryRed(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 VkHdrMetadataEXT.Buffermalloc(int capacity, MemoryStack stack) Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStack.static VkHdrMetadataEXTmalloc(MemoryStack stack) Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.static VkHdrMetadataEXTDeprecated.static VkHdrMetadataEXT.BuffermallocStack(int capacity) Deprecated.static VkHdrMetadataEXT.BuffermallocStack(int capacity, MemoryStack stack) Deprecated.static VkHdrMetadataEXTmallocStack(MemoryStack stack) Deprecated.floatmaxContentLightLevel(float value) Sets the specified value to themaxContentLightLevelfield.floatmaxFrameAverageLightLevel(float value) Sets the specified value to themaxFrameAverageLightLevelfield.floatmaxLuminance(float value) Sets the specified value to themaxLuminancefield.floatminLuminance(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()pNext(long value) Sets the specified value to thepNextfield.Prepends the specifiedVkHdrVividDynamicMetadataHUAWEIvalue to thepNextchain.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.intsizeof()Returnssizeof(struct).intsType()sType(int value) Sets the specified value to thesTypefield.Sets theSTRUCTURE_TYPE_HDR_METADATA_EXTvalue to thesTypefield.whitePoint(Consumer<VkXYColorEXT> consumer) Passes thewhitePointfield to the specifiedConsumer.whitePoint(VkXYColorEXT value) Copies the specifiedVkXYColorEXTto thewhitePointfield.Methods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toStringMethods 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 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 Details
-
sizeof
public int sizeof()Description copied from class:StructReturnssizeof(struct).- Specified by:
sizeofin classStruct<VkHdrMetadataEXT>
-
sType
public int sType()- Returns:
- the value of the
sTypefield.
-
pNext
public long pNext()- Returns:
- the value of the
pNextfield.
-
displayPrimaryRed
- Returns:
- a
VkXYColorEXTview of thedisplayPrimaryRedfield.
-
displayPrimaryGreen
- Returns:
- a
VkXYColorEXTview of thedisplayPrimaryGreenfield.
-
displayPrimaryBlue
- Returns:
- a
VkXYColorEXTview of thedisplayPrimaryBluefield.
-
whitePoint
- Returns:
- a
VkXYColorEXTview of thewhitePointfield.
-
maxLuminance
public float maxLuminance()- Returns:
- the value of the
maxLuminancefield.
-
minLuminance
public float minLuminance()- Returns:
- the value of the
minLuminancefield.
-
maxContentLightLevel
public float maxContentLightLevel()- Returns:
- the value of the
maxContentLightLevelfield.
-
maxFrameAverageLightLevel
public float maxFrameAverageLightLevel()- Returns:
- the value of the
maxFrameAverageLightLevelfield.
-
sType
Sets the specified value to thesTypefield. -
sType$Default
Sets theSTRUCTURE_TYPE_HDR_METADATA_EXTvalue to thesTypefield. -
pNext
Sets the specified value to thepNextfield. -
pNext
Prepends the specifiedVkHdrVividDynamicMetadataHUAWEIvalue to thepNextchain. -
displayPrimaryRed
Copies the specifiedVkXYColorEXTto thedisplayPrimaryRedfield. -
displayPrimaryRed
Passes thedisplayPrimaryRedfield to the specifiedConsumer. -
displayPrimaryGreen
Copies the specifiedVkXYColorEXTto thedisplayPrimaryGreenfield. -
displayPrimaryGreen
Passes thedisplayPrimaryGreenfield to the specifiedConsumer. -
displayPrimaryBlue
Copies the specifiedVkXYColorEXTto thedisplayPrimaryBluefield. -
displayPrimaryBlue
Passes thedisplayPrimaryBluefield to the specifiedConsumer. -
whitePoint
Copies the specifiedVkXYColorEXTto thewhitePointfield. -
whitePoint
Passes thewhitePointfield to the specifiedConsumer. -
maxLuminance
Sets the specified value to themaxLuminancefield. -
minLuminance
Sets the specified value to theminLuminancefield. -
maxContentLightLevel
Sets the specified value to themaxContentLightLevelfield. -
maxFrameAverageLightLevel
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
Copies the specified struct data to this struct.- Parameters:
src- the source struct- Returns:
- this struct
-
malloc
Returns a newVkHdrMetadataEXTinstance allocated withmemAlloc. The instance must be explicitly freed. -
calloc
Returns a newVkHdrMetadataEXTinstance allocated withmemCalloc. The instance must be explicitly freed. -
create
Returns a newVkHdrMetadataEXTinstance allocated withBufferUtils. -
create
Returns a newVkHdrMetadataEXTinstance for the specified memory address. -
createSafe
-
malloc
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemAlloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
calloc
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withmemCalloc. The instance must be explicitly freed.- Parameters:
capacity- the buffer capacity
-
create
Returns a newVkHdrMetadataEXT.Bufferinstance allocated withBufferUtils.- Parameters:
capacity- the buffer capacity
-
create
Create aVkHdrMetadataEXT.Bufferinstance 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 newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStack.- Parameters:
stack- the stack from which to allocate
-
calloc
Returns a newVkHdrMetadataEXTinstance allocated on the specifiedMemoryStackand initializes all its bits to zero.- Parameters:
stack- the stack from which to allocate
-
malloc
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStack.- Parameters:
capacity- the buffer capacitystack- the stack from which to allocate
-
calloc
Returns a newVkHdrMetadataEXT.Bufferinstance allocated on the specifiedMemoryStackand 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.
-