mirror of
https://github.com/EmbarkStudios/rust-gpu.git
synced 2024-11-25 16:25:25 +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,
|
payload: &mut T,
|
||||||
) {
|
) {
|
||||||
asm! {
|
asm! {
|
||||||
|
"%acceleration_structure = OpLoad _ {acceleration_structure}",
|
||||||
"%ray_origin = OpLoad _ {ray_origin}",
|
"%ray_origin = OpLoad _ {ray_origin}",
|
||||||
"%ray_direction = OpLoad _ {ray_direction}",
|
"%ray_direction = OpLoad _ {ray_direction}",
|
||||||
"OpTraceRayKHR \
|
"OpTraceRayKHR \
|
||||||
{acceleration_structure} \
|
%acceleration_structure \
|
||||||
{ray_flags} \
|
{ray_flags} \
|
||||||
{cull_mask} \
|
{cull_mask} \
|
||||||
{sbt_offset} \
|
{sbt_offset} \
|
||||||
|
Loading…
Reference in New Issue
Block a user