Class XrFrameEndInfo

All Implemented Interfaces:
AutoCloseable, NativeResource, Pointer

public class XrFrameEndInfo extends Struct<XrFrameEndInfo> implements NativeResource

 struct XrFrameEndInfo {
     XrStructureType type;
     void const * next;
     XrTime displayTime;
     XrEnvironmentBlendMode environmentBlendMode;
     uint32_t layerCount;
     {@link XrCompositionLayerBaseHeader XrCompositionLayerBaseHeader} const * const * layers;
 }
  • 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.
    • DISPLAYTIME

      public static final int DISPLAYTIME
      The struct member offsets.
    • ENVIRONMENTBLENDMODE

      public static final int ENVIRONMENTBLENDMODE
      The struct member offsets.
    • LAYERCOUNT

      public static final int LAYERCOUNT
      The struct member offsets.
    • LAYERS

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

    • XrFrameEndInfo

      public XrFrameEndInfo(ByteBuffer container)
      Creates a XrFrameEndInfo 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<XrFrameEndInfo>
    • type

      public int type()
      Returns:
      the value of the type field.
    • next

      public long next()
      Returns:
      the value of the next field.
    • displayTime

      public long displayTime()
      Returns:
      the value of the displayTime field.
    • environmentBlendMode

      public int environmentBlendMode()
      Returns:
      the value of the environmentBlendMode field.
    • layerCount

      public int layerCount()
      Returns:
      the value of the layerCount field.
    • layers

      public @Nullable PointerBuffer layers()
      Returns:
      a PointerBuffer view of the data pointed to by the layers field.
    • type

      public XrFrameEndInfo type(int value)
      Sets the specified value to the type field.
    • type$Default

      public XrFrameEndInfo type$Default()
      Sets the TYPE_FRAME_END_INFO value to the type field.
    • next

      public XrFrameEndInfo next(long value)
      Sets the specified value to the next field.
    • next

      public XrFrameEndInfo next(XrFrameEndInfoML value)
      Prepends the specified XrFrameEndInfoML value to the next chain.
    • next

      Prepends the specified XrGlobalDimmerFrameEndInfoML value to the next chain.
    • next

      Prepends the specified XrLocalDimmingFrameEndInfoMETA value to the next chain.
    • next

      Prepends the specified XrSecondaryViewConfigurationFrameEndInfoMSFT value to the next chain.
    • displayTime

      public XrFrameEndInfo displayTime(long value)
      Sets the specified value to the displayTime field.
    • environmentBlendMode

      public XrFrameEndInfo environmentBlendMode(int value)
      Sets the specified value to the environmentBlendMode field.
    • layerCount

      public XrFrameEndInfo layerCount(int value)
      Sets the specified value to the layerCount field.
    • layers

      public XrFrameEndInfo layers(@Nullable PointerBuffer value)
      Sets the address of the specified PointerBuffer to the layers field.
    • set

      public XrFrameEndInfo set(int type, long next, long displayTime, int environmentBlendMode, int layerCount, @Nullable PointerBuffer layers)
      Initializes this struct with the specified values.
    • set

      public XrFrameEndInfo set(XrFrameEndInfo src)
      Copies the specified struct data to this struct.
      Parameters:
      src - the source struct
      Returns:
      this struct
    • malloc

      public static XrFrameEndInfo malloc()
      Returns a new XrFrameEndInfo instance allocated with memAlloc. The instance must be explicitly freed.
    • calloc

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

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

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

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

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

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

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

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

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

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

      public static XrFrameEndInfo calloc(MemoryStack stack)
      Returns a new XrFrameEndInfo instance allocated on the specified MemoryStack and initializes all its bits to zero.
      Parameters:
      stack - the stack from which to allocate
    • malloc

      public static XrFrameEndInfo.Buffer malloc(int capacity, MemoryStack stack)
      Returns a new XrFrameEndInfo.Buffer instance allocated on the specified MemoryStack.
      Parameters:
      capacity - the buffer capacity
      stack - the stack from which to allocate
    • calloc

      public static XrFrameEndInfo.Buffer calloc(int capacity, MemoryStack stack)
      Returns a new XrFrameEndInfo.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
    • ntype

      public static int ntype(long struct)
      Unsafe version of type().
    • nnext

      public static long nnext(long struct)
      Unsafe version of next().
    • ndisplayTime

      public static long ndisplayTime(long struct)
      Unsafe version of displayTime().
    • nenvironmentBlendMode

      public static int nenvironmentBlendMode(long struct)
      Unsafe version of environmentBlendMode().
    • nlayerCount

      public static int nlayerCount(long struct)
      Unsafe version of layerCount().
    • nlayers

      public static @Nullable PointerBuffer nlayers(long struct)
      Unsafe version of layers.
    • ntype

      public static void ntype(long struct, int value)
      Unsafe version of type.
    • nnext

      public static void nnext(long struct, long value)
      Unsafe version of next.
    • ndisplayTime

      public static void ndisplayTime(long struct, long value)
      Unsafe version of displayTime.
    • nenvironmentBlendMode

      public static void nenvironmentBlendMode(long struct, int value)
      Unsafe version of environmentBlendMode.
    • nlayerCount

      public static void nlayerCount(long struct, int value)
      Sets the specified value to the layerCount field of the specified struct.
    • nlayers

      public static void nlayers(long struct, @Nullable PointerBuffer value)
      Unsafe version of layers.