mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 06:45:13 +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
|
result
|
||||||
}
|
}
|
||||||
|
|
||||||
#[spirv_std_macros::gpu_only]
|
#[cfg(target_arch = "spirv")]
|
||||||
#[allow(dead_code)]
|
|
||||||
unsafe fn call_glsl_op_with_ints<T: Integer, const OP: u32>(a: T, b: T) -> T {
|
unsafe fn call_glsl_op_with_ints<T: Integer, const OP: u32>(a: T, b: T) -> T {
|
||||||
let mut result = T::default();
|
let mut result = T::default();
|
||||||
asm!(
|
asm!(
|
||||||
|
Loading…
Reference in New Issue
Block a user