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