mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2025-02-18 09:54:19 +00:00
![XAMPPRocky](/assets/img/avatar_default.png)
* Refactor validation tests to use compiletest * Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
9 lines
203 B
Rust
9 lines
203 B
Rust
// build-pass
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main() {
|
|
let operand: i32 = -5;
|
|
let vector = glam::IVec2::new(-5, -0);
|
|
assert!(spirv_std::arch::s_negate_vector(vector) == glam::IVec2::new(5, 0));
|
|
}
|