Revision b513d0deef521318ad943d820dd37029075a33c4 authored by Sai Praveen Bangaru on 12 July 2022, 03:18:06 UTC, committed by GitHub on 12 July 2022, 03:18:06 UTC
* Added support for differentiating calls to basic functions, as well as arithmetic on the float3 type * Added test expected result
1 parent 9261c7a
multi-file.hlsl.expected
result code = 0
standard error = {
}
standard output = {
{
"parameters": [
{
"name": "vertexT",
"binding": {"kind": "shaderResource", "index": 0},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "vertexS",
"binding": {"kind": "samplerState", "index": 0},
"type": {
"kind": "samplerState"
}
},
{
"name": "vertexC",
"binding": {"kind": "constantBuffer", "index": 0},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"fields": [
{
"name": "vertexCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "vertexCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "vertexCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "vertexCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"containerVarLayout": {
"binding": {"kind": "constantBuffer", "index": 0}
},
"elementVarLayout": {
"type": {
"kind": "struct",
"fields": [
{
"name": "vertexCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "vertexCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "vertexCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "vertexCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"binding": {"kind": "uniform", "offset": 0, "size": 40}
}
}
},
{
"name": "fragmentT",
"binding": {"kind": "shaderResource", "index": 1},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "fragmentS",
"binding": {"kind": "samplerState", "index": 1},
"type": {
"kind": "samplerState"
}
},
{
"name": "fragmentC",
"binding": {"kind": "constantBuffer", "index": 1},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"fields": [
{
"name": "fragmentCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "fragmentCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "fragmentCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "fragmentCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"containerVarLayout": {
"binding": {"kind": "constantBuffer", "index": 0}
},
"elementVarLayout": {
"type": {
"kind": "struct",
"fields": [
{
"name": "fragmentCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "fragmentCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "fragmentCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "fragmentCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"binding": {"kind": "uniform", "offset": 0, "size": 40}
}
}
},
{
"name": "sharedT",
"binding": {"kind": "shaderResource", "index": 2},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "sharedS",
"binding": {"kind": "samplerState", "index": 2},
"type": {
"kind": "samplerState"
}
},
{
"name": "sharedC",
"binding": {"kind": "constantBuffer", "index": 2},
"type": {
"kind": "constantBuffer",
"elementType": {
"kind": "struct",
"fields": [
{
"name": "sharedCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "sharedCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "sharedCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "sharedCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"containerVarLayout": {
"binding": {"kind": "constantBuffer", "index": 0}
},
"elementVarLayout": {
"type": {
"kind": "struct",
"fields": [
{
"name": "sharedCA",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 0, "size": 12}
},
{
"name": "sharedCB",
"type": {
"kind": "scalar",
"scalarType": "float32"
},
"binding": {"kind": "uniform", "offset": 12, "size": 4}
},
{
"name": "sharedCC",
"type": {
"kind": "vector",
"elementCount": 3,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 16, "size": 12}
},
{
"name": "sharedCD",
"type": {
"kind": "vector",
"elementCount": 2,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
},
"binding": {"kind": "uniform", "offset": 32, "size": 8}
}
]
},
"binding": {"kind": "uniform", "offset": 0, "size": 40}
}
}
},
{
"name": "sharedTV",
"binding": {"kind": "shaderResource", "index": 3},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
},
{
"name": "sharedTF",
"binding": {"kind": "shaderResource", "index": 4},
"type": {
"kind": "resource",
"baseShape": "texture2D"
}
}
],
"entryPoints": [
{
"name": "mainVS",
"stage:": "vertex",
"result:": {
"semanticName": "SV_POSITION",
"type": {
"kind": "vector",
"elementCount": 4,
"elementType": {
"kind": "scalar",
"scalarType": "float32"
}
}
}
},
{
"name": "mainFS",
"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 ...