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