Class VkHdrMetadataEXT

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • STYPE, PNEXT, DISPLAYPRIMARYRED, DISPLAYPRIMARYGREEN, DISPLAYPRIMARYBLUE, WHITEPOINT, MAXLUMINANCE, MINLUMINANCE, MAXCONTENTLIGHTLEVEL, MAXFRAMEAVERAGELIGHTLEVEL

        The struct member offsets.
    • Constructor Detail

      • VkHdrMetadataEXT

        public VkHdrMetadataEXT​(java.nio.ByteBuffer container)
        Creates a 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.

    • Method Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • sType

        public int sType()
        the type of this structure.
      • pNext

        public long pNext()
        NULL or a pointer to a structure extending this structure.
      • displayPrimaryRed

        public VkXYColorEXT displayPrimaryRed()
        a VkXYColorEXT structure specifying the reference monitor’s red primary in chromaticity coordinates
      • displayPrimaryGreen

        public VkXYColorEXT displayPrimaryGreen()
        a VkXYColorEXT structure specifying the reference monitor’s green primary in chromaticity coordinates
      • displayPrimaryBlue

        public VkXYColorEXT displayPrimaryBlue()
        a VkXYColorEXT structure specifying the reference monitor’s blue primary in chromaticity coordinates
      • whitePoint

        public VkXYColorEXT whitePoint()
        a VkXYColorEXT structure 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
      • 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 new VkHdrMetadataEXT instance allocated with memAlloc. The instance must be explicitly freed.
      • calloc

        public static VkHdrMetadataEXT calloc()
        Returns a new VkHdrMetadataEXT instance allocated with memCalloc. The instance must be explicitly freed.
      • create

        public static VkHdrMetadataEXT create()
        Returns a new VkHdrMetadataEXT instance allocated with BufferUtils.
      • create

        public static VkHdrMetadataEXT create​(long address)
        Returns a new VkHdrMetadataEXT instance for the specified memory address.
      • createSafe

        @Nullable
        public static VkHdrMetadataEXT createSafe​(long address)
        Like create, but returns null if address is NULL.
      • createSafe

        @Nullable
        public static VkHdrMetadataEXT.Buffer createSafe​(long address,
                                                         int capacity)
        Like create, but returns null if address is NULL.
      • mallocStack

        @Deprecated
        public static VkHdrMetadataEXT mallocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use malloc(MemoryStack) instead.
      • callocStack

        @Deprecated
        public static VkHdrMetadataEXT callocStack​(org.lwjgl.system.MemoryStack stack)
        Deprecated.
        Deprecated for removal in 3.4.0. Use calloc(MemoryStack) instead.
      • malloc

        public static VkHdrMetadataEXT malloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkHdrMetadataEXT instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
      • calloc

        public static VkHdrMetadataEXT calloc​(org.lwjgl.system.MemoryStack stack)
        Returns a new VkHdrMetadataEXT instance allocated on the specified MemoryStack and 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 new VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • calloc

        public static VkHdrMetadataEXT.Buffer calloc​(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.
        Parameters:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nsType

        public static int nsType​(long struct)
        Unsafe version of sType().
      • npNext

        public static long npNext​(long struct)
        Unsafe version of pNext().
      • nmaxLuminance

        public static float nmaxLuminance​(long struct)
        Unsafe version of maxLuminance().
      • nminLuminance

        public static float nminLuminance​(long struct)
        Unsafe version of minLuminance().
      • nmaxContentLightLevel

        public static float nmaxContentLightLevel​(long struct)
        Unsafe version of maxContentLightLevel().
      • nmaxFrameAverageLightLevel

        public static float nmaxFrameAverageLightLevel​(long struct)
        Unsafe version of maxFrameAverageLightLevel().
      • nsType

        public static void nsType​(long struct,
                                  int value)
        Unsafe version of sType.
      • npNext

        public static void npNext​(long struct,
                                  long value)
        Unsafe version of pNext.
      • nwhitePoint

        public static void nwhitePoint​(long struct,
                                       VkXYColorEXT value)
        Unsafe version of whitePoint.
      • nmaxLuminance

        public static void nmaxLuminance​(long struct,
                                         float value)
        Unsafe version of maxLuminance.
      • nminLuminance

        public static void nminLuminance​(long struct,
                                         float value)
        Unsafe version of minLuminance.
      • nmaxContentLightLevel

        public static void nmaxContentLightLevel​(long struct,
                                                 float value)
        Unsafe version of maxContentLightLevel.
      • nmaxFrameAverageLightLevel

        public static void nmaxFrameAverageLightLevel​(long struct,
                                                      float value)
        Unsafe version of maxFrameAverageLightLevel.