fix trace ray acceleration structure (#654)

This commit is contained in:
evopen 2021-06-09 15:53:18 +08:00 committed by GitHub
parent e3720294de
commit 0de0ad03c3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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} \