From 0de0ad03c333634bfb0fcac2c36f5b562f4412bb Mon Sep 17 00:00:00 2001 From: evopen <520dhh@gmail.com> Date: Wed, 9 Jun 2021 15:53:18 +0800 Subject: [PATCH] fix trace ray acceleration structure (#654) --- crates/spirv-std/src/ray_tracing.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/crates/spirv-std/src/ray_tracing.rs b/crates/spirv-std/src/ray_tracing.rs index 0892ba9810..a73993013b 100644 --- a/crates/spirv-std/src/ray_tracing.rs +++ b/crates/spirv-std/src/ray_tracing.rs @@ -98,10 +98,11 @@ impl AccelerationStructure { payload: &mut T, ) { asm! { + "%acceleration_structure = OpLoad _ {acceleration_structure}", "%ray_origin = OpLoad _ {ray_origin}", "%ray_direction = OpLoad _ {ray_direction}", "OpTraceRayKHR \ - {acceleration_structure} \ + %acceleration_structure \ {ray_flags} \ {cull_mask} \ {sbt_offset} \