Class BGFXStats.Buffer

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

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

    • Buffer

      public Buffer(ByteBuffer container)
      Creates a new BGFXStats.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 BGFXStats.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

    • cpuTimeFrame

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

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

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

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

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

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

      public long gpuTimerFreq()
      Returns:
      the value of the gpuTimerFreq field.
    • waitRender

      public long waitRender()
      Returns:
      the value of the waitRender field.
    • waitSubmit

      public long waitSubmit()
      Returns:
      the value of the waitSubmit field.
    • numDraw

      public int numDraw()
      Returns:
      the value of the numDraw field.
    • numCompute

      public int numCompute()
      Returns:
      the value of the numCompute field.
    • numBlit

      public int numBlit()
      Returns:
      the value of the numBlit field.
    • maxGpuLatency

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

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

      public short numDynamicIndexBuffers()
      Returns:
      the value of the numDynamicIndexBuffers field.
    • numDynamicVertexBuffers

      public short numDynamicVertexBuffers()
      Returns:
      the value of the numDynamicVertexBuffers field.
    • numFrameBuffers

      public short numFrameBuffers()
      Returns:
      the value of the numFrameBuffers field.
    • numIndexBuffers

      public short numIndexBuffers()
      Returns:
      the value of the numIndexBuffers field.
    • numOcclusionQueries

      public short numOcclusionQueries()
      Returns:
      the value of the numOcclusionQueries field.
    • numPrograms

      public short numPrograms()
      Returns:
      the value of the numPrograms field.
    • numShaders

      public short numShaders()
      Returns:
      the value of the numShaders field.
    • numTextures

      public short numTextures()
      Returns:
      the value of the numTextures field.
    • numUniforms

      public short numUniforms()
      Returns:
      the value of the numUniforms field.
    • numVertexBuffers

      public short numVertexBuffers()
      Returns:
      the value of the numVertexBuffers field.
    • numVertexLayouts

      public short numVertexLayouts()
      Returns:
      the value of the numVertexLayouts field.
    • textureMemoryUsed

      public long textureMemoryUsed()
      Returns:
      the value of the textureMemoryUsed field.
    • rtMemoryUsed

      public long rtMemoryUsed()
      Returns:
      the value of the rtMemoryUsed field.
    • transientVbUsed

      public int transientVbUsed()
      Returns:
      the value of the transientVbUsed field.
    • transientIbUsed

      public int transientIbUsed()
      Returns:
      the value of the transientIbUsed field.
    • numPrims

      public IntBuffer numPrims()
      Returns:
      a IntBuffer view of the numPrims field.
    • numPrims

      public int numPrims(int index)
      Returns:
      the value at the specified index of the numPrims field.
    • gpuMemoryMax

      public long gpuMemoryMax()
      Returns:
      the value of the gpuMemoryMax field.
    • gpuMemoryUsed

      public long gpuMemoryUsed()
      Returns:
      the value of the gpuMemoryUsed field.
    • width

      public short width()
      Returns:
      the value of the width field.
    • height

      public short height()
      Returns:
      the value of the height field.
    • textWidth

      public short textWidth()
      Returns:
      the value of the textWidth field.
    • textHeight

      public short textHeight()
      Returns:
      the value of the textHeight field.
    • numViews

      public short numViews()
      Returns:
      the value of the numViews field.
    • viewStats

      public BGFXViewStats.Buffer viewStats()
      Returns:
      a BGFXViewStats.Buffer view of the struct array pointed to by the viewStats field.
    • numEncoders

      public short numEncoders()
      Returns:
      the value of the numEncoders field.
    • encoderStats

      public BGFXEncoderStats.Buffer encoderStats()
      Returns:
      a BGFXEncoderStats.Buffer view of the struct array pointed to by the encoderStats field.