Alternative dead_code warning fix
@@ -187,8 +187,7 @@ pub unsafe fn read_clock_uvec2_khr<V: Vector<u32, 2>, const SCOPE: u32>() -> V {
result
}
-#[spirv_std_macros::gpu_only]
-#[allow(dead_code)]
+#[cfg(target_arch = "spirv")]
unsafe fn call_glsl_op_with_ints<T: Integer, const OP: u32>(a: T, b: T) -> T {
let mut result = T::default();
asm!(
