wgpu-native
wgpu-native copied to clipboard
Panic on `wgpuDeviceCreateModuleSpirV` with SpirvShaderPassthrough enabled
In v27.0.2.0, when trying to use pass-through shaders I get the following error:
Validation Error
Caused by:
In wgpuDeviceCreateShaderModuleSpirV
Features Features { features_wgpu: FeaturesWGPU(EXPERIMENTAL_PASSTHROUGH_SHADERS), features_webgpu: FeaturesWebGPU(0x0) } are required but not enabled on the device
even though SpirvShaderPassthrough was required during device creation, which didn't fail.
I believe all experimental features, even if requested - are disabled because of this line here
https://github.com/gfx-rs/wgpu-native/blob/74f8c24c903b6352d09f1928c56962ce06f77a4d/src/conv.rs#L384
and it's currently not exposed to set that to enable (or perhaps enable automatically when experimental features are requested?).