yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
76fdeaa47
master
1result code = 0 2standard error = { 3} 4standard output = { 5{ 6 "parameters": [ 7 { 8 "name": "SomeBuffer", 9 "binding": {"kind": "descriptorTableSlot", "index": 0}, 10 "type": { 11 "kind": "shaderStorageBuffer", 12 "elementType": { 13 "kind": "struct", 14 "fields": [ 15 { 16 "name": "a", 17 "type": { 18 "kind": "scalar", 19 "scalarType": "float32" 20 }, 21 "binding": {"kind": "uniform", "offset": 0, "size": 4} 22 }, 23 { 24 "name": "b", 25 "type": { 26 "kind": "vector", 27 "elementCount": 3, 28 "elementType": { 29 "kind": "scalar", 30 "scalarType": "float32" 31 } 32 }, 33 "binding": {"kind": "uniform", "offset": 16, "size": 12} 34 }, 35 { 36 "name": "c", 37 "type": { 38 "kind": "array", 39 "elementCount": 4, 40 "elementType": { 41 "kind": "scalar", 42 "scalarType": "float32" 43 }, 44 "uniformStride": 4 45 }, 46 "binding": {"kind": "uniform", "offset": 28, "size": 16} 47 }, 48 { 49 "name": "d", 50 "type": { 51 "kind": "vector", 52 "elementCount": 2, 53 "elementType": { 54 "kind": "scalar", 55 "scalarType": "float32" 56 } 57 }, 58 "binding": {"kind": "uniform", "offset": 48, "size": 8} 59 }, 60 { 61 "name": "e", 62 "type": { 63 "kind": "struct", 64 "name": "Foo", 65 "fields": [ 66 { 67 "name": "f", 68 "type": { 69 "kind": "vector", 70 "elementCount": 2, 71 "elementType": { 72 "kind": "scalar", 73 "scalarType": "float32" 74 } 75 }, 76 "binding": {"kind": "uniform", "offset": 0, "size": 8} 77 } 78 ] 79 }, 80 "binding": {"kind": "uniform", "offset": 56, "size": 8} 81 }, 82 { 83 "name": "g", 84 "type": { 85 "kind": "vector", 86 "elementCount": 3, 87 "elementType": { 88 "kind": "scalar", 89 "scalarType": "float32" 90 } 91 }, 92 "binding": {"kind": "uniform", "offset": 64, "size": 12} 93 }, 94 { 95 "name": "h", 96 "type": { 97 "kind": "scalar", 98 "scalarType": "float32" 99 }, 100 "binding": {"kind": "uniform", "offset": 76, "size": 4} 101 } 102 ] 103 } 104 } 105 } 106 ], 107 "entryPoints": [ 108 { 109 "name": "main", 110 "stage": "fragment" 111 } 112 ] 113} 114}