Class MeshoptOverdrawStatistics

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

    public class MeshoptOverdrawStatistics
    extends org.lwjgl.system.Struct
    implements org.lwjgl.system.NativeResource

    Layout

    
     struct meshopt_OverdrawStatistics {
         unsigned int pixels_covered;
         unsigned int pixels_shaded;
         float overdraw();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • PIXELS_COVERED, PIXELS_SHADED, OVERDRAW

        The struct member offsets.
    • Constructor Detail

      • MeshoptOverdrawStatistics

        public MeshoptOverdrawStatistics​(java.nio.ByteBuffer container)
        Creates a MeshoptOverdrawStatistics 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
      • pixels_covered

        public int pixels_covered()
        Returns:
        the value of the pixels_covered field.
      • pixels_shaded

        public int pixels_shaded()
        Returns:
        the value of the pixels_shaded field.
      • overdraw

        public float overdraw()
        shaded pixels / covered pixels; best case 1.0
      • malloc

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

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

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

        public static MeshoptOverdrawStatistics create​(long address)
        Returns a new MeshoptOverdrawStatistics instance for the specified memory address.
      • malloc

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

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

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

        public static int npixels_covered​(long struct)
        Unsafe version of pixels_covered().
      • npixels_shaded

        public static int npixels_shaded​(long struct)
        Unsafe version of pixels_shaded().
      • noverdraw

        public static float noverdraw​(long struct)
        Unsafe version of overdraw().