https://github.com/shader-slang/slang
Raw File
Tip revision: f5c81d869b48f8fa22a4c9b028a7d694d70b7291 authored by Yong He on 16 June 2022, 04:57:30 UTC
Add signing to Macos release workflow. (#2285)
Tip revision: f5c81d8
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