Skip to content

Commit 20373ad

Browse files
authored
Fix#8128 LSS and sphere hit object intrinsics fail to compile (#8339)
Update intrinsics signature as per the nvapi header
1 parent 5ec4167 commit 20373ad

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

source/slang/hlsl.meta.slang

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20876,7 +20876,7 @@ struct HitObject
2087620876
{
2087720877
__target_switch
2087820878
{
20879-
case hlsl: __intrinsic_asm "NvRtSphereObjectPositionAndRadius";
20879+
case hlsl: __intrinsic_asm "NvRtSphereObjectPositionAndRadius()";
2088020880
case cuda:
2088120881
{
2088220882
__intrinsic_asm "optixHitObjectGetSpherePositionAndRadius";
@@ -20901,7 +20901,7 @@ struct HitObject
2090120901
{
2090220902
__target_switch
2090320903
{
20904-
case hlsl: __intrinsic_asm "NvRtLssObjectPositionsAndRadii";
20904+
case hlsl: __intrinsic_asm "NvRtLssObjectPositionsAndRadii()";
2090520905
case cuda:
2090620906
{
2090720907
__intrinsic_asm "optixHitObjectGetLssPositionsAndRadii";
@@ -20932,7 +20932,7 @@ struct HitObject
2093220932
{
2093320933
__target_switch
2093420934
{
20935-
case hlsl: __intrinsic_asm "NvRtIsSphereHit";
20935+
case hlsl: __intrinsic_asm "NvRtIsSphereHit()";
2093620936
case cuda:
2093720937
{
2093820938
__intrinsic_asm "optixHitObjectIsSphereHit";
@@ -20954,7 +20954,7 @@ struct HitObject
2095420954
{
2095520955
__target_switch
2095620956
{
20957-
case hlsl: __intrinsic_asm "NvRtIsLssHit";
20957+
case hlsl: __intrinsic_asm "NvRtIsLssHit()";
2095820958
case cuda:
2095920959
{
2096020960
__intrinsic_asm "optixHitObjectIsLSSHit";

0 commit comments

Comments
 (0)