mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-21 22:34:34 +00:00
fix trace ray acceleration structure (#654)
This commit is contained in:
parent
e3720294de
commit
0de0ad03c3
@ -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} \
|
||||
|
Loading…
Reference in New Issue
Block a user