1 hlsl.matpack-pragma.frag 2 WARNING: 0:19: 'random_string_foo' : unknown pack_matrix pragma value 3 4 Shader version: 500 5 gl_FragCoord origin is upper left 6 0:? Sequence 7 0:29 Function Definition: @main( ( temp 4-component vector of float) 8 0:29 Function Parameters: 9 0:? Sequence 10 0:32 Branch: Return with expression 11 0:32 add ( temp 4-component vector of float) 12 0:32 add ( temp 4-component vector of float) 13 0:31 add ( temp 4-component vector of float) 14 0:31 add ( temp 4-component vector of float) 15 0:31 add ( temp 4-component vector of float) 16 0:31 direct index (layout( row_major) temp 4-component vector of float) 17 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) 18 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 19 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 20 0:31 Constant: 21 0:31 0 (const uint) 22 0:31 Constant: 23 0:31 0 (const int) 24 0:31 Constant: 25 0:31 0 (const int) 26 0:31 direct index (layout( column_major) temp 4-component vector of float) 27 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) 28 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 29 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 30 0:31 Constant: 31 0:31 0 (const uint) 32 0:31 Constant: 33 0:31 1 (const int) 34 0:31 Constant: 35 0:31 0 (const int) 36 0:31 direct index (layout( column_major) temp 4-component vector of float) 37 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of float) 38 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 39 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 40 0:31 Constant: 41 0:31 0 (const uint) 42 0:31 Constant: 43 0:31 2 (const int) 44 0:31 Constant: 45 0:31 0 (const int) 46 0:32 direct index (layout( row_major) temp 4-component vector of float) 47 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) 48 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 49 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 50 0:32 Constant: 51 0:32 1 (const uint) 52 0:32 Constant: 53 0:32 0 (const int) 54 0:32 Constant: 55 0:32 0 (const int) 56 0:32 direct index (layout( column_major) temp 4-component vector of float) 57 0:32 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) 58 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 59 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 60 0:32 Constant: 61 0:32 1 (const uint) 62 0:32 Constant: 63 0:32 1 (const int) 64 0:32 Constant: 65 0:32 0 (const int) 66 0:32 direct index (layout( row_major) temp 4-component vector of float) 67 0:32 mat3: direct index for structure (layout( row_major) temp 4X4 matrix of float) 68 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 69 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 70 0:32 Constant: 71 0:32 1 (const uint) 72 0:32 Constant: 73 0:32 2 (const int) 74 0:32 Constant: 75 0:32 0 (const int) 76 0:29 Function Definition: main( ( temp void) 77 0:29 Function Parameters: 78 0:? Sequence 79 0:29 move second child to first child ( temp 4-component vector of float) 80 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 81 0:29 Function Call: @main( ( temp 4-component vector of float) 82 0:? Linker Objects 83 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 84 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 85 86 87 Linked fragment stage: 88 89 90 Shader version: 500 91 gl_FragCoord origin is upper left 92 0:? Sequence 93 0:29 Function Definition: @main( ( temp 4-component vector of float) 94 0:29 Function Parameters: 95 0:? Sequence 96 0:32 Branch: Return with expression 97 0:32 add ( temp 4-component vector of float) 98 0:32 add ( temp 4-component vector of float) 99 0:31 add ( temp 4-component vector of float) 100 0:31 add ( temp 4-component vector of float) 101 0:31 add ( temp 4-component vector of float) 102 0:31 direct index (layout( row_major) temp 4-component vector of float) 103 0:31 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) 104 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 105 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 106 0:31 Constant: 107 0:31 0 (const uint) 108 0:31 Constant: 109 0:31 0 (const int) 110 0:31 Constant: 111 0:31 0 (const int) 112 0:31 direct index (layout( column_major) temp 4-component vector of float) 113 0:31 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) 114 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 115 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 116 0:31 Constant: 117 0:31 0 (const uint) 118 0:31 Constant: 119 0:31 1 (const int) 120 0:31 Constant: 121 0:31 0 (const int) 122 0:31 direct index (layout( column_major) temp 4-component vector of float) 123 0:31 mat3: direct index for structure (layout( column_major) temp 4X4 matrix of float) 124 0:31 g_MyBuffer1: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3}) 125 0:31 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 126 0:31 Constant: 127 0:31 0 (const uint) 128 0:31 Constant: 129 0:31 2 (const int) 130 0:31 Constant: 131 0:31 0 (const int) 132 0:32 direct index (layout( row_major) temp 4-component vector of float) 133 0:32 mat1: direct index for structure (layout( row_major) temp 4X4 matrix of float) 134 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 135 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 136 0:32 Constant: 137 0:32 1 (const uint) 138 0:32 Constant: 139 0:32 0 (const int) 140 0:32 Constant: 141 0:32 0 (const int) 142 0:32 direct index (layout( column_major) temp 4-component vector of float) 143 0:32 mat2: direct index for structure (layout( column_major) temp 4X4 matrix of float) 144 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 145 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 146 0:32 Constant: 147 0:32 1 (const uint) 148 0:32 Constant: 149 0:32 1 (const int) 150 0:32 Constant: 151 0:32 0 (const int) 152 0:32 direct index (layout( row_major) temp 4-component vector of float) 153 0:32 mat3: direct index for structure (layout( row_major) temp 4X4 matrix of float) 154 0:32 g_MyBuffer2: direct index for structure (layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3}) 155 0:32 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 156 0:32 Constant: 157 0:32 1 (const uint) 158 0:32 Constant: 159 0:32 2 (const int) 160 0:32 Constant: 161 0:32 0 (const int) 162 0:29 Function Definition: main( ( temp void) 163 0:29 Function Parameters: 164 0:? Sequence 165 0:29 move second child to first child ( temp 4-component vector of float) 166 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 167 0:29 Function Call: @main( ( temp 4-component vector of float) 168 0:? Linker Objects 169 0:? 'anon@0' (layout( row_major std140) uniform block{layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( column_major) temp 4X4 matrix of float mat3} g_MyBuffer1, layout( row_major std140) uniform structure{layout( row_major) temp 4X4 matrix of float mat1, layout( column_major) temp 4X4 matrix of float mat2, layout( row_major) temp 4X4 matrix of float mat3} g_MyBuffer2, layout( row_major std140) uniform 4X4 matrix of float mat1a}) 170 0:? '@entryPointOutput' (layout( location=0) out 4-component vector of float) 171 172 // Module Version 10000 173 // Generated by (magic number): 80007 174 // Id's are bound by 44 175 176 Capability Shader 177 1: ExtInstImport "GLSL.std.450" 178 MemoryModel Logical GLSL450 179 EntryPoint Fragment 4 "main" 42 180 ExecutionMode 4 OriginUpperLeft 181 Source HLSL 500 182 Name 4 "main" 183 Name 9 "@main(" 184 Name 12 "MyBuffer1" 185 MemberName 12(MyBuffer1) 0 "mat1" 186 MemberName 12(MyBuffer1) 1 "mat2" 187 MemberName 12(MyBuffer1) 2 "mat3" 188 Name 13 "MyBuffer2" 189 MemberName 13(MyBuffer2) 0 "mat1" 190 MemberName 13(MyBuffer2) 1 "mat2" 191 MemberName 13(MyBuffer2) 2 "mat3" 192 Name 14 "Example" 193 MemberName 14(Example) 0 "g_MyBuffer1" 194 MemberName 14(Example) 1 "g_MyBuffer2" 195 MemberName 14(Example) 2 "mat1a" 196 Name 16 "" 197 Name 42 "@entryPointOutput" 198 MemberDecorate 12(MyBuffer1) 0 RowMajor 199 MemberDecorate 12(MyBuffer1) 0 Offset 0 200 MemberDecorate 12(MyBuffer1) 0 MatrixStride 16 201 MemberDecorate 12(MyBuffer1) 1 ColMajor 202 MemberDecorate 12(MyBuffer1) 1 Offset 64 203 MemberDecorate 12(MyBuffer1) 1 MatrixStride 16 204 MemberDecorate 12(MyBuffer1) 2 ColMajor 205 MemberDecorate 12(MyBuffer1) 2 Offset 128 206 MemberDecorate 12(MyBuffer1) 2 MatrixStride 16 207 MemberDecorate 13(MyBuffer2) 0 RowMajor 208 MemberDecorate 13(MyBuffer2) 0 Offset 0 209 MemberDecorate 13(MyBuffer2) 0 MatrixStride 16 210 MemberDecorate 13(MyBuffer2) 1 ColMajor 211 MemberDecorate 13(MyBuffer2) 1 Offset 64 212 MemberDecorate 13(MyBuffer2) 1 MatrixStride 16 213 MemberDecorate 13(MyBuffer2) 2 RowMajor 214 MemberDecorate 13(MyBuffer2) 2 Offset 128 215 MemberDecorate 13(MyBuffer2) 2 MatrixStride 16 216 MemberDecorate 14(Example) 0 Offset 0 217 MemberDecorate 14(Example) 1 Offset 192 218 MemberDecorate 14(Example) 2 RowMajor 219 MemberDecorate 14(Example) 2 Offset 384 220 MemberDecorate 14(Example) 2 MatrixStride 16 221 Decorate 14(Example) Block 222 Decorate 16 DescriptorSet 0 223 Decorate 16 Binding 0 224 Decorate 42(@entryPointOutput) Location 0 225 2: TypeVoid 226 3: TypeFunction 2 227 6: TypeFloat 32 228 7: TypeVector 6(float) 4 229 8: TypeFunction 7(fvec4) 230 11: TypeMatrix 7(fvec4) 4 231 12(MyBuffer1): TypeStruct 11 11 11 232 13(MyBuffer2): TypeStruct 11 11 11 233 14(Example): TypeStruct 12(MyBuffer1) 13(MyBuffer2) 11 234 15: TypePointer Uniform 14(Example) 235 16: 15(ptr) Variable Uniform 236 17: TypeInt 32 1 237 18: 17(int) Constant 0 238 19: TypePointer Uniform 7(fvec4) 239 22: 17(int) Constant 1 240 26: 17(int) Constant 2 241 41: TypePointer Output 7(fvec4) 242 42(@entryPointOutput): 41(ptr) Variable Output 243 4(main): 2 Function None 3 244 5: Label 245 43: 7(fvec4) FunctionCall 9(@main() 246 Store 42(@entryPointOutput) 43 247 Return 248 FunctionEnd 249 9(@main(): 7(fvec4) Function None 8 250 10: Label 251 20: 19(ptr) AccessChain 16 18 18 18 252 21: 7(fvec4) Load 20 253 23: 19(ptr) AccessChain 16 18 22 18 254 24: 7(fvec4) Load 23 255 25: 7(fvec4) FAdd 21 24 256 27: 19(ptr) AccessChain 16 18 26 18 257 28: 7(fvec4) Load 27 258 29: 7(fvec4) FAdd 25 28 259 30: 19(ptr) AccessChain 16 22 18 18 260 31: 7(fvec4) Load 30 261 32: 7(fvec4) FAdd 29 31 262 33: 19(ptr) AccessChain 16 22 22 18 263 34: 7(fvec4) Load 33 264 35: 7(fvec4) FAdd 32 34 265 36: 19(ptr) AccessChain 16 22 26 18 266 37: 7(fvec4) Load 36 267 38: 7(fvec4) FAdd 35 37 268 ReturnValue 38 269 FunctionEnd 270