mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
Force-enable EXPERIMENTAL_TRANSLATION flag when running without cross feature
This commit is contained in:
@@ -1033,6 +1033,7 @@ impl<B: GfxBackend> Device<B> {
|
||||
let naga_result = if desc
|
||||
.flags
|
||||
.contains(wgt::ShaderFlags::EXPERIMENTAL_TRANSLATION)
|
||||
|| !cfg!(feature = "cross")
|
||||
{
|
||||
match unsafe { self.raw.create_shader_module_from_naga(shader) } {
|
||||
Ok(raw) => Ok(raw),
|
||||
|
||||
Reference in New Issue
Block a user