We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f564761 commit 75af54fCopy full SHA for 75af54f
tests/ui/spirv-attr/matrix-type.rs
@@ -42,23 +42,12 @@ pub fn main_attrs(
42
) {
43
}
44
45
-#[spirv(closest_hit)]
+#[spirv(fragment)]
46
pub fn main_default(out: &mut Affine3) {
47
*out = Affine3::default();
48
49
50
51
-pub fn main_add(
52
- #[spirv(object_to_world)] object_to_world: Affine3,
53
- #[spirv(world_to_object)] world_to_object: Affine3,
54
- out: &mut glam::Vec3,
55
-) {
56
- *out = object_to_world.x
57
- + object_to_world.y
58
- + object_to_world.z
59
- + object_to_world.w
60
- + world_to_object.x
61
- + world_to_object.y
62
- + world_to_object.z
63
- + world_to_object.w;
+pub fn main_add(affine3: Affine3, out: &mut glam::Vec3) {
+ *out = affine3.x + affine3.y + affine3.z + affine3.w;
64
0 commit comments