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

      @NativeType("int64_t") public long cpuTimeFrame()
      Returns:
      the value of the cpuTimeFrame 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.
    • cpuTimerFreq

      @NativeType("int64_t") public long cpuTimerFreq()
      Returns:
      the value of the cpuTimerFreq 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.
    • gpuTimerFreq

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

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

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

      @NativeType("uint32_t") public int numDraw()
      Returns:
      the value of the numDraw field.
    • numCompute

      @NativeType("uint32_t") public int numCompute()
      Returns:
      the value of the numCompute field.
    • numBlit

      @NativeType("uint32_t") public int numBlit()
      Returns:
      the value of the numBlit field.
    • maxGpuLatency

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

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

      @NativeType("uint16_t") public short numDynamicIndexBuffers()
      Returns:
      the value of the numDynamicIndexBuffers field.
    • numDynamicVertexBuffers

      @NativeType("uint16_t") public short numDynamicVertexBuffers()
      Returns:
      the value of the numDynamicVertexBuffers field.
    • numFrameBuffers

      @NativeType("uint16_t") public short numFrameBuffers()
      Returns:
      the value of the numFrameBuffers field.
    • numIndexBuffers

      @NativeType("uint16_t") public short numIndexBuffers()
      Returns:
      the value of the numIndexBuffers field.
    • numOcclusionQueries

      @NativeType("uint16_t") public short numOcclusionQueries()
      Returns:
      the value of the numOcclusionQueries field.
    • numPrograms

      @NativeType("uint16_t") public short numPrograms()
      Returns:
      the value of the numPrograms field.
    • numShaders

      @NativeType("uint16_t") public short numShaders()
      Returns:
      the value of the numShaders field.
    • numTextures

      @NativeType("uint16_t") public short numTextures()
      Returns:
      the value of the numTextures field.
    • numUniforms

      @NativeType("uint16_t") public short numUniforms()
      Returns:
      the value of the numUniforms field.
    • numVertexBuffers

      @NativeType("uint16_t") public short numVertexBuffers()
      Returns:
      the value of the numVertexBuffers field.
    • numVertexLayouts

      @NativeType("uint16_t") public short numVertexLayouts()
      Returns:
      the value of the numVertexLayouts field.
    • textureMemoryUsed

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

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

      @NativeType("int32_t") public int transientVbUsed()
      Returns:
      the value of the transientVbUsed field.
    • transientIbUsed

      @NativeType("int32_t") public int transientIbUsed()
      Returns:
      the value of the transientIbUsed field.
    • numPrims

      @NativeType("uint32_t[BGFX_TOPOLOGY_COUNT]") public IntBuffer numPrims()
      Returns:
      a IntBuffer view of the numPrims field.
    • numPrims

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

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

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

      @NativeType("uint16_t") public short width()
      Returns:
      the value of the width field.
    • height

      @NativeType("uint16_t") public short height()
      Returns:
      the value of the height field.
    • textWidth

      @NativeType("uint16_t") public short textWidth()
      Returns:
      the value of the textWidth field.
    • textHeight

      @NativeType("uint16_t") public short textHeight()
      Returns:
      the value of the textHeight field.
    • numViews

      @NativeType("uint16_t") public short numViews()
      Returns:
      the value of the numViews field.
    • viewStats

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

      @NativeType("uint16_t") public short numEncoders()
      Returns:
      the value of the numEncoders field.
    • encoderStats

      @NativeType("bgfx_encoder_stats_t *") public BGFXEncoderStats.Buffer encoderStats()
      Returns:
      a BGFXEncoderStats.Buffer view of the struct array pointed to by the encoderStats field.