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
2.4 KiB74 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": "payload",
20                            "type": {
21                                "kind": "scalar",
22                                "scalarType": "int32"
23                            },
24                            "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
25                        },
26                        {
27                            "name": "next",
28                            "type": {
29                                "kind": "pointer",
30                                "valueType": "SomeStruct"
31                            },
32                            "binding": {"kind": "uniform", "offset": 8, "size": 8, "elementStride": 0}
33                        }
34                    ]
35                }
36            }
37        },
38        {
39            "name": "outputBuffer",
40            "binding": {"kind": "uniform", "offset": 16, "size": 16, "elementStride": 0},
41            "type": {
42                "kind": "resource",
43                "baseShape": "structuredBuffer",
44                "access": "readWrite",
45                "resultType": {
46                    "kind": "scalar",
47                    "scalarType": "int32"
48                }
49            }
50        }
51    ],
52    "entryPoints": [
53        {
54            "name": "computeMain",
55            "stage": "compute",
56            "parameters": [
57                {
58                    "name": "dispatchThreadID",
59                    "semanticName": "SV_DISPATCHTHREADID",
60                    "type": {
61                        "kind": "vector",
62                        "elementCount": 3,
63                        "elementType": {
64                            "kind": "scalar",
65                            "scalarType": "uint32"
66                        }
67                    }
68                }
69            ],
70            "threadGroupSize": [4, 1, 1]
71        }
72    ]
73}
74}