yum-mirror/slang

Making it easier to work with shaders

git clone https://git.yummers.dev/yum-mirror/slang

Harsh Aggarwal (NVIDIA)Fix 7441: CUDA boolean vector layout to use 1-byte elements (#7862)bdda8a90c

master
4.1 KiB125 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "cbThing",
9            "type": {
10                "kind": "constantBuffer",
11                "elementType": {
12                    "kind": "struct",
13                    "name": "Thing",
14                    "fields": [
15
16                    ]
17                },
18                "containerVarLayout": {
19
20                },
21                "elementVarLayout": {
22                    "type": {
23                        "kind": "struct",
24                        "name": "Thing",
25                        "fields": [
26
27                        ]
28                    }
29                }
30            }
31        },
32        {
33            "name": "cbAnotherThing",
34            "binding": {"kind": "constantBuffer", "index": 0},
35            "type": {
36                "kind": "constantBuffer",
37                "elementType": {
38                    "kind": "struct",
39                    "name": "AnotherThing",
40                    "fields": [
41                        {
42                            "name": "a",
43                            "type": {
44                                "kind": "scalar",
45                                "scalarType": "int32"
46                            },
47                            "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
48                        },
49                        {
50                            "name": "b",
51                            "type": {
52                                "kind": "scalar",
53                                "scalarType": "int32"
54                            },
55                            "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0}
56                        }
57                    ]
58                },
59                "containerVarLayout": {
60                    "binding": {"kind": "constantBuffer", "index": 0}
61                },
62                "elementVarLayout": {
63                    "type": {
64                        "kind": "struct",
65                        "name": "AnotherThing",
66                        "fields": [
67                            {
68                                "name": "a",
69                                "type": {
70                                    "kind": "scalar",
71                                    "scalarType": "int32"
72                                },
73                                "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
74                            },
75                            {
76                                "name": "b",
77                                "type": {
78                                    "kind": "scalar",
79                                    "scalarType": "int32"
80                                },
81                                "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0}
82                            }
83                        ]
84                    },
85                    "binding": {"kind": "uniform", "offset": 0, "size": 8, "elementStride": 0}
86                }
87            }
88        },
89        {
90            "name": "outputBuffer",
91            "binding": {"kind": "unorderedAccess", "index": 0},
92            "type": {
93                "kind": "resource",
94                "baseShape": "structuredBuffer",
95                "access": "readWrite",
96                "resultType": {
97                    "kind": "scalar",
98                    "scalarType": "int32"
99                }
100            }
101        }
102    ],
103    "entryPoints": [
104        {
105            "name": "computeMain",
106            "stage": "compute",
107            "parameters": [
108                {
109                    "name": "dispatchThreadID",
110                    "semanticName": "SV_DISPATCHTHREADID",
111                    "type": {
112                        "kind": "vector",
113                        "elementCount": 3,
114                        "elementType": {
115                            "kind": "scalar",
116                            "scalarType": "uint32"
117                        }
118                    }
119                }
120            ],
121            "threadGroupSize": [4, 1, 1]
122        }
123    ]
124}
125}