Class Compositor_BenchmarkResults

  • All Implemented Interfaces:
    java.lang.AutoCloseable, org.lwjgl.system.NativeResource, org.lwjgl.system.Pointer

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

    Layout

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

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • M_FLMEGAPIXELSPERSECOND, M_FLHMDRECOMMENDEDMEGAPIXELSPERSECOND

        The struct member offsets.
    • Constructor Detail

      • Compositor_BenchmarkResults

        public Compositor_BenchmarkResults​(java.nio.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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • 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.
      • 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
      • 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:
        stack - the stack from which to allocate
        capacity - the buffer capacity
      • nm_flMegaPixelsPerSecond

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