Package org.lwjgl.bgfx
Class BGFXStats
java.lang.Object
org.lwjgl.system.Pointer.Default
org.lwjgl.system.Struct<BGFXStats>
org.lwjgl.bgfx.BGFXStats
- All Implemented Interfaces:
org.lwjgl.system.Pointer
Renderer 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_t cpuTimeFrame();
int64_t cpuTimeBegin();
int64_t cpuTimeEnd();
int64_t cpuTimerFreq();
int64_t gpuTimeBegin();
int64_t gpuTimeEnd();
int64_t gpuTimerFreq();
int64_t waitRender();
int64_t waitSubmit();
uint32_t numDraw();
uint32_t numCompute();
uint32_t numBlit();
uint32_t maxGpuLatency();
uint32_t gpuFrameNum();
uint16_t numDynamicIndexBuffers();
uint16_t numDynamicVertexBuffers();
uint16_t numFrameBuffers();
uint16_t numIndexBuffers();
uint16_t numOcclusionQueries();
uint16_t numPrograms();
uint16_t numShaders();
uint16_t numTextures();
uint16_t numUniforms();
uint16_t numVertexBuffers();
uint16_t numVertexLayouts();
int64_t textureMemoryUsed();
int64_t rtMemoryUsed();
int32_t transientVbUsed();
int32_t transientIbUsed();
uint32_t numPrims()[BGFX_TOPOLOGY_COUNT];
int64_t gpuMemoryMax();
int64_t gpuMemoryUsed();
uint16_t width();
uint16_t height();
uint16_t textWidth();
uint16_t textHeight();
uint16_t numViews();
bgfx_view_stats_t * viewStats();
uint16_t numEncoders();
bgfx_encoder_stats_t * encoderStats();
}-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.lwjgl.system.Struct
org.lwjgl.system.Struct.StructValidationNested classes/interfaces inherited from interface org.lwjgl.system.Pointer
org.lwjgl.system.Pointer.Default -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThe struct alignment in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct size in bytes.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.static final intThe struct member offsets.Fields inherited from interface org.lwjgl.system.Pointer
BITS32, BITS64, CLONG_SHIFT, CLONG_SIZE, POINTER_SHIFT, POINTER_SIZE -
Constructor Summary
ConstructorsConstructorDescriptionBGFXStats(ByteBuffer container) Creates aBGFXStatsinstance at the current position of the specifiedByteBuffercontainer. -
Method Summary
Modifier and TypeMethodDescriptionlongRender thread CPU submit begin timelongRender thread CPU submit end timelongCPU time between twoframecallslongCPU 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 @Nullable BGFXStatscreateSafe(long address) static @Nullable BGFXStats.BuffercreateSafe(long address, int capacity) array of encoder statsintframe which generatedgpuTimeBegin,gpuTimeEndlongmaximum available GPU memory for applicationlongamount of GPU memory used by the applicationlongGPU frame begin timelongGPU frame end timelongGPU timer frequencyshortheight()backbuffer height in pixelsintGPU 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 intngpuFrameNum(long struct) Unsafe version ofgpuFrameNum().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 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 submittedintnumber of compute calls submittedintnumDraw()number of draw calls submittedshortnumber of used dynamic index buffersshortnumber of used dynamic vertex buffersshortnumber of encoders used during frameshortnumber of used frame buffersshortnumber of used index buffersshortnumber of used occlusion queriesnumPrims()number of primitives renderedintnumPrims(int index) number of primitives renderedshortnumber of used programsshortnumber of used shadersshortnumber of used texturesshortnumber of used uniformsshortnumber of used vertex buffersshortnumber 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().longestimate of render target memory usedintsizeof()shortdebug text height in characterslongestimate of texture memory usedshortdebug text width in charactersintamount of transient index buffer usedintamount of transient vertex buffer usedarray of view statslongtime spent waiting for render backend thread to finish issuing draw commands to underlying graphics APIlongtime spent waiting for submit thread to advance to next frameshortwidth()backbuffer width in pixelsMethods inherited from class org.lwjgl.system.Struct
clear, free, isNull, validate, validateMethods inherited from class org.lwjgl.system.Pointer.Default
address, equals, hashCode, toString
-
Field Details
-
SIZEOF
public static final int SIZEOFThe struct size in bytes. -
ALIGNOF
public static final int ALIGNOFThe struct alignment in bytes. -
CPUTIMEFRAME
public static final int CPUTIMEFRAMEThe struct member offsets. -
CPUTIMEBEGIN
public static final int CPUTIMEBEGINThe struct member offsets. -
CPUTIMEEND
public static final int CPUTIMEENDThe struct member offsets. -
CPUTIMERFREQ
public static final int CPUTIMERFREQThe struct member offsets. -
GPUTIMEBEGIN
public static final int GPUTIMEBEGINThe struct member offsets. -
GPUTIMEEND
public static final int GPUTIMEENDThe struct member offsets. -
GPUTIMERFREQ
public static final int GPUTIMERFREQThe struct member offsets. -
WAITRENDER
public static final int WAITRENDERThe struct member offsets. -
WAITSUBMIT
public static final int WAITSUBMITThe struct member offsets. -
NUMDRAW
public static final int NUMDRAWThe struct member offsets. -
NUMCOMPUTE
public static final int NUMCOMPUTEThe struct member offsets. -
NUMBLIT
public static final int NUMBLITThe struct member offsets. -
MAXGPULATENCY
public static final int MAXGPULATENCYThe struct member offsets. -
GPUFRAMENUM
public static final int GPUFRAMENUMThe struct member offsets. -
NUMDYNAMICINDEXBUFFERS
public static final int NUMDYNAMICINDEXBUFFERSThe struct member offsets. -
NUMDYNAMICVERTEXBUFFERS
public static final int NUMDYNAMICVERTEXBUFFERSThe struct member offsets. -
NUMFRAMEBUFFERS
public static final int NUMFRAMEBUFFERSThe struct member offsets. -
NUMINDEXBUFFERS
public static final int NUMINDEXBUFFERSThe struct member offsets. -
NUMOCCLUSIONQUERIES
public static final int NUMOCCLUSIONQUERIESThe struct member offsets. -
NUMPROGRAMS
public static final int NUMPROGRAMSThe struct member offsets. -
NUMSHADERS
public static final int NUMSHADERSThe struct member offsets. -
NUMTEXTURES
public static final int NUMTEXTURESThe struct member offsets. -
NUMUNIFORMS
public static final int NUMUNIFORMSThe struct member offsets. -
NUMVERTEXBUFFERS
public static final int NUMVERTEXBUFFERSThe struct member offsets. -
NUMVERTEXLAYOUTS
public static final int NUMVERTEXLAYOUTSThe struct member offsets. -
TEXTUREMEMORYUSED
public static final int TEXTUREMEMORYUSEDThe struct member offsets. -
RTMEMORYUSED
public static final int RTMEMORYUSEDThe struct member offsets. -
TRANSIENTVBUSED
public static final int TRANSIENTVBUSEDThe struct member offsets. -
TRANSIENTIBUSED
public static final int TRANSIENTIBUSEDThe struct member offsets. -
NUMPRIMS
public static final int NUMPRIMSThe struct member offsets. -
GPUMEMORYMAX
public static final int GPUMEMORYMAXThe struct member offsets. -
GPUMEMORYUSED
public static final int GPUMEMORYUSEDThe struct member offsets. -
WIDTH
public static final int WIDTHThe struct member offsets. -
HEIGHT
public static final int HEIGHTThe struct member offsets. -
TEXTWIDTH
public static final int TEXTWIDTHThe struct member offsets. -
TEXTHEIGHT
public static final int TEXTHEIGHTThe struct member offsets. -
NUMVIEWS
public static final int NUMVIEWSThe struct member offsets. -
VIEWSTATS
public static final int VIEWSTATSThe struct member offsets. -
NUMENCODERS
public static final int NUMENCODERSThe struct member offsets. -
ENCODERSTATS
public static final int ENCODERSTATSThe struct member offsets.
-
-
Constructor Details
-
BGFXStats
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 Details
-
sizeof
public int sizeof()- Specified by:
sizeofin classorg.lwjgl.system.Struct<BGFXStats>
-
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 -
gpuFrameNum
public int gpuFrameNum()frame which generatedgpuTimeBegin,gpuTimeEnd -
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
number of primitives rendered -
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
array of view stats -
numEncoders
public short numEncoders()number of encoders used during frame -
encoderStats
array of encoder stats -
create
Returns a newBGFXStatsinstance for the specified memory address. -
createSafe
-
create
Create aBGFXStats.Bufferinstance at the specified memory.- Parameters:
address- the memory addresscapacity- the buffer capacity
-
createSafe
-
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(). -
ngpuFrameNum
public static int ngpuFrameNum(long struct) Unsafe version ofgpuFrameNum(). -
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
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
Unsafe version ofviewStats(). -
nnumEncoders
public static short nnumEncoders(long struct) Unsafe version ofnumEncoders(). -
nencoderStats
Unsafe version ofencoderStats().
-