mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-12-02 03:34:45 +00:00
10 lines
156 B
Rust
10 lines
156 B
Rust
// Test that `signum` works.
|
|
// build-pass
|
|
|
|
use spirv_std::num_traits::Float;
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main(i: f32, o: &mut f32) {
|
|
*o = i.signum();
|
|
}
|