mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-26 00:34:12 +00:00
27eb1d1413
* Refactor validation tests to use compiletest * Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
11 lines
234 B
Rust
11 lines
234 B
Rust
// build-pass
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main() {
|
|
let x = 5;
|
|
let y = 5;
|
|
let vx = glam::IVec2::new(5, 7);
|
|
let vy = glam::IVec2::new(5, 7);
|
|
assert!(spirv_std::arch::i_sub_vector(vx, vy) == glam::IVec2::new(0, 0));
|
|
}
|