Class BGFXViewStats

  • All Implemented Interfaces:
    org.lwjgl.system.Pointer

    public class BGFXViewStats
    extends org.lwjgl.system.Struct
    View stats.

    Member documentation

    • name[256] – view name
    • view – view id
    • cpuTimeElapsed – CPU (submit) time elapsed
    • gpuTimeElapsed – GPU time elapsed

    Layout

    
     struct bgfx_view_stats_t {
         char name[256];
         bgfx_view_id_t view;
         int64_t cpuTimeElapsed;
         int64_t gpuTimeElapsed;
     }
    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  BGFXViewStats.Buffer
      An array of BGFXViewStats structs.
      • Nested classes/interfaces inherited from interface org.lwjgl.system.Pointer

        org.lwjgl.system.Pointer.Default
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static int ALIGNOF
      The struct alignment in bytes.
      static int CPUTIMEELAPSED
      GPUTIMEELAPSED
      NAME
      The struct member offsets.
      static int SIZEOF
      The struct size in bytes.
      static int VIEW
      The struct member offsets.
      • Fields inherited from interface org.lwjgl.system.Pointer

        BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE
    • Constructor Summary

      Constructors 
      Constructor Description
      BGFXViewStats​(java.nio.ByteBuffer container)
      Creates a BGFXViewStats instance at the current position of the specified ByteBuffer container.
    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • NAME, VIEW, CPUTIMEELAPSED, GPUTIMEELAPSED

        The struct member offsets.
    • Constructor Detail

      • BGFXViewStats

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

        public java.nio.ByteBuffer name()
        Returns a ByteBuffer view of the name field.
      • nameString

        public java.lang.String nameString()
        Decodes the null-terminated string stored in the name field.
      • view

        public short view()
        Returns the value of the view field.
      • cpuTimeElapsed

        public long cpuTimeElapsed()
        Returns the value of the cpuTimeElapsed field.
      • gpuTimeElapsed

        public long gpuTimeElapsed()
        Returns the value of the gpuTimeElapsed field.
      • create

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

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

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

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

        public static java.nio.ByteBuffer nname​(long struct)
        Unsafe version of name().
      • nnameString

        public static java.lang.String nnameString​(long struct)
        Unsafe version of nameString().
      • nview

        public static short nview​(long struct)
        Unsafe version of view().
      • ncpuTimeElapsed

        public static long ncpuTimeElapsed​(long struct)
        Unsafe version of cpuTimeElapsed().
      • ngpuTimeElapsed

        public static long ngpuTimeElapsed​(long struct)
        Unsafe version of gpuTimeElapsed().