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.5 KiB85 linesraw
1result code = 0
2standard error = {
3}
4standard output = {
5{
6    "parameters": [
7        {
8            "name": "a",
9            "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0},
10            "type": {
11                "kind": "scalar",
12                "scalarType": "int32"
13            }
14        },
15        {
16            "name": "b",
17            "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0},
18            "type": {
19                "kind": "scalar",
20                "scalarType": "float32"
21            }
22        },
23        {
24            "name": "t",
25            "binding": {"kind": "descriptorTableSlot", "index": 0},
26            "type": {
27                "kind": "resource",
28                "baseShape": "texture2D",
29                "resultType": {
30                    "kind": "vector",
31                    "elementCount": 4,
32                    "elementType": {
33                        "kind": "scalar",
34                        "scalarType": "float32"
35                    }
36                }
37            }
38        },
39        {
40            "name": "sampler",
41            "binding": {"kind": "descriptorTableSlot", "index": 1},
42            "type": {
43                "kind": "samplerState"
44            }
45        }
46    ],
47    "entryPoints": [
48        {
49            "name": "main",
50            "stage": "fragment",
51            "result": {
52                "stage": "fragment",
53                "binding": {"kind": "varyingOutput", "index": 0},
54                "semanticName": "SV_TARGET",
55                "type": {
56                    "kind": "vector",
57                    "elementCount": 4,
58                    "elementType": {
59                        "kind": "scalar",
60                        "scalarType": "float32"
61                    }
62                }
63            },
64            "bindings": [
65                {
66                    "name": "a",
67                    "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0}
68                },
69                {
70                    "name": "b",
71                    "binding": {"kind": "uniform", "offset": 4, "size": 4, "elementStride": 0}
72                },
73                {
74                    "name": "t",
75                    "binding": {"kind": "descriptorTableSlot", "index": 0, "used": 1}
76                },
77                {
78                    "name": "sampler",
79                    "binding": {"kind": "descriptorTableSlot", "index": 1, "used": 1}
80                }
81            ]
82        }
83    ]
84}
85}