Class BGFXStats

    • Field Detail

      • SIZEOF

        The struct size in bytes.
      • ALIGNOF

        The struct alignment in bytes.
      • CPUTIMEFRAME, CPUTIMEBEGIN, CPUTIMEEND, CPUTIMERFREQ, GPUTIMEBEGIN, GPUTIMEEND, GPUTIMERFREQ, WAITRENDER, WAITSUBMIT, NUMDRAW, NUMCOMPUTE, NUMBLIT, MAXGPULATENCY, NUMDYNAMICINDEXBUFFERS, NUMDYNAMICVERTEXBUFFERS, NUMFRAMEBUFFERS, NUMINDEXBUFFERS, NUMOCCLUSIONQUERIES, NUMPROGRAMS, NUMSHADERS, NUMTEXTURES, NUMUNIFORMS, NUMVERTEXBUFFERS, NUMVERTEXLAYOUTS, TEXTUREMEMORYUSED, RTMEMORYUSED, TRANSIENTVBUSED, TRANSIENTIBUSED, NUMPRIMS, GPUMEMORYMAX, GPUMEMORYUSED, WIDTH, HEIGHT, TEXTWIDTH, TEXTHEIGHT, NUMVIEWS, VIEWSTATS, NUMENCODERS, ENCODERSTATS

        The struct member offsets.
    • Constructor Detail

      • BGFXStats

        public BGFXStats​(java.nio.ByteBuffer container)
        Creates a BGFXStats 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 Detail

      • sizeof

        public int sizeof()
        Specified by:
        sizeof in class org.lwjgl.system.Struct
      • cpuTimeFrame

        public long cpuTimeFrame()
        CPU time between two frame calls
      • cpuTimeBegin

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

        public long cpuTimeEnd()
        Render thread CPU submit end time
      • cpuTimerFreq

        public long cpuTimerFreq()
        CPU timer frequency. Timestamps-per-second.
      • gpuTimeBegin

        public long gpuTimeBegin()
        GPU frame begin time
      • gpuTimeEnd

        public long gpuTimeEnd()
        GPU frame end time
      • gpuTimerFreq

        public long gpuTimerFreq()
        GPU timer frequency
      • waitRender

        public long waitRender()
        time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API
      • waitSubmit

        public long waitSubmit()
        time spent waiting for submit thread to advance to next frame
      • numDraw

        public int numDraw()
        number of draw calls submitted
      • numCompute

        public int numCompute()
        number of compute calls submitted
      • numBlit

        public int numBlit()
        number of blit calls submitted
      • maxGpuLatency

        public int maxGpuLatency()
        GPU driver latency
      • numDynamicIndexBuffers

        public short numDynamicIndexBuffers()
        number of used dynamic index buffers
      • numDynamicVertexBuffers

        public short numDynamicVertexBuffers()
        number of used dynamic vertex buffers
      • numFrameBuffers

        public short numFrameBuffers()
        number of used frame buffers
      • numIndexBuffers

        public short numIndexBuffers()
        number of used index buffers
      • numOcclusionQueries

        public short numOcclusionQueries()
        number of used occlusion queries
      • numPrograms

        public short numPrograms()
        number of used programs
      • numShaders

        public short numShaders()
        number of used shaders
      • numTextures

        public short numTextures()
        number of used textures
      • numUniforms

        public short numUniforms()
        number of used uniforms
      • numVertexBuffers

        public short numVertexBuffers()
        number of used vertex buffers
      • numVertexLayouts

        public short numVertexLayouts()
        number of used vertex layouts
      • textureMemoryUsed

        public long textureMemoryUsed()
        estimate of texture memory used
      • rtMemoryUsed

        public long rtMemoryUsed()
        estimate of render target memory used
      • transientVbUsed

        public int transientVbUsed()
        amount of transient vertex buffer used
      • transientIbUsed

        public int transientIbUsed()
        amount of transient index buffer used
      • numPrims

        public java.nio.IntBuffer numPrims()
        
        public int numPrims​(int index)
        
        number of primitives rendered
      • gpuMemoryMax

        public long gpuMemoryMax()
        maximum available GPU memory for application
      • gpuMemoryUsed

        public long gpuMemoryUsed()
        amount of GPU memory used by the application
      • width

        public short width()
        backbuffer width in pixels
      • height

        public short height()
        backbuffer height in pixels
      • textWidth

        public short textWidth()
        debug text width in characters
      • textHeight

        public short textHeight()
        debug text height in characters
      • numViews

        public short numViews()
        number of view stats
      • numEncoders

        public short numEncoders()
        number of encoders used during frame
      • create

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

        @Nullable
        public static BGFXStats createSafe​(long address)
        Like create, but returns null if address is NULL.
      • create

        public static BGFXStats.Buffer create​(long address,
                                              int capacity)
        Create a BGFXStats.Buffer instance at the specified memory.
        Parameters:
        address - the memory address
        capacity - the buffer capacity
      • createSafe

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

        public static long ncpuTimeFrame​(long struct)
        Unsafe version of cpuTimeFrame().
      • ncpuTimeBegin

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

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

        public static long ncpuTimerFreq​(long struct)
        Unsafe version of cpuTimerFreq().
      • ngpuTimeBegin

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

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

        public static long ngpuTimerFreq​(long struct)
        Unsafe version of gpuTimerFreq().
      • nwaitRender

        public static long nwaitRender​(long struct)
        Unsafe version of waitRender().
      • nwaitSubmit

        public static long nwaitSubmit​(long struct)
        Unsafe version of waitSubmit().
      • nnumDraw

        public static int nnumDraw​(long struct)
        Unsafe version of numDraw().
      • nnumCompute

        public static int nnumCompute​(long struct)
        Unsafe version of numCompute().
      • nnumBlit

        public static int nnumBlit​(long struct)
        Unsafe version of numBlit().
      • nmaxGpuLatency

        public static int nmaxGpuLatency​(long struct)
        Unsafe version of maxGpuLatency().
      • nnumDynamicIndexBuffers

        public static short nnumDynamicIndexBuffers​(long struct)
        Unsafe version of numDynamicIndexBuffers().
      • nnumDynamicVertexBuffers

        public static short nnumDynamicVertexBuffers​(long struct)
        Unsafe version of numDynamicVertexBuffers().
      • nnumFrameBuffers

        public static short nnumFrameBuffers​(long struct)
        Unsafe version of numFrameBuffers().
      • nnumIndexBuffers

        public static short nnumIndexBuffers​(long struct)
        Unsafe version of numIndexBuffers().
      • nnumOcclusionQueries

        public static short nnumOcclusionQueries​(long struct)
        Unsafe version of numOcclusionQueries().
      • nnumPrograms

        public static short nnumPrograms​(long struct)
        Unsafe version of numPrograms().
      • nnumShaders

        public static short nnumShaders​(long struct)
        Unsafe version of numShaders().
      • nnumTextures

        public static short nnumTextures​(long struct)
        Unsafe version of numTextures().
      • nnumUniforms

        public static short nnumUniforms​(long struct)
        Unsafe version of numUniforms().
      • nnumVertexBuffers

        public static short nnumVertexBuffers​(long struct)
        Unsafe version of numVertexBuffers().
      • nnumVertexLayouts

        public static short nnumVertexLayouts​(long struct)
        Unsafe version of numVertexLayouts().
      • ntextureMemoryUsed

        public static long ntextureMemoryUsed​(long struct)
        Unsafe version of textureMemoryUsed().
      • nrtMemoryUsed

        public static long nrtMemoryUsed​(long struct)
        Unsafe version of rtMemoryUsed().
      • ntransientVbUsed

        public static int ntransientVbUsed​(long struct)
        Unsafe version of transientVbUsed().
      • ntransientIbUsed

        public static int ntransientIbUsed​(long struct)
        Unsafe version of transientIbUsed().
      • nnumPrims

        public static java.nio.IntBuffer nnumPrims​(long struct)
        Unsafe version of numPrims().
      • nnumPrims

        public static int nnumPrims​(long struct,
                                    int index)
        Unsafe version of numPrims.
      • ngpuMemoryMax

        public static long ngpuMemoryMax​(long struct)
        Unsafe version of gpuMemoryMax().
      • ngpuMemoryUsed

        public static long ngpuMemoryUsed​(long struct)
        Unsafe version of gpuMemoryUsed().
      • nwidth

        public static short nwidth​(long struct)
        Unsafe version of width().
      • nheight

        public static short nheight​(long struct)
        Unsafe version of height().
      • ntextWidth

        public static short ntextWidth​(long struct)
        Unsafe version of textWidth().
      • ntextHeight

        public static short ntextHeight​(long struct)
        Unsafe version of textHeight().
      • nnumViews

        public static short nnumViews​(long struct)
        Unsafe version of numViews().
      • nnumEncoders

        public static short nnumEncoders​(long struct)
        Unsafe version of numEncoders().