Skip to content

Commit d4686f3

Browse files
committed
Fix tests/ui/spirv-attr/matrix-type.rs
1 parent f564761 commit d4686f3

File tree

1 file changed

+4
-15
lines changed

1 file changed

+4
-15
lines changed

tests/ui/spirv-attr/matrix-type.rs

Lines changed: 4 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -42,23 +42,12 @@ pub fn main_attrs(
4242
) {
4343
}
4444

45-
#[spirv(closest_hit)]
45+
#[spirv(fragment)]
4646
pub fn main_default(out: &mut Affine3) {
4747
*out = Affine3::default();
4848
}
4949

50-
#[spirv(closest_hit)]
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;
50+
#[spirv(fragment)]
51+
pub fn main_add(in1: Affine3, in2: Affine3, out: &mut glam::Vec3) {
52+
*out = in1.x + in1.y + in1.z + in1.w + in2.x + in2.y + in2.z + in2.w;
6453
}

0 commit comments

Comments
 (0)