pub fn with_gpu_manager<R, F: FnOnce(&GpuManager) -> R>(f: F) -> Option<R>
Execute a function with the GPU manager