diff options
| author | Yong He <yonghe@outlook.com> | 2025-02-27 13:21:20 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-02-27 13:21:20 -0800 |
| commit | 90b3817498d9cf664346f04dcea71f48ce81993e (patch) | |
| tree | c5efa3424b9dff520e090e98c245a8b518c0b51e /tests/diagnostics | |
| parent | 6cf15f4ea1fe044d8227440dcc30ac712334568e (diff) | |
Make capability diagnostic message more friendly. (#6474)
* Make capability diagnostic message more friendly.
* Fix.
* Fix.
* Fix.
* Fix test.
* Update expected fail setting for aarch64/linux
* Fix.
Diffstat (limited to 'tests/diagnostics')
| -rw-r--r-- | tests/diagnostics/discard-in-rt.slang | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tests/diagnostics/discard-in-rt.slang b/tests/diagnostics/discard-in-rt.slang new file mode 100644 index 000000000..93c3d1038 --- /dev/null +++ b/tests/diagnostics/discard-in-rt.slang @@ -0,0 +1,24 @@ +//TEST:SIMPLE(filecheck=CHECK): -target spirv + +// CHECK: 'closestHit' uses features that are not available in 'closesthit' stage. +// CHECK: see using of 'discard' + +struct PrimaryRayPayload{} +[require(spvRayTracingKHR)] +[shader("closesthit")] +void closestHit( + inout PrimaryRayPayload rayData : SV_RayPayload, + BuiltInTriangleIntersectionAttributes attribs : SV_IntersectionAttributes) +{ + discard; +} + +// CHECK: 'closestHit1' uses features that are not available in 'closesthit' stage +// CHECK: see using of 'discard' +[shader("closesthit")] +void closestHit1( + inout PrimaryRayPayload rayData : SV_RayPayload, + BuiltInTriangleIntersectionAttributes attribs : SV_IntersectionAttributes) +{ + discard; +} |
