Skip to content

Commit 6310e0f

Browse files
committed
Adjust test expected results
1 parent 3978cb8 commit 6310e0f

7 files changed

+83
-11
lines changed

tests/bindings/hlsl-to-vulkan-array.hlsl.expected

+9-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,15 @@ standard output = {
2222
"name": "tex",
2323
"type": {
2424
"kind": "resource",
25-
"baseShape": "texture2D"
25+
"baseShape": "texture2D",
26+
"resultType": {
27+
"kind": "vector",
28+
"elementCount": 4,
29+
"elementType": {
30+
"kind": "scalar",
31+
"scalarType": "float32"
32+
}
33+
}
2634
},
2735
"binding": {"kind": "shaderResource", "index": 0}
2836
},

tests/bindings/hlsl-to-vulkan-combined.hlsl.expected

+14-2
Original file line numberDiff line numberDiff line change
@@ -9,15 +9,27 @@ standard output = {
99
"binding": {"kind": "descriptorTableSlot", "index": 0},
1010
"type": {
1111
"kind": "resource",
12-
"baseShape": "texture2D"
12+
"baseShape": "texture2D",
13+
"resultType": {
14+
"kind": "scalar",
15+
"scalarType": "float32"
16+
}
1317
}
1418
},
1519
{
1620
"name": "t1",
1721
"binding": {"kind": "descriptorTableSlot", "index": 1},
1822
"type": {
1923
"kind": "resource",
20-
"baseShape": "texture2D"
24+
"baseShape": "texture2D",
25+
"resultType": {
26+
"kind": "vector",
27+
"elementCount": 4,
28+
"elementType": {
29+
"kind": "scalar",
30+
"scalarType": "float32"
31+
}
32+
}
2133
}
2234
}
2335
],

tests/bindings/hlsl-to-vulkan-global.hlsl.expected

+9-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,15 @@ standard output = {
2525
"binding": {"kind": "descriptorTableSlot", "index": 0},
2626
"type": {
2727
"kind": "resource",
28-
"baseShape": "texture2D"
28+
"baseShape": "texture2D",
29+
"resultType": {
30+
"kind": "vector",
31+
"elementCount": 4,
32+
"elementType": {
33+
"kind": "scalar",
34+
"scalarType": "float32"
35+
}
36+
}
2937
}
3038
},
3139
{

tests/bindings/hlsl-to-vulkan-shift-implicit.hlsl.expected

+18-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ standard output = {
99
"binding": {"kind": "shaderResource", "index": 10},
1010
"type": {
1111
"kind": "resource",
12-
"baseShape": "texture2D"
12+
"baseShape": "texture2D",
13+
"resultType": {
14+
"kind": "vector",
15+
"elementCount": 4,
16+
"elementType": {
17+
"kind": "scalar",
18+
"scalarType": "float32"
19+
}
20+
}
1321
}
1422
},
1523
{
@@ -81,7 +89,15 @@ standard output = {
8189
"binding": {"kind": "shaderResource", "index": 11},
8290
"type": {
8391
"kind": "resource",
84-
"baseShape": "texture2D"
92+
"baseShape": "texture2D",
93+
"resultType": {
94+
"kind": "vector",
95+
"elementCount": 4,
96+
"elementType": {
97+
"kind": "scalar",
98+
"scalarType": "float32"
99+
}
100+
}
85101
}
86102
},
87103
{

tests/bindings/hlsl-to-vulkan-shift.hlsl.expected

+18-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,15 @@ standard output = {
99
"binding": {"kind": "shaderResource", "index": 5},
1010
"type": {
1111
"kind": "resource",
12-
"baseShape": "texture2D"
12+
"baseShape": "texture2D",
13+
"resultType": {
14+
"kind": "vector",
15+
"elementCount": 4,
16+
"elementType": {
17+
"kind": "scalar",
18+
"scalarType": "float32"
19+
}
20+
}
1321
}
1422
},
1523
{
@@ -81,7 +89,15 @@ standard output = {
8189
"binding": {"kind": "shaderResource", "space": 2, "index": 7},
8290
"type": {
8391
"kind": "resource",
84-
"baseShape": "texture2D"
92+
"baseShape": "texture2D",
93+
"resultType": {
94+
"kind": "vector",
95+
"elementCount": 4,
96+
"elementType": {
97+
"kind": "scalar",
98+
"scalarType": "float32"
99+
}
100+
}
85101
}
86102
},
87103
{

tests/cross-compile/cpp-resource-reflection.slang.64.expected

+5-1
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,11 @@ standard output = {
9595
"binding": {"kind": "uniform", "offset": 24, "size": 8},
9696
"type": {
9797
"kind": "resource",
98-
"baseShape": "texture2D"
98+
"baseShape": "texture2D",
99+
"resultType": {
100+
"kind": "scalar",
101+
"scalarType": "float32"
102+
}
99103
}
100104
},
101105
{

tests/hlsl-intrinsic/sampler-feedback/sampler-feedback-basic.slang.expected

+10-2
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,11 @@ standard output = {
6767
"binding": {"kind": "shaderResource", "index": 0},
6868
"type": {
6969
"kind": "resource",
70-
"baseShape": "texture2D"
70+
"baseShape": "texture2D",
71+
"resultType": {
72+
"kind": "scalar",
73+
"scalarType": "float32"
74+
}
7175
}
7276
},
7377
{
@@ -76,7 +80,11 @@ standard output = {
7680
"type": {
7781
"kind": "resource",
7882
"baseShape": "texture2D",
79-
"array": true
83+
"array": true,
84+
"resultType": {
85+
"kind": "scalar",
86+
"scalarType": "float32"
87+
}
8088
}
8189
},
8290
{

0 commit comments

Comments
 (0)