Skip to main content

cmd_buf_count

Function cmd_buf_count 

Source
pub fn cmd_buf_count() -> u64
Expand description

Read the current value of CMD_BUF_COUNT.

Each CommandEncoder::new (i.e. each MlxDevice::command_encoder()) increments this counter. Useful for diagnosing per-dispatch Metal command-buffer overhead in inner loops.