Class BGFXViewStats.Buffer

All Implemented Interfaces:
Iterable<BGFXViewStats>, Pointer
Enclosing class:
BGFXViewStats

public static class BGFXViewStats.Buffer extends StructBuffer<BGFXViewStats, BGFXViewStats.Buffer>
An array of BGFXViewStats structs.
  • Constructor Details

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new BGFXViewStats.Buffer instance backed by the specified container.

      Changes to the container's content will be visible to the struct buffer instance and vice versa. The two buffers' position, limit, and mark values will be independent. The new buffer's position will be zero, its capacity and its limit will be the number of bytes remaining in this buffer divided by BGFXViewStats.SIZEOF, and its mark will be undefined.

      The created buffer instance holds a strong reference to the container object.

    • Buffer

      public Buffer(long address, int cap)
  • Method Details

    • name

      @NativeType("char[256]") public ByteBuffer name()
      Returns:
      a ByteBuffer view of the name field.
    • nameString

      @NativeType("char[256]") public String nameString()
      Returns:
      the null-terminated string stored in the name field.
    • view

      @NativeType("bgfx_view_id_t") public short view()
      Returns:
      the value of the view field.
    • cpuTimeBegin

      @NativeType("int64_t") public long cpuTimeBegin()
      Returns:
      the value of the cpuTimeBegin field.
    • cpuTimeEnd

      @NativeType("int64_t") public long cpuTimeEnd()
      Returns:
      the value of the cpuTimeEnd field.
    • gpuTimeBegin

      @NativeType("int64_t") public long gpuTimeBegin()
      Returns:
      the value of the gpuTimeBegin field.
    • gpuTimeEnd

      @NativeType("int64_t") public long gpuTimeEnd()
      Returns:
      the value of the gpuTimeEnd field.
    • gpuFrameNum

      @NativeType("uint32_t") public int gpuFrameNum()
      Returns:
      the value of the gpuFrameNum field.