Replies: 2 comments
|
I've also experienced this same issue. |
0 replies
|
I finally got WSL GPU rendering basically working, except Tested on:
1. Make Ubuntu detect the GPUBy default, Mesa falls back to # Fix OpenGL (otherwise Mesa falls back to llvmpipe)
echo 'export GALLIUM_DRIVER=d3d12' >> ~/.bashrc
# Optional: select a specific GPU when multiple adapters exist
# echo 'export MESA_D3D12_DEFAULT_ADAPTER_NAME=NVIDIA' >> ~/.bashrc
source ~/.bashrc
# Install Mesa Dozen/dzn Vulkan ICD
sudo add-apt-repository -y ppa:kisak/kisak-mesa
sudo apt update
sudo apt install -y mesa-vulkan-driversReference: 2. Bevy / wgpu adapter selection issueMesa Dozen ( Without allowing non-conformant adapters, The workaround is to enable: WGPU_ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER=1 cargo runor configure it in Bevy: fn main() {
App::new()
.add_plugins(
DefaultPlugins.set(RenderPlugin {
render_creation: RenderCreation::Automatic(Box::new(
WgpuSettings {
instance_flags: InstanceFlags::ALLOW_UNDERLYING_NONCOMPLIANT_ADAPTER,
..default()
},
)),
..default()
}),
)
// Without this, resizing/maximizing the window crashes.
// Spawning Camera2d fixes it; this may be related to another issue.
.add_systems(Startup, |mut commands: Commands| {
commands.spawn(Camera2d);
})
.run();
}Reference: 3. Current Bevy feature testingI tested Bevy 0.19 with all default features enabled except bevy = { version = "0.19" ,default-features=false, features =["dynamic_linking","dev",
"2d","ui","audio","3d_api","bevy_render","bevy_core_pipeline",
"bevy_gizmos_render","bevy_anti_alias","bevy_gltf","bevy_post_process","gltf_animation"]}This seems to work correctly with GPU rendering in WSL. However, enabling |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Hello !
I'm super new to Rust and Bevy and I wanted to try out some features Bevy has to offer.
I followed a quick tutorial to launch my very first window, and, while it could indeed create one, I realize with from the output that it wasn't my GPU that handled this.
It said :
So I looked to the "B0006 Error" but I tried every possible solutions and nothing worked out.
For information, i have a RTX 5070 Ti and the lastest nvidia driver.
I also use wsl 2 with ubuntu installed.
Thank you so much (English isn't my first language, sorry for my potential mystakes)
I can show you the complete output if needed.
All reactions