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
3.2 KiB98 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "x",
9            "binding": {"kind": "shaderResource", "index": 0},
10            "type": {
11                "kind": "resource",
12                "baseShape": "structuredBuffer",
13                "resultType": {
14                    "kind": "scalar",
15                    "scalarType": "uint32"
16                }
17            }
18        },
19        {
20            "name": "y",
21            "binding": {"kind": "shaderResource", "index": 1},
22            "type": {
23                "kind": "resource",
24                "baseShape": "structuredBuffer",
25                "resultType": {
26                    "kind": "vector",
27                    "elementCount": 2,
28                    "elementType": {
29                        "kind": "scalar",
30                        "scalarType": "float32"
31                    }
32                }
33            }
34        },
35        {
36            "name": "z",
37            "binding": {"kind": "shaderResource", "index": 2},
38            "type": {
39                "kind": "resource",
40                "baseShape": "structuredBuffer",
41                "resultType": {
42                    "kind": "struct",
43                    "name": "S",
44                    "fields": [
45                        {
46                            "name": "a",
47                            "type": {
48                                "kind": "vector",
49                                "elementCount": 2,
50                                "elementType": {
51                                    "kind": "scalar",
52                                    "scalarType": "float32"
53                                }
54                            },
55                            "binding": {"kind": "uniform", "offset": 0, "size": 8, "elementStride": 4}
56                        },
57                        {
58                            "name": "b",
59                            "type": {
60                                "kind": "scalar",
61                                "scalarType": "float32"
62                            },
63                            "binding": {"kind": "uniform", "offset": 8, "size": 4, "elementStride": 0}
64                        },
65                        {
66                            "name": "c",
67                            "type": {
68                                "kind": "scalar",
69                                "scalarType": "uint32"
70                            },
71                            "binding": {"kind": "uniform", "offset": 12, "size": 4, "elementStride": 0}
72                        }
73                    ]
74                }
75            }
76        }
77    ],
78    "entryPoints": [
79        {
80            "name": "main",
81            "stage": "fragment",
82            "result": {
83                "stage": "fragment",
84                "binding": {"kind": "varyingOutput", "index": 0},
85                "semanticName": "SV_TARGET",
86                "type": {
87                    "kind": "vector",
88                    "elementCount": 4,
89                    "elementType": {
90                        "kind": "scalar",
91                        "scalarType": "float32"
92                    }
93                }
94            }
95        }
96    ]
97}
98}