diff options
| author | Yong He <yonghe@outlook.com> | 2023-09-05 22:10:20 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-09-05 22:10:20 -0700 |
| commit | c754c0b4b91634196fd2bec8d5622bde8cccaf98 (patch) | |
| tree | 9259208d6cd701292b72a5b819b1679eccad79f9 /source | |
| parent | f80e01c8288e09aeac73c9f91bbfd8d1298a47ba (diff) | |
Fix HLSL SER Intrinsics. (#3183)
* Fix HLSL SER Intrinsics.
* Fix GFX Vulkan shader creation bug.
---------
Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'source')
| -rw-r--r-- | source/slang/hlsl.meta.slang | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/source/slang/hlsl.meta.slang b/source/slang/hlsl.meta.slang index c195428e3..babd16f6e 100644 --- a/source/slang/hlsl.meta.slang +++ b/source/slang/hlsl.meta.slang @@ -8543,7 +8543,7 @@ struct HitObject /// tracing a ray. The provided shader table index must reference a valid miss record in the shader /// table. [__requiresNVAPI] - __target_intrinsic(hlsl, "NvMakeMiss") + __target_intrinsic(hlsl, "($2=NvMakeMiss($0,$1))") static HitObject MakeMiss( uint MissShaderIndex, RayDesc Ray); @@ -8575,7 +8575,7 @@ struct HitObject /// scenarios where future control flow for some threads is known to process neither a hit nor a /// miss. [__requiresNVAPI] - __target_intrinsic(hlsl, "NvMakeNop") + __target_intrinsic(hlsl, "($0 = NvMakeNop())") static HitObject MakeNop(); [ForceInline] @@ -8724,7 +8724,8 @@ struct HitObject __target_intrinsic(hlsl, "NvMakeHitWithRecordIndex") [__requiresNVAPI] - static void __hlslMakeHitWithRecordIndex<attr_t>(uint HitGroupRecordIndex, + static void __hlslMakeHitWithRecordIndex<attr_t>( + uint HitGroupRecordIndex, RaytracingAccelerationStructure AccelerationStructure, uint InstanceIndex, uint GeometryIndex, |
