mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
Alternative dead_code warning fix
Co-authored-by: Eduard-Mihai Burtescu <eddyb@lyken.rs>
This commit is contained in:
parent
ac160444ba
commit
358a54a8f2
@ -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!(
|
||||
|
Loading…
Reference in New Issue
Block a user