Class BGFXViewStats

All Implemented Interfaces:
Pointer

public class BGFXViewStats extends Struct<BGFXViewStats>
View stats.

Layout


 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()
      view name
    • nameString

      public String nameString()
      view name
    • view

      public short view()
      view id
    • cpuTimeBegin

      public long cpuTimeBegin()
      CPU (submit) begin time
    • cpuTimeEnd

      public long cpuTimeEnd()
      CPU (submit) end time
    • gpuTimeBegin

      public long gpuTimeBegin()
      GPU begin time
    • gpuTimeEnd

      public long gpuTimeEnd()
      GPU end time
    • gpuFrameNum

      public int gpuFrameNum()
      frame which generated gpuTimeBegin, gpuTimeEnd
    • 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 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().