mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-26 08:45:43 +00:00
27eb1d1413
* Refactor validation tests to use compiletest * Update tests/ui/lang/core/ptr/allocate_const_scalar.rs
9 lines
218 B
Rust
9 lines
218 B
Rust
// build-pass
|
|
|
|
#[spirv(fragment)]
|
|
pub fn main() {
|
|
let vector = glam::Vec2::new(10.0, 10.0);
|
|
let scalar = 2.0;
|
|
assert!(spirv_std::arch::vector_times_scalar(vector, scalar) == glam::Vec2::new(20.0, 20.0));
|
|
}
|