https://github.com/shader-slang/slang
Raw File
Tip revision: 9833ff9a3d121b974cdaa21708eedb50e9d560cc authored by Yong He on 27 September 2023, 18:46:29 UTC
Fix `isMovableInst`. (#3243)
Tip revision: 9833ff9
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}
                        }
                    ]
                },
                "containerVarLayout": {
                    "binding": {"kind": "constantBuffer", "index": 0}
                },
                "elementVarLayout": {
                    "type": {
                        "kind": "struct",
                        "fields": [
                            {
                                "name": "c",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 0, "size": 4}
                            }
                        ]
                    },
                    "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}
                        }
                    ]
                },
                "containerVarLayout": {
                    "binding": {"kind": "constantBuffer", "index": 0}
                },
                "elementVarLayout": {
                    "type": {
                        "kind": "struct",
                        "fields": [
                            {
                                "name": "c_i",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 0, "size": 4}
                            }
                        ]
                    },
                    "binding": {"kind": "uniform", "offset": 0, "size": 4}
                }
            }
        }
    ],
    "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"
                    }
                }
            }
        }
    ]
}
}
back to top