summaryrefslogtreecommitdiff
path: root/tests/metal/nested-struct-multi-entry-point-vertex.slang
diff options
context:
space:
mode:
authorJay Kwak <82421531+jkwak-work@users.noreply.github.com>2024-12-10 11:11:37 -0800
committerGitHub <noreply@github.com>2024-12-10 11:11:37 -0800
commitf0b99141595d47619b63bb5574d34d70f99a5bdf (patch)
treec84cdf7b5a3fb40fe3fa939feaa572d1729d4d03 /tests/metal/nested-struct-multi-entry-point-vertex.slang
parent4a63e33d60e02d421f693217d36ecd689208155d (diff)
Enable WGSL tests that works for Metal related to Semantics (#5816)
* Enable WGSP tests that works for Metal related to Semantics This commit enables existing tests for WGSL that are enabled for Metal regarding the Semantics.
Diffstat (limited to 'tests/metal/nested-struct-multi-entry-point-vertex.slang')
-rw-r--r--tests/metal/nested-struct-multi-entry-point-vertex.slang25
1 files changed, 15 insertions, 10 deletions
diff --git a/tests/metal/nested-struct-multi-entry-point-vertex.slang b/tests/metal/nested-struct-multi-entry-point-vertex.slang
index 5d2b3b1e0..b55d943e4 100644
--- a/tests/metal/nested-struct-multi-entry-point-vertex.slang
+++ b/tests/metal/nested-struct-multi-entry-point-vertex.slang
@@ -2,28 +2,33 @@
//TEST:SIMPLE(filecheck=METALLIB1): -target metallib -stage vertex -entry vertexMain1
//TEST:SIMPLE(filecheck=METAL2): -target metal -stage vertex -entry vertexMain2
//TEST:SIMPLE(filecheck=METALLIB2): -target metallib -stage vertex -entry vertexMain2
+
//TEST:SIMPLE(filecheck=WGSL1): -target wgsl -stage vertex -entry vertexMain1
//TEST:SIMPLE(filecheck=WGSL2): -target wgsl -stage vertex -entry vertexMain2
+//TEST:SIMPLE(filecheck=WGSLSPIRV1): -target wgsl-spirv-asm -stage vertex -entry vertexMain1
+//TEST:SIMPLE(filecheck=WGSLSPIRV2): -target wgsl-spirv-asm -stage vertex -entry vertexMain2
//METALLIB1: @vertexMain1
//METAL1-DAG: attribute(0)
//METAL1-DAG: attribute(1)
//METAL1-NOT: attribute(2)
-//WGSL1-DAG: fn vertexMain1
-//WGSL1-DAG: location(0)
-//WGSL1-DAG: location(1)
-//WGSL1-NOT: location(2)
-
//METALLIB2: @vertexMain2
//METAL2-DAG: attribute(0)
//METAL2-DAG: attribute(1)
//METAL2-DAG: attribute(2)
-
-//WGSL2-DAG: fn vertexMain2
-//WGSL2-DAG: location(0)
-//WGSL2-DAG: location(1)
-//WGSL2-DAG: location(2)
+//METAL2-NOT: attribute(3)
+
+//WGSLSPIRV1: %vertexMain1 = OpFunction %void None
+//WGSL1-DAG: @location(0) position
+//WGSL1-DAG: @location(1) color
+//WGSL1-NOT: @location(2)
+
+//WGSLSPIRV2: %vertexMain2 = OpFunction %void None
+//WGSL2-DAG: @location(0) uv
+//WGSL2-DAG: @location(1) position
+//WGSL2-DAG: @location(2) color
+//WGSL2-NOT: @location(3)
struct SharedStruct
{