summaryrefslogtreecommitdiff
path: root/tests/reflection/resource-in-cbuffer.hlsl.expected
diff options
context:
space:
mode:
Diffstat (limited to 'tests/reflection/resource-in-cbuffer.hlsl.expected')
-rw-r--r--tests/reflection/resource-in-cbuffer.hlsl.expected60
1 files changed, 60 insertions, 0 deletions
diff --git a/tests/reflection/resource-in-cbuffer.hlsl.expected b/tests/reflection/resource-in-cbuffer.hlsl.expected
new file mode 100644
index 000000000..faae1c8b7
--- /dev/null
+++ b/tests/reflection/resource-in-cbuffer.hlsl.expected
@@ -0,0 +1,60 @@
+result code = 0
+standard error = {
+}
+standard output = {
+{
+ "parameters": [
+ {
+ "name": "MyConstantBuffer",
+ "bindings": [
+ {"kind": "constantBuffer", "index": 0},
+ {"kind": "shaderResource", "index": 0},
+ {"kind": "samplerState", "index": 0}
+ ],
+ "type": {
+ "kind": "constantBuffer",
+ "elementType": {
+ "kind": "struct",
+ "fields": [
+ {
+ "name": "v",
+ "type": {
+ "kind": "vector",
+ "elementCount": 3,
+ "elementType": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ }
+ },
+ "binding": {"kind": "uniform", "offset": 0, "size": 12}
+ },
+ {
+ "name": "myTexture",
+ "type": {
+ "kind": "resource",
+ "baseShape": "texture2D"
+ },
+ "binding": {"kind": "shaderResource", "index": 0}
+ },
+ {
+ "name": "c",
+ "type": {
+ "kind": "scalar",
+ "scalarType": "float32"
+ },
+ "binding": {"kind": "uniform", "offset": 12, "size": 4}
+ },
+ {
+ "name": "mySampler",
+ "type": {
+ "kind": "samplerState"
+ },
+ "binding": {"kind": "samplerState", "index": 0}
+ }
+ ]
+ }
+ }
+ }
+ ]
+}
+}