Package org.lwjgl.bgfx
Class BGFXStats
- java.lang.Object
-
- org.lwjgl.system.Pointer.Default
-
- org.lwjgl.system.Struct
-
- org.lwjgl.bgfx.BGFXStats
-
- All Implemented Interfaces:
org.lwjgl.system.Pointer
public class BGFXStats extends org.lwjgl.system.StructRenderer statistics data.All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
Layout
struct bgfx_stats_t { int64_tcpuTimeFrame(); int64_tcpuTimeBegin(); int64_tcpuTimeEnd(); int64_tcpuTimerFreq(); int64_tgpuTimeBegin(); int64_tgpuTimeEnd(); int64_tgpuTimerFreq(); int64_twaitRender(); int64_twaitSubmit(); uint32_tnumDraw(); uint32_tnumCompute(); uint32_tnumBlit(); uint32_tmaxGpuLatency(); uint16_tnumDynamicIndexBuffers(); uint16_tnumDynamicVertexBuffers(); uint16_tnumFrameBuffers(); uint16_tnumIndexBuffers(); uint16_tnumOcclusionQueries(); uint16_tnumPrograms(); uint16_tnumShaders(); uint16_tnumTextures(); uint16_tnumUniforms(); uint16_tnumVertexBuffers(); uint16_tnumVertexLayouts(); int64_ttextureMemoryUsed(); int64_trtMemoryUsed(); int32_ttransientVbUsed(); int32_ttransientIbUsed(); uint32_tnumPrims()[BGFX_TOPOLOGY_COUNT]; int64_tgpuMemoryMax(); int64_tgpuMemoryUsed(); uint16_twidth(); uint16_theight(); uint16_ttextWidth(); uint16_ttextHeight(); uint16_tnumViews();bgfx_view_stats_t*viewStats(); uint16_tnumEncoders();bgfx_encoder_stats_t*encoderStats(); }
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classBGFXStats.BufferAn array ofBGFXStatsstructs.
-
Field Summary
Fields Modifier and Type Field Description static intALIGNOFThe struct alignment in bytes.static intCPUTIMEBEGIN
CPUTIMEEND
CPUTIMEFRAME
CPUTIMERFREQ
ENCODERSTATS
GPUMEMORYMAX
GPUMEMORYUSED
GPUTIMEBEGIN
GPUTIMEEND
GPUTIMERFREQ
HEIGHT
MAXGPULATENCY
NUMBLIT
NUMCOMPUTE
NUMDRAW
NUMDYNAMICINDEXBUFFERS
NUMDYNAMICVERTEXBUFFERS
NUMENCODERS
NUMFRAMEBUFFERS
NUMINDEXBUFFERS
NUMOCCLUSIONQUERIES
NUMPRIMS
NUMPROGRAMS
NUMSHADERS
NUMTEXTURES
NUMUNIFORMS
NUMVERTEXBUFFERS
NUMVERTEXLAYOUTS
NUMVIEWS
RTMEMORYUSEDThe struct member offsets.static intSIZEOFThe struct size in bytes.static intTEXTHEIGHT
TEXTUREMEMORYUSED
TEXTWIDTH
TRANSIENTIBUSED
TRANSIENTVBUSED
VIEWSTATS
WAITRENDER
WAITSUBMIT
WIDTHThe struct member offsets.
-
Constructor Summary
Constructors Constructor Description BGFXStats(java.nio.ByteBuffer container)Creates aBGFXStatsinstance at the current position of the specifiedByteBuffercontainer.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description longcpuTimeBegin()Render thread CPU submit begin timelongcpuTimeEnd()Render thread CPU submit end timelongcpuTimeFrame()CPU time between twoframecallslongcpuTimerFreq()CPU timer frequency.static BGFXStatscreate(long address)Returns a newBGFXStatsinstance for the specified memory address.static BGFXStats.Buffercreate(long address, int capacity)Create aBGFXStats.Bufferinstance at the specified memory.static BGFXStatscreateSafe(long address)static BGFXStats.BuffercreateSafe(long address, int capacity)BGFXEncoderStats.BufferencoderStats()array of encoder statslonggpuMemoryMax()maximum available GPU memory for applicationlonggpuMemoryUsed()amount of GPU memory used by the applicationlonggpuTimeBegin()GPU frame begin timelonggpuTimeEnd()GPU frame end timelonggpuTimerFreq()GPU timer frequencyshortheight()backbuffer height in pixelsintmaxGpuLatency()GPU driver latencystatic longncpuTimeBegin(long struct)Unsafe version ofcpuTimeBegin().static longncpuTimeEnd(long struct)Unsafe version ofcpuTimeEnd().static longncpuTimeFrame(long struct)Unsafe version ofcpuTimeFrame().static longncpuTimerFreq(long struct)Unsafe version ofcpuTimerFreq().static BGFXEncoderStats.BuffernencoderStats(long struct)Unsafe version ofencoderStats().static longngpuMemoryMax(long struct)Unsafe version ofgpuMemoryMax().static longngpuMemoryUsed(long struct)Unsafe version ofgpuMemoryUsed().static longngpuTimeBegin(long struct)Unsafe version ofgpuTimeBegin().static longngpuTimeEnd(long struct)Unsafe version ofgpuTimeEnd().static longngpuTimerFreq(long struct)Unsafe version ofgpuTimerFreq().static shortnheight(long struct)Unsafe version ofheight().static intnmaxGpuLatency(long struct)Unsafe version ofmaxGpuLatency().static intnnumBlit(long struct)Unsafe version ofnumBlit().static intnnumCompute(long struct)Unsafe version ofnumCompute().static intnnumDraw(long struct)Unsafe version ofnumDraw().static shortnnumDynamicIndexBuffers(long struct)Unsafe version ofnumDynamicIndexBuffers().static shortnnumDynamicVertexBuffers(long struct)Unsafe version ofnumDynamicVertexBuffers().static shortnnumEncoders(long struct)Unsafe version ofnumEncoders().static shortnnumFrameBuffers(long struct)Unsafe version ofnumFrameBuffers().static shortnnumIndexBuffers(long struct)Unsafe version ofnumIndexBuffers().static shortnnumOcclusionQueries(long struct)Unsafe version ofnumOcclusionQueries().static java.nio.IntBuffernnumPrims(long struct)Unsafe version ofnumPrims().static intnnumPrims(long struct, int index)Unsafe version ofnumPrims.static shortnnumPrograms(long struct)Unsafe version ofnumPrograms().static shortnnumShaders(long struct)Unsafe version ofnumShaders().static shortnnumTextures(long struct)Unsafe version ofnumTextures().static shortnnumUniforms(long struct)Unsafe version ofnumUniforms().static shortnnumVertexBuffers(long struct)Unsafe version ofnumVertexBuffers().static shortnnumVertexLayouts(long struct)Unsafe version ofnumVertexLayouts().static shortnnumViews(long struct)Unsafe version ofnumViews().static longnrtMemoryUsed(long struct)Unsafe version ofrtMemoryUsed().static shortntextHeight(long struct)Unsafe version oftextHeight().static longntextureMemoryUsed(long struct)Unsafe version oftextureMemoryUsed().static shortntextWidth(long struct)Unsafe version oftextWidth().static intntransientIbUsed(long struct)Unsafe version oftransientIbUsed().static intntransientVbUsed(long struct)Unsafe version oftransientVbUsed().intnumBlit()number of blit calls submittedintnumCompute()number of compute calls submittedintnumDraw()number of draw calls submittedshortnumDynamicIndexBuffers()number of used dynamic index buffersshortnumDynamicVertexBuffers()number of used dynamic vertex buffersshortnumEncoders()number of encoders used during frameshortnumFrameBuffers()number of used frame buffersshortnumIndexBuffers()number of used index buffersshortnumOcclusionQueries()number of used occlusion queriesjava.nio.IntBuffernumPrims()number of primitives renderedintnumPrims(int index)number of primitives renderedshortnumPrograms()number of used programsshortnumShaders()number of used shadersshortnumTextures()number of used texturesshortnumUniforms()number of used uniformsshortnumVertexBuffers()number of used vertex buffersshortnumVertexLayouts()number of used vertex layoutsshortnumViews()number of view statsstatic BGFXViewStats.BuffernviewStats(long struct)Unsafe version ofviewStats().static longnwaitRender(long struct)Unsafe version ofwaitRender().static longnwaitSubmit(long struct)Unsafe version ofwaitSubmit().static shortnwidth(long struct)Unsafe version ofwidth().longrtMemoryUsed()estimate of render target memory usedintsizeof()shorttextHeight()debug text height in characterslongtextureMemoryUsed()estimate of texture memory usedshorttextWidth()debug text width in charactersinttransientIbUsed()amount of transient index buffer usedinttransientVbUsed()amount of transient vertex buffer usedBGFXViewStats.BufferviewStats()array of view statslongwaitRender()time spent waiting for render backend thread to finish issuing draw commands to underlying graphics APIlongwaitSubmit()time spent waiting for submit thread to advance to next frameshortwidth()backbuffer width in pixels
-
-
-
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 aBGFXStatsinstance at the current position of the specifiedByteBuffercontainer. 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:
sizeofin classorg.lwjgl.system.Struct
-
cpuTimeFrame
public long cpuTimeFrame()
CPU time between twoframecalls
-
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
-
viewStats
public BGFXViewStats.Buffer viewStats()
array of view stats
-
numEncoders
public short numEncoders()
number of encoders used during frame
-
encoderStats
public BGFXEncoderStats.Buffer encoderStats()
array of encoder stats
-
create
public static BGFXStats create(long address)
Returns a newBGFXStatsinstance for the specified memory address.
-
createSafe
@Nullable public static BGFXStats createSafe(long address)
-
create
public static BGFXStats.Buffer create(long address, int capacity)
Create aBGFXStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
@Nullable public static BGFXStats.Buffer createSafe(long address, int capacity)
-
ncpuTimeFrame
public static long ncpuTimeFrame(long struct)
Unsafe version ofcpuTimeFrame().
-
ncpuTimeBegin
public static long ncpuTimeBegin(long struct)
Unsafe version ofcpuTimeBegin().
-
ncpuTimeEnd
public static long ncpuTimeEnd(long struct)
Unsafe version ofcpuTimeEnd().
-
ncpuTimerFreq
public static long ncpuTimerFreq(long struct)
Unsafe version ofcpuTimerFreq().
-
ngpuTimeBegin
public static long ngpuTimeBegin(long struct)
Unsafe version ofgpuTimeBegin().
-
ngpuTimeEnd
public static long ngpuTimeEnd(long struct)
Unsafe version ofgpuTimeEnd().
-
ngpuTimerFreq
public static long ngpuTimerFreq(long struct)
Unsafe version ofgpuTimerFreq().
-
nwaitRender
public static long nwaitRender(long struct)
Unsafe version ofwaitRender().
-
nwaitSubmit
public static long nwaitSubmit(long struct)
Unsafe version ofwaitSubmit().
-
nnumDraw
public static int nnumDraw(long struct)
Unsafe version ofnumDraw().
-
nnumCompute
public static int nnumCompute(long struct)
Unsafe version ofnumCompute().
-
nnumBlit
public static int nnumBlit(long struct)
Unsafe version ofnumBlit().
-
nmaxGpuLatency
public static int nmaxGpuLatency(long struct)
Unsafe version ofmaxGpuLatency().
-
nnumDynamicIndexBuffers
public static short nnumDynamicIndexBuffers(long struct)
Unsafe version ofnumDynamicIndexBuffers().
-
nnumDynamicVertexBuffers
public static short nnumDynamicVertexBuffers(long struct)
Unsafe version ofnumDynamicVertexBuffers().
-
nnumFrameBuffers
public static short nnumFrameBuffers(long struct)
Unsafe version ofnumFrameBuffers().
-
nnumIndexBuffers
public static short nnumIndexBuffers(long struct)
Unsafe version ofnumIndexBuffers().
-
nnumOcclusionQueries
public static short nnumOcclusionQueries(long struct)
Unsafe version ofnumOcclusionQueries().
-
nnumPrograms
public static short nnumPrograms(long struct)
Unsafe version ofnumPrograms().
-
nnumShaders
public static short nnumShaders(long struct)
Unsafe version ofnumShaders().
-
nnumTextures
public static short nnumTextures(long struct)
Unsafe version ofnumTextures().
-
nnumUniforms
public static short nnumUniforms(long struct)
Unsafe version ofnumUniforms().
-
nnumVertexBuffers
public static short nnumVertexBuffers(long struct)
Unsafe version ofnumVertexBuffers().
-
nnumVertexLayouts
public static short nnumVertexLayouts(long struct)
Unsafe version ofnumVertexLayouts().
-
ntextureMemoryUsed
public static long ntextureMemoryUsed(long struct)
Unsafe version oftextureMemoryUsed().
-
nrtMemoryUsed
public static long nrtMemoryUsed(long struct)
Unsafe version ofrtMemoryUsed().
-
ntransientVbUsed
public static int ntransientVbUsed(long struct)
Unsafe version oftransientVbUsed().
-
ntransientIbUsed
public static int ntransientIbUsed(long struct)
Unsafe version oftransientIbUsed().
-
nnumPrims
public static java.nio.IntBuffer nnumPrims(long struct)
Unsafe version ofnumPrims().
-
nnumPrims
public static int nnumPrims(long struct, int index)Unsafe version ofnumPrims.
-
ngpuMemoryMax
public static long ngpuMemoryMax(long struct)
Unsafe version ofgpuMemoryMax().
-
ngpuMemoryUsed
public static long ngpuMemoryUsed(long struct)
Unsafe version ofgpuMemoryUsed().
-
nwidth
public static short nwidth(long struct)
Unsafe version ofwidth().
-
nheight
public static short nheight(long struct)
Unsafe version ofheight().
-
ntextWidth
public static short ntextWidth(long struct)
Unsafe version oftextWidth().
-
ntextHeight
public static short ntextHeight(long struct)
Unsafe version oftextHeight().
-
nnumViews
public static short nnumViews(long struct)
Unsafe version ofnumViews().
-
nviewStats
public static BGFXViewStats.Buffer nviewStats(long struct)
Unsafe version ofviewStats().
-
nnumEncoders
public static short nnumEncoders(long struct)
Unsafe version ofnumEncoders().
-
nencoderStats
public static BGFXEncoderStats.Buffer nencoderStats(long struct)
Unsafe version ofencoderStats().
-
-