diff --git a/crates/spirv-std/src/arch.rs b/crates/spirv-std/src/arch.rs index 5c3e4318db..ab05028de5 100644 --- a/crates/spirv-std/src/arch.rs +++ b/crates/spirv-std/src/arch.rs @@ -187,8 +187,7 @@ pub unsafe fn read_clock_uvec2_khr, const SCOPE: u32>() -> V { result } -#[spirv_std_macros::gpu_only] -#[allow(dead_code)] +#[cfg(target_arch = "spirv")] unsafe fn call_glsl_op_with_ints(a: T, b: T) -> T { let mut result = T::default(); asm!(