Revision 86fc50c5092fbccf6072dcf7bbdfafb8915f02c8 authored by Yong He on 09 March 2023, 05:52:34 UTC, committed by GitHub on 09 March 2023, 05:52:34 UTC
* Add support for `[PrimalSubstitute]` and `[PrimalSubstituteOf]`. * Fix * Fix. * Cleanup. --------- Co-authored-by: Yong He <yhe@nvidia.com>
1 parent 257733f
resource-in-cbuffer.hlsl.expected
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}
}
]
},
"containerVarLayout": {
"binding": {"kind": "constantBuffer", "index": 0}
},
"elementVarLayout": {
"type": {
"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}
}
]
},
"bindings": [
{"kind": "shaderResource", "index": 0},
{"kind": "samplerState", "index": 0},
{"kind": "uniform", "offset": 0, "size": 16}
]
}
}
}
],
"entryPoints": [
{
"name": "main",
"stage:": "fragment",
"result:": {
"stage": "fragment",
"binding": {"kind": "varyingOutput", "index": 0},
"semanticName": "SV_TARGET",
"type": {
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
}
}
}
]
}
}
![swh spinner](/static/img/swh-spinner.gif)
Computing file changes ...