https://github.com/shader-slang/slang
Tip revision: 6a8ad6eb4cab72c18de48762768e04d08b60a21c authored by jsmall-nvidia on 22 August 2018, 15:36:02 UTC
Support for [[vk::push_constant]] (#629)
Support for [[vk::push_constant]] (#629)
Tip revision: 6a8ad6e
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"
}
]
}
}