rust - 如何在没有 GPU 的情况下使用默认插件运行 Bevy 应用程序?
问题描述
我的笔记本电脑没有专用 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
解决方案
推荐阅读
- ffmpeg - FFMPEG 使用隐藏式字幕数据捕获视频
- python - 通过 Snakemake 创建文件时防止科学写作
- flask - Flask -Restplus + swagger,如何限制经过身份验证的用户+/角色
- jquery - 如何使用 JQuery 以编程方式在 XML 文件中的单词之间插入字符串?
- perl - 时间戳格式
- asp.net-core - 发布 Asp.Net Core 应用程序时传递变量
- php - 检查验证码后如何让我的网站发送电子邮件
- c - 如何在 C 中使用 PCRE 进行多个匹配
- sql - 删除重复项并修复 T-SQL 中的外键
- laravel - 如何将 Laravel 5.2 升级到最新版本?