Class BGFXViewStats

  • All Implemented Interfaces:
    Pointer

    public class BGFXViewStats
    extends Struct
    View stats.

    Member documentation

    • name – 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;
     }
    • 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()
        Description copied from class: Struct
        Returns sizeof(struct).
        Specified by:
        sizeof in class 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().