wgpu-native icon indicating copy to clipboard operation
wgpu-native copied to clipboard

Panic on `wgpuDeviceCreateModuleSpirV` with SpirvShaderPassthrough enabled

Open radgeRayden opened this issue 5 months ago • 1 comments

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.

radgeRayden avatar Oct 11 '25 20:10 radgeRayden

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?).

Vipitis avatar Oct 13 '25 23:10 Vipitis