Class Compositor_BenchmarkResults

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

public class Compositor_BenchmarkResults extends org.lwjgl.system.Struct<Compositor_BenchmarkResults> implements org.lwjgl.system.NativeResource
Provides compositor benchmark results to the app.

Layout


 struct Compositor_BenchmarkResults {
     float m_flMegaPixelsPerSecond();
     float m_flHmdRecommendedMegaPixelsPerSecond();
 }
  • Field Details

    • SIZEOF

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

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

      public static final int M_FLMEGAPIXELSPERSECOND
      The struct member offsets.
    • M_FLHMDRECOMMENDEDMEGAPIXELSPERSECOND

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

    • Compositor_BenchmarkResults

      public Compositor_BenchmarkResults(ByteBuffer container)
      Creates a Compositor_BenchmarkResults 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()
      Specified by:
      sizeof in class org.lwjgl.system.Struct<Compositor_BenchmarkResults>
    • m_flMegaPixelsPerSecond

      public float m_flMegaPixelsPerSecond()
      Measurement of GPU MP/s performed by compositor benchmark
    • m_flHmdRecommendedMegaPixelsPerSecond

      public float m_flHmdRecommendedMegaPixelsPerSecond()
      Recommended default MP/s given the HMD resolution, refresh, and panel mask.
    • malloc

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

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

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

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

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

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

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

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

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

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

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

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

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

      public static Compositor_BenchmarkResults.Buffer calloc(int capacity, org.lwjgl.system.MemoryStack stack)
      Returns a new Compositor_BenchmarkResults.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
    • nm_flMegaPixelsPerSecond

      public static float nm_flMegaPixelsPerSecond(long struct)
      Unsafe version of m_flMegaPixelsPerSecond().
    • nm_flHmdRecommendedMegaPixelsPerSecond

      public static float nm_flHmdRecommendedMegaPixelsPerSecond(long struct)