#[repr(C)]pub struct bgfx_stats_s {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_t,
pub numEncoders: u8,
pub encoderStats: *mut bgfx_encoder_stats_t,
}Expand description
Renderer statistics data. @remarks All time values are high-resolution timestamps, while time frequencies define timestamps-per-second for that hardware.
Fields§
§cpuTimeFrame: i64§cpuTimeBegin: i64CPU time between two bgfx::frame calls.
cpuTimeEnd: i64Render thread CPU submit begin time.
cpuTimerFreq: i64Render thread CPU submit end time.
gpuTimeBegin: i64CPU timer frequency. Timestamps-per-second
gpuTimeEnd: i64GPU frame begin time.
gpuTimerFreq: i64GPU frame end time.
waitRender: i64GPU timer frequency.
waitSubmit: i64Time spent waiting for render backend thread to finish issuing draw commands to underlying graphics API.
numDraw: u32Time spent waiting for submit thread to advance to next frame.
numCompute: u32Number of draw calls submitted.
numBlit: u32Number of compute calls submitted.
maxGpuLatency: u32Number of blit calls submitted.
gpuFrameNum: u32GPU driver latency.
numDynamicIndexBuffers: u16Frame which generated gpuTimeBegin, gpuTimeEnd.
numDynamicVertexBuffers: u16Number of used dynamic index buffers.
numFrameBuffers: u16Number of used dynamic vertex buffers.
numIndexBuffers: u16Number of used frame buffers.
numOcclusionQueries: u16Number of used index buffers.
numPrograms: u16Number of used occlusion queries.
numShaders: u16Number of used programs.
numTextures: u16Number of used shaders.
numUniforms: u16Number of used textures.
numVertexBuffers: u16Number of used uniforms.
numVertexLayouts: u16Number of used vertex buffers.
textureMemoryUsed: i64Number of used vertex layouts.
rtMemoryUsed: i64Estimate of texture memory used.
transientVbUsed: i32Estimate of render target memory used.
transientIbUsed: i32Amount of transient vertex buffer used.
numPrims: [u32; 5]Amount of transient index buffer used.
gpuMemoryMax: i64Number of primitives rendered.
gpuMemoryUsed: i64Maximum available GPU memory for application.
width: u16Amount of GPU memory used by the application.
height: u16Backbuffer width in pixels.
textWidth: u16Backbuffer height in pixels.
textHeight: u16Debug text width in characters.
numViews: u16Debug text height in characters.
viewStats: *mut bgfx_view_stats_tNumber of view stats.
numEncoders: u8Array of View stats.
encoderStats: *mut bgfx_encoder_stats_tNumber of encoders used during frame.
Trait Implementations§
Source§impl Clone for bgfx_stats_s
impl Clone for bgfx_stats_s
Source§fn clone(&self) -> bgfx_stats_s
fn clone(&self) -> bgfx_stats_s
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more