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": "MyConstantBuffer", 9 "bindings": [ 10 {"kind": "constantBuffer", "index": 0}, 11 {"kind": "shaderResource", "index": 0}, 12 {"kind": "samplerState", "index": 0} 13 ], 14 "type": { 15 "kind": "constantBuffer", 16 "elementType": { 17 "kind": "struct", 18 "fields": [ 19 { 20 "name": "v", 21 "type": { 22 "kind": "vector", 23 "elementCount": 3, 24 "elementType": { 25 "kind": "scalar", 26 "scalarType": "float32" 27 } 28 }, 29 "binding": {"kind": "uniform", "offset": 0, "size": 12, "elementStride": 4} 30 }, 31 { 32 "name": "myTexture", 33 "type": { 34 "kind": "resource", 35 "baseShape": "texture2D", 36 "resultType": { 37 "kind": "vector", 38 "elementCount": 4, 39 "elementType": { 40 "kind": "scalar", 41 "scalarType": "float32" 42 } 43 } 44 }, 45 "binding": {"kind": "shaderResource", "index": 0} 46 }, 47 { 48 "name": "c", 49 "type": { 50 "kind": "scalar", 51 "scalarType": "float32" 52 }, 53 "binding": {"kind": "uniform", "offset": 12, "size": 4, "elementStride": 0} 54 }, 55 { 56 "name": "mySampler", 57 "type": { 58 "kind": "samplerState" 59 }, 60 "binding": {"kind": "samplerState", "index": 0} 61 } 62 ] 63 }, 64 "containerVarLayout": { 65 "binding": {"kind": "constantBuffer", "index": 0} 66 }, 67 "elementVarLayout": { 68 "type": { 69 "kind": "struct", 70 "fields": [ 71 { 72 "name": "v", 73 "type": { 74 "kind": "vector", 75 "elementCount": 3, 76 "elementType": { 77 "kind": "scalar", 78 "scalarType": "float32" 79 } 80 }, 81 "binding": {"kind": "uniform", "offset": 0, "size": 12, "elementStride": 4} 82 }, 83 { 84 "name": "myTexture", 85 "type": { 86 "kind": "resource", 87 "baseShape": "texture2D", 88 "resultType": { 89 "kind": "vector", 90 "elementCount": 4, 91 "elementType": { 92 "kind": "scalar", 93 "scalarType": "float32" 94 } 95 } 96 }, 97 "binding": {"kind": "shaderResource", "index": 0} 98 }, 99 { 100 "name": "c", 101 "type": { 102 "kind": "scalar", 103 "scalarType": "float32" 104 }, 105 "binding": {"kind": "uniform", "offset": 12, "size": 4, "elementStride": 0} 106 }, 107 { 108 "name": "mySampler", 109 "type": { 110 "kind": "samplerState" 111 }, 112 "binding": {"kind": "samplerState", "index": 0} 113 } 114 ] 115 }, 116 "bindings": [ 117 {"kind": "shaderResource", "index": 0}, 118 {"kind": "samplerState", "index": 0}, 119 {"kind": "uniform", "offset": 0, "size": 16, "elementStride": 0} 120 ] 121 } 122 } 123 } 124 ], 125 "entryPoints": [ 126 { 127 "name": "main", 128 "stage": "fragment", 129 "result": { 130 "stage": "fragment", 131 "binding": {"kind": "varyingOutput", "index": 0}, 132 "semanticName": "SV_TARGET", 133 "type": { 134 "kind": "vector", 135 "elementCount": 4, 136 "elementType": { 137 "kind": "scalar", 138 "scalarType": "float32" 139 } 140 } 141 } 142 } 143 ] 144} 145}