Revision 10386fa23f3a9211e9ef5d8f54e795f9b4005395 authored by Yong He on 03 September 2021, 08:39:17 UTC, committed by Yong He on 03 September 2021, 08:39:17 UTC
1 parent 265f403
Raw File
cpp-resource-reflection.slang.32.expected
result code = 0
standard error = {
}
standard output = {
{
    "parameters": [
        {
            "name": "thing3",
            "binding": {"kind": "uniform", "offset": 0, "size": 4},
            "type": {
                "kind": "constantBuffer",
                "elementType": {
                    "kind": "struct",
                    "name": "Thing",
                    "fields": [
                        {
                            "name": "a",
                            "type": {
                                "kind": "scalar",
                                "scalarType": "int32"
                            },
                            "binding": {"kind": "uniform", "offset": 0, "size": 4}
                        },
                        {
                            "name": "b",
                            "type": {
                                "kind": "scalar",
                                "scalarType": "float32"
                            },
                            "binding": {"kind": "uniform", "offset": 4, "size": 4}
                        },
                        {
                            "name": "c",
                            "type": {
                                "kind": "scalar",
                                "scalarType": "float32"
                            },
                            "binding": {"kind": "uniform", "offset": 8, "size": 4}
                        }
                    ]
                },
                "containerVarLayout": {
                    "binding": {"kind": "uniform", "offset": 0, "size": 4}
                },
                "elementVarLayout": {
                    "type": {
                        "kind": "struct",
                        "name": "Thing",
                        "fields": [
                            {
                                "name": "a",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "int32"
                                },
                                "binding": {"kind": "uniform", "offset": 0, "size": 4}
                            },
                            {
                                "name": "b",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 4, "size": 4}
                            },
                            {
                                "name": "c",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 8, "size": 4}
                            }
                        ]
                    },
                    "binding": {"kind": "uniform", "offset": 0, "size": 12}
                }
            }
        },
        {
            "name": "outputBuffer",
            "binding": {"kind": "uniform", "offset": 4, "size": 8},
            "type": {
                "kind": "resource",
                "baseShape": "structuredBuffer",
                "access": "readWrite",
                "resultType": {
                    "kind": "scalar",
                    "scalarType": "int32"
                }
            }
        },
        {
            "name": "tex",
            "binding": {"kind": "uniform", "offset": 12, "size": 4},
            "type": {
                "kind": "resource",
                "baseShape": "texture2D"
            }
        },
        {
            "name": "sampler",
            "binding": {"kind": "uniform", "offset": 16, "size": 4},
            "type": {
                "kind": "samplerState"
            }
        }
    ],
    "entryPoints": [
        {
            "name": "computeMain",
            "stage:": "compute",
            "parameters": [
                {
                    "name": "dispatchThreadID",
                    "semanticName": "SV_DISPATCHTHREADID",
                    "type": {
                        "kind": "vector",
                        "elementCount": 3,
                        "elementType": {
                            "kind": "scalar",
                            "scalarType": "uint32"
                        }
                    }
                },
                {
                    "name": "thing",
                    "binding": {"kind": "uniform", "offset": 0, "size": 12},
                    "type": {
                        "kind": "struct",
                        "name": "Thing",
                        "fields": [
                            {
                                "name": "a",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "int32"
                                },
                                "binding": {"kind": "uniform", "offset": 0, "size": 4}
                            },
                            {
                                "name": "b",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 4, "size": 4}
                            },
                            {
                                "name": "c",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 8, "size": 4}
                            }
                        ]
                    }
                },
                {
                    "name": "thing2",
                    "binding": {"kind": "uniform", "offset": 12, "size": 12},
                    "type": {
                        "kind": "struct",
                        "name": "Thing",
                        "fields": [
                            {
                                "name": "a",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "int32"
                                },
                                "binding": {"kind": "uniform", "offset": 0, "size": 4}
                            },
                            {
                                "name": "b",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 4, "size": 4}
                            },
                            {
                                "name": "c",
                                "type": {
                                    "kind": "scalar",
                                    "scalarType": "float32"
                                },
                                "binding": {"kind": "uniform", "offset": 8, "size": 4}
                            }
                        ]
                    }
                }
            ],
            "threadGroupSize": [4, 1, 1]
        }
    ]
}
}
back to top