Alternative dead_code warning fix

Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
Sylvester Hesp 2022-08-30 10:29:05 +02:00 committed by Eduard-Mihai Burtescu
parent ac160444ba
commit 358a54a8f2

View File

@ -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!(