diff options
| author | James Helferty (NVIDIA) <jhelferty@nvidia.com> | 2025-08-13 13:45:44 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-08-13 20:45:44 +0000 |
| commit | 90a9515fcbc7e362c05341c2ca65fbe78bc1106a (patch) | |
| tree | d23660b611a869e4fb5b6e1e49a6165893aca6d4 /tests | |
| parent | 80b46bd2124b3ead963ae977fef3d010049beb9a (diff) | |
Handle SV_Barycentrics on metal (#8163)
Fixes #6785
Diffstat (limited to 'tests')
| -rw-r--r-- | tests/metal/barycentrics.slang | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/metal/barycentrics.slang b/tests/metal/barycentrics.slang new file mode 100644 index 000000000..105ea22ed --- /dev/null +++ b/tests/metal/barycentrics.slang @@ -0,0 +1,12 @@ +//TEST:SIMPLE(filecheck=CHECK): -target metal +//TEST:SIMPLE(filecheck=CHECK-ASM): -target metallib + +// CHECK: {{\[\[}}barycentric_coord{{\]\]}} +// CHECK-ASM: !"air.barycentric_coord" + +[shader("fragment")] +float4 fragment_main(float4 pos: SV_Position, float3 barycentrics: SV_Barycentrics) + : SV_Target +{ + return float4(barycentrics, 1.f); +} |
