summaryrefslogtreecommitdiffstats
path: root/tests/reflection
diff options
context:
space:
mode:
authorYong He <yonghe@outlook.com>2023-11-01 21:42:12 -0700
committerGitHub <noreply@github.com>2023-11-01 21:42:12 -0700
commit6aca3813c4ccc496c0f9b2db293acb546aa11d2d (patch)
tree5281f0ac62946787db90409c1ab3da5ed3f0fc5c /tests/reflection
parent532c4322c9d9ab2c95a5bb573c89062456b59236 (diff)
Parameter binding and gfx fixes. (#3302)
* Parameter binding and gfx fixes. * Add diagnostics on entry point parameters. * Fix. --------- Co-authored-by: Yong He <yhe@nvidia.com>
Diffstat (limited to 'tests/reflection')
-rw-r--r--tests/reflection/default-space.slang.expected4
-rw-r--r--tests/reflection/mix-explicit-and-implicit-spaces.slang.expected12
-rw-r--r--tests/reflection/parameter-block-explicit-space.slang.expected8
-rw-r--r--tests/reflection/parameter-block.slang.2.expected4
-rw-r--r--tests/reflection/parameter-block.slang.expected4
-rw-r--r--tests/reflection/unbounded-arrays.hlsl.1.expected2
6 files changed, 17 insertions, 17 deletions
diff --git a/tests/reflection/default-space.slang.expected b/tests/reflection/default-space.slang.expected
index 5ba17790c..2667ae96e 100644
--- a/tests/reflection/default-space.slang.expected
+++ b/tests/reflection/default-space.slang.expected
@@ -14,7 +14,7 @@ standard output = {
},
{
"name": "b",
- "binding": {"kind": "registerSpace", "index": 0},
+ "binding": {"kind": "subElementRegisterSpace", "index": 0},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -32,7 +32,7 @@ standard output = {
]
},
"containerVarLayout": {
- "binding": {"kind": "registerSpace", "index": 0}
+ "binding": {"kind": "subElementRegisterSpace", "index": 0}
},
"elementVarLayout": {
"type": {
diff --git a/tests/reflection/mix-explicit-and-implicit-spaces.slang.expected b/tests/reflection/mix-explicit-and-implicit-spaces.slang.expected
index 63fe23551..36943df02 100644
--- a/tests/reflection/mix-explicit-and-implicit-spaces.slang.expected
+++ b/tests/reflection/mix-explicit-and-implicit-spaces.slang.expected
@@ -6,7 +6,7 @@ standard output = {
"parameters": [
{
"name": "a",
- "binding": {"kind": "registerSpace", "index": 0},
+ "binding": {"kind": "subElementRegisterSpace", "index": 0},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -26,7 +26,7 @@ standard output = {
"containerVarLayout": {
"bindings": [
{"kind": "constantBuffer", "index": 0},
- {"kind": "registerSpace", "index": 0}
+ {"kind": "subElementRegisterSpace", "index": 0}
]
},
"elementVarLayout": {
@@ -50,7 +50,7 @@ standard output = {
},
{
"name": "b",
- "binding": {"kind": "registerSpace", "index": 1},
+ "binding": {"kind": "subElementRegisterSpace", "index": 1},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -70,7 +70,7 @@ standard output = {
"containerVarLayout": {
"bindings": [
{"kind": "constantBuffer", "index": 0},
- {"kind": "registerSpace", "index": 0}
+ {"kind": "subElementRegisterSpace", "index": 0}
]
},
"elementVarLayout": {
@@ -94,7 +94,7 @@ standard output = {
},
{
"name": "c",
- "binding": {"kind": "registerSpace", "index": 2},
+ "binding": {"kind": "subElementRegisterSpace", "index": 2},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -114,7 +114,7 @@ standard output = {
"containerVarLayout": {
"bindings": [
{"kind": "constantBuffer", "index": 0},
- {"kind": "registerSpace", "index": 0}
+ {"kind": "subElementRegisterSpace", "index": 0}
]
},
"elementVarLayout": {
diff --git a/tests/reflection/parameter-block-explicit-space.slang.expected b/tests/reflection/parameter-block-explicit-space.slang.expected
index 1aa41519d..6a0c1467a 100644
--- a/tests/reflection/parameter-block-explicit-space.slang.expected
+++ b/tests/reflection/parameter-block-explicit-space.slang.expected
@@ -6,7 +6,7 @@ standard output = {
"parameters": [
{
"name": "a",
- "binding": {"kind": "registerSpace", "index": 2},
+ "binding": {"kind": "subElementRegisterSpace", "index": 2},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -53,7 +53,7 @@ standard output = {
"containerVarLayout": {
"bindings": [
{"kind": "constantBuffer", "index": 0},
- {"kind": "registerSpace", "index": 0}
+ {"kind": "subElementRegisterSpace", "index": 0}
]
},
"elementVarLayout": {
@@ -108,7 +108,7 @@ standard output = {
},
{
"name": "b",
- "binding": {"kind": "registerSpace", "index": 3},
+ "binding": {"kind": "subElementRegisterSpace", "index": 3},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -147,7 +147,7 @@ standard output = {
"containerVarLayout": {
"bindings": [
{"kind": "constantBuffer", "index": 0},
- {"kind": "registerSpace", "index": 0}
+ {"kind": "subElementRegisterSpace", "index": 0}
]
},
"elementVarLayout": {
diff --git a/tests/reflection/parameter-block.slang.2.expected b/tests/reflection/parameter-block.slang.2.expected
index e4bf9b6cb..fdcc428e9 100644
--- a/tests/reflection/parameter-block.slang.2.expected
+++ b/tests/reflection/parameter-block.slang.2.expected
@@ -6,7 +6,7 @@ standard output = {
"parameters": [
{
"name": "a",
- "binding": {"kind": "registerSpace", "index": 1},
+ "binding": {"kind": "subElementRegisterSpace", "index": 1},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -31,7 +31,7 @@ standard output = {
]
},
"containerVarLayout": {
- "binding": {"kind": "registerSpace", "index": 0}
+ "binding": {"kind": "subElementRegisterSpace", "index": 0}
},
"elementVarLayout": {
"type": {
diff --git a/tests/reflection/parameter-block.slang.expected b/tests/reflection/parameter-block.slang.expected
index 0909dc8cf..1d0feaa77 100644
--- a/tests/reflection/parameter-block.slang.expected
+++ b/tests/reflection/parameter-block.slang.expected
@@ -6,7 +6,7 @@ standard output = {
"parameters": [
{
"name": "a",
- "binding": {"kind": "registerSpace", "index": 1},
+ "binding": {"kind": "subElementRegisterSpace", "index": 1},
"type": {
"kind": "parameterBlock",
"elementType": {
@@ -31,7 +31,7 @@ standard output = {
]
},
"containerVarLayout": {
- "binding": {"kind": "registerSpace", "index": 0}
+ "binding": {"kind": "subElementRegisterSpace", "index": 0}
},
"elementVarLayout": {
"type": {
diff --git a/tests/reflection/unbounded-arrays.hlsl.1.expected b/tests/reflection/unbounded-arrays.hlsl.1.expected
index 60d894ba7..daa1cb789 100644
--- a/tests/reflection/unbounded-arrays.hlsl.1.expected
+++ b/tests/reflection/unbounded-arrays.hlsl.1.expected
@@ -65,7 +65,7 @@ standard output = {
},
{
"name": "ee",
- "binding": {"kind": "registerSpace", "index": 3, "count": 2},
+ "binding": {"kind": "subElementRegisterSpace", "index": 3, "count": 2},
"type": {
"kind": "array",
"elementCount": 0,