Class VkHdrMetadataEXT

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class VkHdrMetadataEXT extends Struct<VkHdrMetadataEXT> implements NativeResource

 struct VkHdrMetadataEXT {
     VkStructureType sType;
     void const * pNext;
     VkXYColorEXT displayPrimaryRed;
     VkXYColorEXT displayPrimaryGreen;
     VkXYColorEXT displayPrimaryBlue;
     VkXYColorEXT whitePoint;
     float maxLuminance;
     float minLuminance;
     float maxContentLightLevel;
     float maxFrameAverageLightLevel;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • STYPE

      public static final int STYPE
      The struct member offsets.
    • PNEXT

      public static final int PNEXT
      The struct member offsets.
    • DISPLAYPRIMARYRED

      public static final int DISPLAYPRIMARYRED
      The struct member offsets.
    • DISPLAYPRIMARYGREEN

      public static final int DISPLAYPRIMARYGREEN
      The struct member offsets.
    • DISPLAYPRIMARYBLUE

      public static final int DISPLAYPRIMARYBLUE
      The struct member offsets.
    • WHITEPOINT

      public static final int WHITEPOINT
      The struct member offsets.
    • MAXLUMINANCE

      public static final int MAXLUMINANCE
      The struct member offsets.
    • MINLUMINANCE

      public static final int MINLUMINANCE
      The struct member offsets.
    • MAXCONTENTLIGHTLEVEL

      public static final int MAXCONTENTLIGHTLEVEL
      The struct member offsets.
    • MAXFRAMEAVERAGELIGHTLEVEL

      public static final int MAXFRAMEAVERAGELIGHTLEVEL
      The struct member offsets.
  • Constructor Details

    • VkHdrMetadataEXT

      public VkHdrMetadataEXT(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<VkHdrMetadataEXT>
    • sType

      public int sType()
      Returns:
      the value of the sType field.
    • pNext

      public long pNext()
      Returns:
      the value of the pNext field.
    • displayPrimaryRed

      public VkXYColorEXT displayPrimaryRed()
      Returns:
      a VkXYColorEXT view of the displayPrimaryRed field.
    • displayPrimaryGreen

      public VkXYColorEXT displayPrimaryGreen()
      Returns:
      a VkXYColorEXT view of the displayPrimaryGreen field.
    • displayPrimaryBlue

      public VkXYColorEXT displayPrimaryBlue()
      Returns:
      a VkXYColorEXT view of the displayPrimaryBlue field.
    • whitePoint

      public VkXYColorEXT whitePoint()
      Returns:
      a VkXYColorEXT view of the whitePoint field.
    • maxLuminance

      public float maxLuminance()
      Returns:
      the value of the maxLuminance field.
    • minLuminance

      public float minLuminance()
      Returns:
      the value of the minLuminance field.
    • maxContentLightLevel

      public float maxContentLightLevel()
      Returns:
      the value of the maxContentLightLevel field.
    • maxFrameAverageLightLevel

      public float maxFrameAverageLightLevel()
      Returns:
      the value of the maxFrameAverageLightLevel field.
    • sType

      public VkHdrMetadataEXT sType(int value)
      Sets the specified value to the sType field.
    • sType$Default

      public VkHdrMetadataEXT sType$Default()
      Sets the STRUCTURE_TYPE_HDR_METADATA_EXT value to the sType field.
    • pNext

      public VkHdrMetadataEXT pNext(long value)
      Sets the specified value to the pNext field.
    • pNext

      Prepends the specified VkHdrVividDynamicMetadataHUAWEI value to the pNext chain.
    • displayPrimaryRed

      public VkHdrMetadataEXT displayPrimaryRed(VkXYColorEXT value)
      Copies the specified VkXYColorEXT to the displayPrimaryRed field.
    • displayPrimaryRed

      public VkHdrMetadataEXT displayPrimaryRed(Consumer<VkXYColorEXT> consumer)
      Passes the displayPrimaryRed field to the specified Consumer.
    • displayPrimaryGreen

      public VkHdrMetadataEXT displayPrimaryGreen(VkXYColorEXT value)
      Copies the specified VkXYColorEXT to the displayPrimaryGreen field.
    • displayPrimaryGreen

      public VkHdrMetadataEXT displayPrimaryGreen(Consumer<VkXYColorEXT> consumer)
      Passes the displayPrimaryGreen field to the specified Consumer.
    • displayPrimaryBlue

      public VkHdrMetadataEXT displayPrimaryBlue(VkXYColorEXT value)
      Copies the specified VkXYColorEXT to the displayPrimaryBlue field.
    • displayPrimaryBlue

      public VkHdrMetadataEXT displayPrimaryBlue(Consumer<VkXYColorEXT> consumer)
      Passes the displayPrimaryBlue field to the specified Consumer.
    • whitePoint

      public VkHdrMetadataEXT whitePoint(VkXYColorEXT value)
      Copies the specified VkXYColorEXT to the whitePoint field.
    • whitePoint

      public VkHdrMetadataEXT whitePoint(Consumer<VkXYColorEXT> consumer)
      Passes the whitePoint field to the specified Consumer.
    • maxLuminance

      public VkHdrMetadataEXT maxLuminance(float value)
      Sets the specified value to the maxLuminance field.
    • minLuminance

      public VkHdrMetadataEXT minLuminance(float value)
      Sets the specified value to the minLuminance field.
    • maxContentLightLevel

      public VkHdrMetadataEXT maxContentLightLevel(float value)
      Sets the specified value to the maxContentLightLevel field.
    • maxFrameAverageLightLevel

      public VkHdrMetadataEXT maxFrameAverageLightLevel(float value)
      Sets the specified value to the maxFrameAverageLightLevel 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

      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

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

      public static VkHdrMetadataEXT.Buffer malloc(int capacity)
      Returns a new VkHdrMetadataEXT.Buffer instance allocated with memAlloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • calloc

      public static VkHdrMetadataEXT.Buffer calloc(int capacity)
      Returns a new VkHdrMetadataEXT.Buffer instance allocated with memCalloc. The instance must be explicitly freed.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkHdrMetadataEXT.Buffer create(int capacity)
      Returns a new VkHdrMetadataEXT.Buffer instance allocated with BufferUtils.
      Parameters:
      capacity - the buffer capacity
    • create

      public static VkHdrMetadataEXT.Buffer create(long address, int capacity)
      Create a VkHdrMetadataEXT.Buffer instance at the specified memory.
      Parameters:
      address - the memory address
      capacity - the buffer capacity
    • createSafe

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

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

      public static VkHdrMetadataEXT.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new VkHdrMetadataEXT.Buffer instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • nsType

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

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

      public static VkXYColorEXT ndisplayPrimaryRed(long struct)
      Unsafe version of displayPrimaryRed().
    • ndisplayPrimaryGreen

      public static VkXYColorEXT ndisplayPrimaryGreen(long struct)
      Unsafe version of displayPrimaryGreen().
    • ndisplayPrimaryBlue

      public static VkXYColorEXT ndisplayPrimaryBlue(long struct)
      Unsafe version of displayPrimaryBlue().
    • nwhitePoint

      public static VkXYColorEXT nwhitePoint(long struct)
      Unsafe version of whitePoint().
    • 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.
    • ndisplayPrimaryRed

      public static void ndisplayPrimaryRed(long struct, VkXYColorEXT value)
      Unsafe version of displayPrimaryRed.
    • ndisplayPrimaryGreen

      public static void ndisplayPrimaryGreen(long struct, VkXYColorEXT value)
      Unsafe version of displayPrimaryGreen.
    • ndisplayPrimaryBlue

      public static void ndisplayPrimaryBlue(long struct, VkXYColorEXT value)
      Unsafe version of displayPrimaryBlue.
    • 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.