gfx-rs / gfx

[maintenance mode] A low-overhead Vulkan-like GPU API for Rust.
http://gfx-rs.github.io/
Apache License 2.0
5.35k stars 551 forks source link

Missing MESH_SHADER feature in mesh-shading example #3794

Open JMans15 opened 1 year ago

JMans15 commented 1 year ago

Short info header:

I tried to run the mesh-shading example with vulkan because it's similar to what I want to do, I ran it this way : __NV_PRIME_RENDER_OFFLOAD=1 __GLX_VENDOR_LIBRARY_NAME=nvidia cargo run --bin mesh-shading --features=vulkan (also tried without the env variables)

The window instantly closes and I get the following error :

AdapterInfo { name: "AMD Radeon Graphics (RADV RENOIR)", vendor: 4098, device: 5688, device_type: IntegratedGpu }
AdapterInfo { name: "NVIDIA GeForce RTX 3070 Laptop GPU", vendor: 4318, device: 9373, device_type: DiscreteGpu }
AdapterInfo { name: "llvmpipe (LLVM 15.0.7, 256 bits)", vendor: 65541, device: 0, device_type: Cpu }
thread 'main' panicked at 'called `Result::unwrap()` on an `Err` value: MissingFeature', examples/mesh-shading/main.rs:212:18

Line 212 corresponds to the feature hal::Features::MESH_SHADER which seems to be missing. Is this my GPU that doesn't implement the feature? Can I do something? Other backends don't work either and Vulkan is the one I'm interested in anyways.