Class MeshoptVertexFetchStatistics

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

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

    Layout

    
     struct meshopt_VertexFetchStatistics {
         unsigned int bytes_fetched;
         float overfetch();
     }
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • BYTES_FETCHED, OVERFETCH

        The struct member offsets.
    • Constructor Detail

      • MeshoptVertexFetchStatistics

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

        public int bytes_fetched()
        Returns:
        the value of the bytes_fetched field.
      • overfetch

        public float overfetch()
        fetched bytes / vertex buffer size; best case 1.0 (each byte is fetched once)
      • malloc

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

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

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

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

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

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

        public static int nbytes_fetched​(long struct)
        Unsafe version of bytes_fetched().
      • noverfetch

        public static float noverfetch​(long struct)
        Unsafe version of overfetch().