我的笔记本电脑没有专用 GPU。我在这台具有集成 GPU 的笔记本电脑上运行基本 OS 5 。当我尝试运行初学者的 Bevy 应用程序时,
use bevy::prelude::*;
fn main() {
App::build()
.add_default_plugins()
.run();
}
我收到以下错误 -
thread 'main' panicked at 'Unable to find a GPU! Make sure you have installed required drivers!', /home/actuday/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_wgpu-0.1.3/src/wgpu_renderer.rs:22:23
我已经为我的 GPU 安装并升级了驱动程序。的输出
glxinfo | grep "OpenGL"
包含该行
OpenGL version string: 4.6 (Compatibility Profile) Mesa 20.3.0-devel (git-98e866c 2020-09-03 bionic-oibaf-ppa)
和
OpenGL renderer string: Mesa Intel(R) UHD Graphics 620 (KBL GT2)
我安装了 vulkan,错误现在被替换为 -
Running `target/debug/bevy_app`
WARNING: vallium/llvmpipe is not a conformant vulkan implementation, testing use only.
INTEL-MESA: warning: Performance support disabled, consider sysctl dev.i915.perf_stream_paranoid=0
thread 'main' panicked at 'Failed to acquire next swap chain texture!', /home/actuday/.cargo/registry/src/github.com-1ecc6299db9ec823/bevy_wgpu-0.1.3/src/renderer/wgpu_render_resource_context.rs:291:13
note: run with `RUST_BACKTRACE=1` environment variable to display a backtrace