mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-22 23:05:32 +00:00
27eb1d1413
* Refactor validation tests to use compiletest * Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
11 lines
247 B
Rust
11 lines
247 B
Rust
// build-pass
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main() {
|
|
let x = 5.0;
|
|
let y = 5.0;
|
|
let vx = glam::Vec2::new(5.0, 7.0);
|
|
let vy = glam::Vec2::new(5.0, 7.0);
|
|
assert!(spirv_std::arch::f_sub_vector(vx, vy) == glam::Vec2::new(0.0, 0.0));
|
|
}
|