summaryrefslogtreecommitdiff
path: root/tests/metal/test_buffer.slang
diff options
context:
space:
mode:
authorJames Helferty (NVIDIA) <jhelferty@nvidia.com>2025-09-30 14:21:27 -0400
committerGitHub <noreply@github.com>2025-09-30 18:21:27 +0000
commit8086adc90b69f3199767c0617e2c429ce6b27f67 (patch)
treecbc54d5dbb3ad13329abc49f3aabf25ee199b7d6 /tests/metal/test_buffer.slang
parentee5adb87050ae7c0b96056a67dddc5d48174e695 (diff)
Enable metal tests (#8446)
Enables all tests/metal/ tests that can be easily enabled. These tests were not originally designed as render tests; they are generally being enabled for pipecleaning purposes, and will not be rigorously testing the corresponding funcitonality. Where they cannot be enabled as render tests, and a metallib test wasn't already enabled, a metallib test was enabled instead (where possible). Fixes #7892
Diffstat (limited to 'tests/metal/test_buffer.slang')
-rw-r--r--tests/metal/test_buffer.slang4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/metal/test_buffer.slang b/tests/metal/test_buffer.slang
index 122af3b9a..78959aa10 100644
--- a/tests/metal/test_buffer.slang
+++ b/tests/metal/test_buffer.slang
@@ -1,13 +1,17 @@
// Test that Buffer<T> maps to texture_buffer<uint, access::read> in Metal
//TEST:SIMPLE(filecheck=METAL): -stage compute -entry computeMain -target metal
+//TEST:SIMPLE(filecheck=METALLIB): -stage compute -entry computeMain -target metallib
+// No COMPARE_COMPUTE test; currently the test framework can't setup a Buffer<>
+// TODO: github issue #8456
// METAL: texture_buffer<uint, access::read> inputBuffer_{{.*}}
Buffer<uint> inputBuffer;
RWStructuredBuffer<uint> outputBuffer;
+// METALLIB: @computeMain
[numthreads(4, 1, 1)]
void computeMain(uint3 dtid : SV_DispatchThreadID)
{