Class BGFXViewStats

All Implemented Interfaces:
Pointer

public class BGFXViewStats extends Struct<BGFXViewStats>

 struct bgfx_view_stats_t {
     char name[256];
     bgfx_view_id_t view;
     int64_t cpuTimeBegin;
     int64_t cpuTimeEnd;
     int64_t gpuTimeBegin;
     int64_t gpuTimeEnd;
     uint32_t gpuFrameNum;
 }
  • Field Details

    • SIZEOF

      public static final int SIZEOF
      The struct size in bytes.
    • ALIGNOF

      public static final int ALIGNOF
      The struct alignment in bytes.
    • NAME

      public static final int NAME
      The struct member offsets.
    • VIEW

      public static final int VIEW
      The struct member offsets.
    • CPUTIMEBEGIN

      public static final int CPUTIMEBEGIN
      The struct member offsets.
    • CPUTIMEEND

      public static final int CPUTIMEEND
      The struct member offsets.
    • GPUTIMEBEGIN

      public static final int GPUTIMEBEGIN
      The struct member offsets.
    • GPUTIMEEND

      public static final int GPUTIMEEND
      The struct member offsets.
    • GPUFRAMENUM

      public static final int GPUFRAMENUM
      The struct member offsets.
  • Constructor Details

    • BGFXViewStats

      public BGFXViewStats(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 Details

    • sizeof

      public int sizeof()
      Description copied from class: Struct
      Returns sizeof(struct).
      Specified by:
      sizeof in class Struct<BGFXViewStats>
    • name

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

      public String nameString()
      Returns:
      the null-terminated string stored in the name field.
    • view

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

      public long cpuTimeBegin()
      Returns:
      the value of the cpuTimeBegin field.
    • cpuTimeEnd

      public long cpuTimeEnd()
      Returns:
      the value of the cpuTimeEnd field.
    • gpuTimeBegin

      public long gpuTimeBegin()
      Returns:
      the value of the gpuTimeBegin field.
    • gpuTimeEnd

      public long gpuTimeEnd()
      Returns:
      the value of the gpuTimeEnd field.
    • gpuFrameNum

      public int gpuFrameNum()
      Returns:
      the value of the gpuFrameNum field.
    • create

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

      public static @Nullable 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

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

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

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

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

      public static long ncpuTimeBegin(long struct)
      Unsafe version of cpuTimeBegin().
    • ncpuTimeEnd

      public static long ncpuTimeEnd(long struct)
      Unsafe version of cpuTimeEnd().
    • ngpuTimeBegin

      public static long ngpuTimeBegin(long struct)
      Unsafe version of gpuTimeBegin().
    • ngpuTimeEnd

      public static long ngpuTimeEnd(long struct)
      Unsafe version of gpuTimeEnd().
    • ngpuFrameNum

      public static int ngpuFrameNum(long struct)
      Unsafe version of gpuFrameNum().