summaryrefslogtreecommitdiff
path: root/tests/metal/vector-get-element-ptr.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/vector-get-element-ptr.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/vector-get-element-ptr.slang')
-rw-r--r--tests/metal/vector-get-element-ptr.slang9
1 files changed, 5 insertions, 4 deletions
diff --git a/tests/metal/vector-get-element-ptr.slang b/tests/metal/vector-get-element-ptr.slang
index 1c616b37e..ad2426214 100644
--- a/tests/metal/vector-get-element-ptr.slang
+++ b/tests/metal/vector-get-element-ptr.slang
@@ -1,6 +1,7 @@
-//TEST:SIMPLE(filecheck=CHECK): -target metal
+//TEST:SIMPLE(filecheck=METAL): -target metal
//TEST(smoke,compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-slang -compute -mtl
+//TEST(smoke,compute):COMPARE_COMPUTE_EX(filecheck-buffer=BUF):-slang -compute -vk
//TEST_INPUT:ubuffer(data=[0 0 0 0 0], stride=4):out,name=outputBuffer
RWStructuredBuffer<int> outputBuffer;
@@ -14,9 +15,9 @@ void modify(inout int v)
void computeMain(int3 v : SV_DispatchThreadID)
{
int3 u = v;
- // CHECK: int [[TEMP:[a-zA-Z0-9_]+]] = [[OUT:[a-zA-Z0-9_]+]].x;
- // CHECK: modify{{.*}}(&[[TEMP]])
- // CHECK: [[OUT]].x = [[TEMP]];
+ // METAL: int [[TEMP:[a-zA-Z0-9_]+]] = [[OUT:[a-zA-Z0-9_]+]].x;
+ // METAL: modify{{.*}}(&[[TEMP]])
+ // METAL: [[OUT]].x = [[TEMP]];
modify(u.x);
// BUF: 2