https://github.com/shader-slang/slang
Tip revision: dd435512219f435ea13498e6124930fd4cf823a9 authored by Tim Foley on 18 November 2019, 18:36:38 UTC
Further refactoring of semantic checking (#1102)
Further refactoring of semantic checking (#1102)
Tip revision: dd43551
reflect-imported-code.hlsl.expected
result code = 0
standard error = {
}
standard output = {
{
"parameters": [
{
"name": "t",
"binding": {"kind": "shaderResource", "index": 0},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "s",
"binding": {"kind": "samplerState", "index": 0},
"type": {
"kind": "samplerState"
}
},
{
"name": "C",
"binding": {"kind": "constantBuffer", "index": 0},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"fields": [
{
"name": "c",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 0, "size": 4}
}
]
}
}
},
{
"name": "t_i",
"binding": {"kind": "shaderResource", "index": 1},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "s_i",
"binding": {"kind": "samplerState", "index": 1},
"type": {
"kind": "samplerState"
}
},
{
"name": "C_i",
"binding": {"kind": "constantBuffer", "index": 1},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"fields": [
{
"name": "c_i",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 0, "size": 4}
}
]
}
}
}
],
"entryPoints": [
{
"name": "main",
"stage:": "fragment"
}
]
}
}