fn validate_command_buffer(
command_buffer: &CommandBuffer,
queue: &Queue,
cmd_buf_data: &CommandBufferMutable,
snatch_guard: &SnatchGuard<'_>,
surface_textures: &mut FastHashMap<*const Texture, Arc<Texture>>,
used_surface_textures: &mut TextureUsageScope,
command_index_guard: &mut RwLockWriteGuard<'_, CommandIndices>,
) -> Result<(), QueueSubmitError>