Type Alias bgfx_sys::bgfx_stats_t

source ·
pub type bgfx_stats_t = bgfx_stats_s;
Expand description

Renderer statistics data. @remarks All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.

Aliased Type§

struct bgfx_stats_t {
Show 40 fields pub cpuTimeFrame: i64, pub cpuTimeBegin: i64, pub cpuTimeEnd: i64, pub cpuTimerFreq: i64, pub gpuTimeBegin: i64, pub gpuTimeEnd: i64, pub gpuTimerFreq: i64, pub waitRender: i64, pub waitSubmit: i64, pub numDraw: u32, pub numCompute: u32, pub numBlit: u32, pub maxGpuLatency: u32, pub gpuFrameNum: u32, pub numDynamicIndexBuffers: u16, pub numDynamicVertexBuffers: u16, pub numFrameBuffers: u16, pub numIndexBuffers: u16, pub numOcclusionQueries: u16, pub numPrograms: u16, pub numShaders: u16, pub numTextures: u16, pub numUniforms: u16, pub numVertexBuffers: u16, pub numVertexLayouts: u16, pub textureMemoryUsed: i64, pub rtMemoryUsed: i64, pub transientVbUsed: i32, pub transientIbUsed: i32, pub numPrims: [u32; 5], pub gpuMemoryMax: i64, pub gpuMemoryUsed: i64, pub width: u16, pub height: u16, pub textWidth: u16, pub textHeight: u16, pub numViews: u16, pub viewStats: *mut bgfx_view_stats_s, pub numEncoders: u8, pub encoderStats: *mut bgfx_encoder_stats_s,
}

Fields§

§cpuTimeFrame: i64§cpuTimeBegin: i64

CPU time between two bgfx::frame calls.

§cpuTimeEnd: i64

Render thread CPU submit begin time.

§cpuTimerFreq: i64

Render thread CPU submit end time.

§gpuTimeBegin: i64

CPU timer frequency. Timestamps-per-second

§gpuTimeEnd: i64

GPU frame begin time.

§gpuTimerFreq: i64

GPU frame end time.

§waitRender: i64

GPU timer frequency.

§waitSubmit: i64

Time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API.

§numDraw: u32

Time spent waiting for submit thread to advance to next frame.

§numCompute: u32

Number of draw calls submitted.

§numBlit: u32

Number of compute calls submitted.

§maxGpuLatency: u32

Number of blit calls submitted.

§gpuFrameNum: u32

GPU driver latency.

§numDynamicIndexBuffers: u16

Frame which generated gpuTimeBegin, gpuTimeEnd.

§numDynamicVertexBuffers: u16

Number of used dynamic index buffers.

§numFrameBuffers: u16

Number of used dynamic vertex buffers.

§numIndexBuffers: u16

Number of used frame buffers.

§numOcclusionQueries: u16

Number of used index buffers.

§numPrograms: u16

Number of used occlusion queries.

§numShaders: u16

Number of used programs.

§numTextures: u16

Number of used shaders.

§numUniforms: u16

Number of used textures.

§numVertexBuffers: u16

Number of used uniforms.

§numVertexLayouts: u16

Number of used vertex buffers.

§textureMemoryUsed: i64

Number of used vertex layouts.

§rtMemoryUsed: i64

Estimate of texture memory used.

§transientVbUsed: i32

Estimate of render target memory used.

§transientIbUsed: i32

Amount of transient vertex buffer used.

§numPrims: [u32; 5]

Amount of transient index buffer used.

§gpuMemoryMax: i64

Number of primitives rendered.

§gpuMemoryUsed: i64

Maximum available GPU memory for application.

§width: u16

Amount of GPU memory used by the application.

§height: u16

Backbuffer width in pixels.

§textWidth: u16

Backbuffer height in pixels.

§textHeight: u16

Debug text width in characters.

§numViews: u16

Debug text height in characters.

§viewStats: *mut bgfx_view_stats_s

Number of view stats.

§numEncoders: u8

Array of View stats.

§encoderStats: *mut bgfx_encoder_stats_s

Number of encoders used during frame.