-
Notifications
You must be signed in to change notification settings - Fork 106
Expand file tree
/
Copy pathstruct.rs
More file actions
31 lines (28 loc) · 893 Bytes
/
struct.rs
File metadata and controls
31 lines (28 loc) · 893 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
// build-pass
// compile-flags: -C llvm-args=--disassemble
// normalize-stderr-test "OpSource .*\n" -> ""
// normalize-stderr-test "OpLine .*\n" -> ""
// normalize-stderr-test "%\d+ = OpString .*\n" -> ""
// normalize-stderr-test "; .*\n" -> ""
// normalize-stderr-test "OpCapability VulkanMemoryModel\n" -> ""
// normalize-stderr-test "OpMemoryModel Logical Vulkan" -> "OpMemoryModel Logical Simple"
// ignore-spv1.0
// ignore-spv1.1
// ignore-spv1.2
// ignore-spv1.3
// ignore-vulkan1.0
// ignore-vulkan1.1
use spirv_std::glam::*;
use spirv_std::{Image, spirv};
#[derive(Copy, Clone, Default)]
pub struct LargerThanVec4 {
a: Vec4,
b: Vec2,
}
#[spirv(vertex)]
pub fn main(out1: &mut LargerThanVec4, out2: &mut Vec2, out3: &mut Mat4, out4: &mut f32) {
*out1 = Default::default();
*out2 = Default::default();
*out3 = Default::default();
*out4 = Default::default();
}