Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 1 | ; SPIR-V |
| 2 | ; Version: 1.3 |
| 3 | ; Generator: Google Tint Compiler; 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 4 | ; Bound: 65 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 5 | ; Schema: 0 |
| 6 | OpCapability Shader |
| 7 | OpMemoryModel Logical GLSL450 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 8 | OpEntryPoint GLCompute %main "main" %idx_1 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 9 | OpExecutionMode %main LocalSize 1 1 1 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 10 | OpName %idx_1 "idx_1" |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 11 | OpName %S "S" |
| 12 | OpMemberName %S 0 "arr" |
| 13 | OpName %Inner "Inner" |
| 14 | OpMemberName %Inner 0 "a" |
| 15 | OpMemberName %Inner 1 "b" |
| 16 | OpMemberName %Inner 2 "c" |
| 17 | OpMemberName %Inner 3 "d" |
| 18 | OpMemberName %Inner 4 "e" |
| 19 | OpMemberName %Inner 5 "f" |
| 20 | OpMemberName %Inner 6 "g" |
| 21 | OpMemberName %Inner 7 "h" |
| 22 | OpMemberName %Inner 8 "i" |
| 23 | OpName %s "s" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 24 | OpName %main_inner "main_inner" |
| 25 | OpName %idx "idx" |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 26 | OpName %main "main" |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 27 | OpDecorate %idx_1 BuiltIn LocalInvocationIndex |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 28 | OpDecorate %S Block |
| 29 | OpMemberDecorate %S 0 Offset 0 |
| 30 | OpMemberDecorate %Inner 0 Offset 0 |
| 31 | OpMemberDecorate %Inner 1 Offset 12 |
| 32 | OpMemberDecorate %Inner 2 Offset 16 |
| 33 | OpMemberDecorate %Inner 3 Offset 28 |
| 34 | OpMemberDecorate %Inner 4 Offset 32 |
| 35 | OpMemberDecorate %Inner 5 Offset 44 |
| 36 | OpMemberDecorate %Inner 6 Offset 48 |
| 37 | OpMemberDecorate %Inner 6 ColMajor |
| 38 | OpMemberDecorate %Inner 6 MatrixStride 16 |
| 39 | OpMemberDecorate %Inner 7 Offset 80 |
| 40 | OpMemberDecorate %Inner 7 ColMajor |
| 41 | OpMemberDecorate %Inner 7 MatrixStride 8 |
| 42 | OpMemberDecorate %Inner 8 Offset 112 |
| 43 | OpDecorate %_arr_v4int_uint_4 ArrayStride 16 |
| 44 | OpDecorate %_runtimearr_Inner ArrayStride 176 |
| 45 | OpDecorate %s Binding 0 |
| 46 | OpDecorate %s DescriptorSet 0 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 47 | %uint = OpTypeInt 32 0 |
| 48 | %_ptr_Input_uint = OpTypePointer Input %uint |
| 49 | %idx_1 = OpVariable %_ptr_Input_uint Input |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 50 | %int = OpTypeInt 32 1 |
| 51 | %v3int = OpTypeVector %int 3 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 52 | %v3uint = OpTypeVector %uint 3 |
| 53 | %float = OpTypeFloat 32 |
| 54 | %v3float = OpTypeVector %float 3 |
| 55 | %mat2v3float = OpTypeMatrix %v3float 2 |
| 56 | %v2float = OpTypeVector %float 2 |
| 57 | %mat3v2float = OpTypeMatrix %v2float 3 |
| 58 | %v4int = OpTypeVector %int 4 |
| 59 | %uint_4 = OpConstant %uint 4 |
| 60 | %_arr_v4int_uint_4 = OpTypeArray %v4int %uint_4 |
| 61 | %Inner = OpTypeStruct %v3int %int %v3uint %uint %v3float %float %mat2v3float %mat3v2float %_arr_v4int_uint_4 |
| 62 | %_runtimearr_Inner = OpTypeRuntimeArray %Inner |
| 63 | %S = OpTypeStruct %_runtimearr_Inner |
| 64 | %_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S |
| 65 | %s = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 66 | %void = OpTypeVoid |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 67 | %20 = OpTypeFunction %void %uint |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 68 | %uint_0 = OpConstant %uint 0 |
| 69 | %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| 70 | %28 = OpConstantNull %v3int |
| 71 | %uint_1 = OpConstant %uint 1 |
| 72 | %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 73 | %32 = OpConstantNull %int |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 74 | %uint_2 = OpConstant %uint 2 |
| 75 | %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 76 | %36 = OpConstantNull %v3uint |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 77 | %uint_3 = OpConstant %uint 3 |
| 78 | %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 79 | %40 = OpConstantNull %uint |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 80 | %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 81 | %43 = OpConstantNull %v3float |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 82 | %uint_5 = OpConstant %uint 5 |
| 83 | %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 84 | %47 = OpConstantNull %float |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 85 | %uint_6 = OpConstant %uint 6 |
| 86 | %_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 87 | %51 = OpConstantNull %mat2v3float |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 88 | %uint_7 = OpConstant %uint 7 |
| 89 | %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 90 | %55 = OpConstantNull %mat3v2float |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 91 | %uint_8 = OpConstant %uint 8 |
| 92 | %_ptr_StorageBuffer__arr_v4int_uint_4 = OpTypePointer StorageBuffer %_arr_v4int_uint_4 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 93 | %59 = OpConstantNull %_arr_v4int_uint_4 |
| 94 | %60 = OpTypeFunction %void |
| 95 | %main_inner = OpFunction %void None %20 |
| 96 | %idx = OpFunctionParameter %uint |
| 97 | %24 = OpLabel |
| 98 | %27 = OpAccessChain %_ptr_StorageBuffer_v3int %s %uint_0 %idx %uint_0 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 99 | OpStore %27 %28 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 100 | %31 = OpAccessChain %_ptr_StorageBuffer_int %s %uint_0 %idx %uint_1 |
| 101 | OpStore %31 %32 |
| 102 | %35 = OpAccessChain %_ptr_StorageBuffer_v3uint %s %uint_0 %idx %uint_2 |
| 103 | OpStore %35 %36 |
| 104 | %39 = OpAccessChain %_ptr_StorageBuffer_uint %s %uint_0 %idx %uint_3 |
| 105 | OpStore %39 %40 |
| 106 | %42 = OpAccessChain %_ptr_StorageBuffer_v3float %s %uint_0 %idx %uint_4 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 107 | OpStore %42 %43 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 108 | %46 = OpAccessChain %_ptr_StorageBuffer_float %s %uint_0 %idx %uint_5 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 109 | OpStore %46 %47 |
James Price | 11c6fcd | 2021-08-05 17:34:19 +0000 | [diff] [blame] | 110 | %50 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %s %uint_0 %idx %uint_6 |
| 111 | OpStore %50 %51 |
| 112 | %54 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %s %uint_0 %idx %uint_7 |
| 113 | OpStore %54 %55 |
| 114 | %58 = OpAccessChain %_ptr_StorageBuffer__arr_v4int_uint_4 %s %uint_0 %idx %uint_8 |
| 115 | OpStore %58 %59 |
| 116 | OpReturn |
| 117 | OpFunctionEnd |
| 118 | %main = OpFunction %void None %60 |
| 119 | %62 = OpLabel |
| 120 | %64 = OpLoad %uint %idx_1 |
| 121 | %63 = OpFunctionCall %void %main_inner %64 |
Ben Clayton | 51cfe26 | 2021-07-13 12:18:13 +0000 | [diff] [blame] | 122 | OpReturn |
| 123 | OpFunctionEnd |