Class XrPassthroughColorMapLutMETA

java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<XrPassthroughColorMapLutMETA>
org.lwjgl.openxr.XrPassthroughColorMapLutMETA
All Implemented Interfaces:
AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

public class XrPassthroughColorMapLutMETA extends org.lwjgl.system.Struct<XrPassthroughColorMapLutMETA> implements org.lwjgl.system.NativeResource
A color map defined by a LUT.
Description

XrPassthroughColorMapLutMETA lets applications apply a color LUT to a passthrough layer. Other Passthrough style elements (such as edges) must not be affected by color LUTs.

Applications may use weight to efficiently blend between the original colors and the mapped colors. The blend is computed as (1 - weight) * Cin + weight * colorLut [Cin].

XrPassthroughColorMapLutMETA is provided in the next chain of XrPassthroughStyleFB when calling PassthroughLayerSetStyleFB. Subsequent calls to PassthroughLayerSetStyleFB with XrPassthroughColorMapLutMETA in the next chain update the color LUT for that layer. Subsequent calls to PassthroughLayerSetStyleFB without this XrPassthroughColorMapLutMETA (or XrPassthroughColorMapInterpolatedLutMETA) in the next chain disable color LUTs for that layer.

Valid Usage (Implicit)

Layout


 struct XrPassthroughColorMapLutMETA {
     XrStructureType type();
     void const * next();
     XrPassthroughColorLutMETA colorLut();
     float weight();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int TYPE
      The struct member offsets.
    • NEXT

      public static final int NEXT
      The struct member offsets.
    • COLORLUT

      public static final int COLORLUT
      The struct member offsets.
    • WEIGHT

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

    • XrPassthroughColorMapLutMETA

      public XrPassthroughColorMapLutMETA(ByteBuffer container)
      Creates a XrPassthroughColorMapLutMETA 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