yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
bdda8a90c
master
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 "name": "t_i", 71 "binding": {"kind": "shaderResource", "index": 1}, 72 "type": { 73 "kind": "resource", 74 "baseShape": "texture2D", 75 "resultType": { 76 "kind": "vector", 77 "elementCount": 4, 78 "elementType": { 79 "kind": "scalar", 80 "scalarType": "float32" 81 } 82 } 83 } 84 }, 85 { 86 "name": "s_i", 87 "binding": {"kind": "samplerState", "index": 1}, 88 "type": { 89 "kind": "samplerState" 90 } 91 }, 92 { 93 "name": "C_i", 94 "binding": {"kind": "constantBuffer", "index": 1}, 95 "type": { 96 "kind": "constantBuffer", 97 "elementType": { 98 "kind": "struct", 99 "fields": [ 100 { 101 "name": "c_i", 102 "type": { 103 "kind": "scalar", 104 "scalarType": "float32" 105 }, 106 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 107 } 108 ] 109 }, 110 "containerVarLayout": { 111 "binding": {"kind": "constantBuffer", "index": 0} 112 }, 113 "elementVarLayout": { 114 "type": { 115 "kind": "struct", 116 "fields": [ 117 { 118 "name": "c_i", 119 "type": { 120 "kind": "scalar", 121 "scalarType": "float32" 122 }, 123 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 124 } 125 ] 126 }, 127 "binding": {"kind": "uniform", "offset": 0, "size": 4, "elementStride": 0} 128 } 129 } 130 } 131 ], 132 "entryPoints": [ 133 { 134 "name": "main", 135 "stage": "fragment", 136 "result": { 137 "stage": "fragment", 138 "binding": {"kind": "varyingOutput", "index": 0}, 139 "semanticName": "SV_TARGET", 140 "type": { 141 "kind": "vector", 142 "elementCount": 4, 143 "elementType": { 144 "kind": "scalar", 145 "scalarType": "float32" 146 } 147 } 148 } 149 } 150 ] 151} 152}