mirror of
https://github.com/storytold/wgpu.git
synced 2026-11-25 08:51:05 +01:00
Force-enable EXPERIMENTAL_TRANSLATION flag when running without cross feature
This commit is contained in:
1 parent
124d5e3a7c
commit
7fc70bf349
1 file changed
+1
@@ -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