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