| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 205 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" %main_local_invocation_index_Input |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %Inner 0 "scalar_f32" |
| OpMemberName %Inner 1 "scalar_i32" |
| OpMemberName %Inner 2 "scalar_u32" |
| OpMemberName %Inner 3 "vec2_f32" |
| OpMemberName %Inner 4 "vec2_i32" |
| OpMemberName %Inner 5 "vec2_u32" |
| OpMemberName %Inner 6 "vec3_f32" |
| OpMemberName %Inner 7 "vec3_i32" |
| OpMemberName %Inner 8 "vec3_u32" |
| OpMemberName %Inner 9 "vec4_f32" |
| OpMemberName %Inner 10 "vec4_i32" |
| OpMemberName %Inner 11 "vec4_u32" |
| OpMemberName %Inner 12 "mat2x2_f32" |
| OpMemberName %Inner 13 "mat2x3_f32" |
| OpMemberName %Inner 14 "mat2x4_f32" |
| OpMemberName %Inner 15 "mat3x2_f32" |
| OpMemberName %Inner 16 "mat3x3_f32" |
| OpMemberName %Inner 17 "mat3x4_f32" |
| OpMemberName %Inner 18 "mat4x2_f32" |
| OpMemberName %Inner 19 "mat4x3_f32" |
| OpMemberName %Inner 20 "mat4x4_f32" |
| OpMemberName %Inner 21 "arr2_vec3_f32" |
| OpName %Inner "Inner" |
| OpMemberName %S 0 "arr" |
| OpName %S "S" |
| OpName %sb "sb" |
| OpMemberName %tint_symbol_1 0 "tint_symbol" |
| OpName %tint_symbol_1 "tint_symbol_1" |
| OpName %main_local_invocation_index_Input "main_local_invocation_index_Input" |
| OpName %main_inner "main_inner" |
| OpName %idx "idx" |
| OpName %scalar_f32 "scalar_f32" |
| OpName %scalar_i32 "scalar_i32" |
| OpName %scalar_u32 "scalar_u32" |
| OpName %vec2_f32 "vec2_f32" |
| OpName %vec2_i32 "vec2_i32" |
| OpName %vec2_u32 "vec2_u32" |
| OpName %vec3_f32 "vec3_f32" |
| OpName %vec3_i32 "vec3_i32" |
| OpName %vec3_u32 "vec3_u32" |
| OpName %vec4_f32 "vec4_f32" |
| OpName %vec4_i32 "vec4_i32" |
| OpName %vec4_u32 "vec4_u32" |
| OpName %mat2x2_f32 "mat2x2_f32" |
| OpName %mat2x3_f32 "mat2x3_f32" |
| OpName %mat2x4_f32 "mat2x4_f32" |
| OpName %mat3x2_f32 "mat3x2_f32" |
| OpName %mat3x3_f32 "mat3x3_f32" |
| OpName %mat3x4_f32 "mat3x4_f32" |
| OpName %mat4x2_f32 "mat4x2_f32" |
| OpName %mat4x3_f32 "mat4x3_f32" |
| OpName %mat4x4_f32 "mat4x4_f32" |
| OpName %arr2_vec3_f32 "arr2_vec3_f32" |
| OpName %tint_f32_to_i32 "tint_f32_to_i32" |
| OpName %value "value" |
| OpName %main "main" |
| OpMemberDecorate %Inner 0 Offset 0 |
| OpMemberDecorate %Inner 1 Offset 4 |
| OpMemberDecorate %Inner 2 Offset 8 |
| OpMemberDecorate %Inner 3 Offset 16 |
| OpMemberDecorate %Inner 4 Offset 24 |
| OpMemberDecorate %Inner 5 Offset 32 |
| OpMemberDecorate %Inner 6 Offset 48 |
| OpMemberDecorate %Inner 7 Offset 64 |
| OpMemberDecorate %Inner 8 Offset 80 |
| OpMemberDecorate %Inner 9 Offset 96 |
| OpMemberDecorate %Inner 10 Offset 112 |
| OpMemberDecorate %Inner 11 Offset 128 |
| OpMemberDecorate %Inner 12 Offset 144 |
| OpMemberDecorate %Inner 12 ColMajor |
| OpMemberDecorate %Inner 12 MatrixStride 8 |
| OpMemberDecorate %Inner 13 Offset 160 |
| OpMemberDecorate %Inner 13 ColMajor |
| OpMemberDecorate %Inner 13 MatrixStride 16 |
| OpMemberDecorate %Inner 14 Offset 192 |
| OpMemberDecorate %Inner 14 ColMajor |
| OpMemberDecorate %Inner 14 MatrixStride 16 |
| OpMemberDecorate %Inner 15 Offset 224 |
| OpMemberDecorate %Inner 15 ColMajor |
| OpMemberDecorate %Inner 15 MatrixStride 8 |
| OpMemberDecorate %Inner 16 Offset 256 |
| OpMemberDecorate %Inner 16 ColMajor |
| OpMemberDecorate %Inner 16 MatrixStride 16 |
| OpMemberDecorate %Inner 17 Offset 304 |
| OpMemberDecorate %Inner 17 ColMajor |
| OpMemberDecorate %Inner 17 MatrixStride 16 |
| OpMemberDecorate %Inner 18 Offset 352 |
| OpMemberDecorate %Inner 18 ColMajor |
| OpMemberDecorate %Inner 18 MatrixStride 8 |
| OpMemberDecorate %Inner 19 Offset 384 |
| OpMemberDecorate %Inner 19 ColMajor |
| OpMemberDecorate %Inner 19 MatrixStride 16 |
| OpMemberDecorate %Inner 20 Offset 448 |
| OpMemberDecorate %Inner 20 ColMajor |
| OpMemberDecorate %Inner 20 MatrixStride 16 |
| OpDecorate %_arr_v3float_uint_2 ArrayStride 16 |
| OpMemberDecorate %Inner 21 Offset 512 |
| OpDecorate %_runtimearr_Inner ArrayStride 544 |
| OpMemberDecorate %S 0 Offset 0 |
| OpDecorate %S Block |
| OpDecorate %sb DescriptorSet 0 |
| OpDecorate %sb Binding 0 |
| OpDecorate %sb NonWritable |
| OpMemberDecorate %tint_symbol_1 0 Offset 0 |
| OpDecorate %tint_symbol_1 Block |
| OpDecorate %29 DescriptorSet 0 |
| OpDecorate %29 Binding 1 |
| OpDecorate %29 Coherent |
| OpDecorate %main_local_invocation_index_Input BuiltIn LocalInvocationIndex |
| %float = OpTypeFloat 32 |
| %int = OpTypeInt 32 1 |
| %uint = OpTypeInt 32 0 |
| %v2float = OpTypeVector %float 2 |
| %v2int = OpTypeVector %int 2 |
| %v2uint = OpTypeVector %uint 2 |
| %v3float = OpTypeVector %float 3 |
| %v3int = OpTypeVector %int 3 |
| %v3uint = OpTypeVector %uint 3 |
| %v4float = OpTypeVector %float 4 |
| %v4int = OpTypeVector %int 4 |
| %v4uint = OpTypeVector %uint 4 |
| %mat2v2float = OpTypeMatrix %v2float 2 |
| %mat2v3float = OpTypeMatrix %v3float 2 |
| %mat2v4float = OpTypeMatrix %v4float 2 |
| %mat3v2float = OpTypeMatrix %v2float 3 |
| %mat3v3float = OpTypeMatrix %v3float 3 |
| %mat3v4float = OpTypeMatrix %v4float 3 |
| %mat4v2float = OpTypeMatrix %v2float 4 |
| %mat4v3float = OpTypeMatrix %v3float 4 |
| %mat4v4float = OpTypeMatrix %v4float 4 |
| %uint_2 = OpConstant %uint 2 |
| %_arr_v3float_uint_2 = OpTypeArray %v3float %uint_2 |
| %Inner = OpTypeStruct %float %int %uint %v2float %v2int %v2uint %v3float %v3int %v3uint %v4float %v4int %v4uint %mat2v2float %mat2v3float %mat2v4float %mat3v2float %mat3v3float %mat3v4float %mat4v2float %mat4v3float %mat4v4float %_arr_v3float_uint_2 |
| %_runtimearr_Inner = OpTypeRuntimeArray %Inner |
| %S = OpTypeStruct %_runtimearr_Inner |
| %_ptr_StorageBuffer_S = OpTypePointer StorageBuffer %S |
| %sb = OpVariable %_ptr_StorageBuffer_S StorageBuffer |
| %tint_symbol_1 = OpTypeStruct %int |
| %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 |
| %29 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer |
| %_ptr_Input_uint = OpTypePointer Input %uint |
| %main_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input |
| %void = OpTypeVoid |
| %37 = OpTypeFunction %void %uint |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %uint_1 = OpConstant %uint 1 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float |
| %uint_3 = OpConstant %uint 3 |
| %_ptr_StorageBuffer_v2int = OpTypePointer StorageBuffer %v2int |
| %uint_4 = OpConstant %uint 4 |
| %_ptr_StorageBuffer_v2uint = OpTypePointer StorageBuffer %v2uint |
| %uint_5 = OpConstant %uint 5 |
| %_ptr_StorageBuffer_v3float = OpTypePointer StorageBuffer %v3float |
| %uint_6 = OpConstant %uint 6 |
| %_ptr_StorageBuffer_v3int = OpTypePointer StorageBuffer %v3int |
| %uint_7 = OpConstant %uint 7 |
| %_ptr_StorageBuffer_v3uint = OpTypePointer StorageBuffer %v3uint |
| %uint_8 = OpConstant %uint 8 |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %uint_9 = OpConstant %uint 9 |
| %_ptr_StorageBuffer_v4int = OpTypePointer StorageBuffer %v4int |
| %uint_10 = OpConstant %uint 10 |
| %_ptr_StorageBuffer_v4uint = OpTypePointer StorageBuffer %v4uint |
| %uint_11 = OpConstant %uint 11 |
| %_ptr_StorageBuffer_mat2v2float = OpTypePointer StorageBuffer %mat2v2float |
| %uint_12 = OpConstant %uint 12 |
| %_ptr_StorageBuffer_mat2v3float = OpTypePointer StorageBuffer %mat2v3float |
| %uint_13 = OpConstant %uint 13 |
| %_ptr_StorageBuffer_mat2v4float = OpTypePointer StorageBuffer %mat2v4float |
| %uint_14 = OpConstant %uint 14 |
| %_ptr_StorageBuffer_mat3v2float = OpTypePointer StorageBuffer %mat3v2float |
| %uint_15 = OpConstant %uint 15 |
| %_ptr_StorageBuffer_mat3v3float = OpTypePointer StorageBuffer %mat3v3float |
| %uint_16 = OpConstant %uint 16 |
| %_ptr_StorageBuffer_mat3v4float = OpTypePointer StorageBuffer %mat3v4float |
| %uint_17 = OpConstant %uint 17 |
| %_ptr_StorageBuffer_mat4v2float = OpTypePointer StorageBuffer %mat4v2float |
| %uint_18 = OpConstant %uint 18 |
| %_ptr_StorageBuffer_mat4v3float = OpTypePointer StorageBuffer %mat4v3float |
| %uint_19 = OpConstant %uint 19 |
| %_ptr_StorageBuffer_mat4v4float = OpTypePointer StorageBuffer %mat4v4float |
| %uint_20 = OpConstant %uint 20 |
| %_ptr_StorageBuffer__arr_v3float_uint_2 = OpTypePointer StorageBuffer %_arr_v3float_uint_2 |
| %uint_21 = OpConstant %uint 21 |
| %_ptr_StorageBuffer_int_0 = OpTypePointer StorageBuffer %int |
| %188 = OpTypeFunction %int %float |
| %float_n2_14748365e_09 = OpConstant %float -2.14748365e+09 |
| %bool = OpTypeBool |
| %int_n2147483648 = OpConstant %int -2147483648 |
| %float_2_14748352e_09 = OpConstant %float 2.14748352e+09 |
| %int_2147483647 = OpConstant %int 2147483647 |
| %201 = OpTypeFunction %void |
| %main_inner = OpFunction %void None %37 |
| %idx = OpFunctionParameter %uint |
| %38 = OpLabel |
| %39 = OpAccessChain %_ptr_StorageBuffer_float %sb %uint_0 %idx %uint_0 |
| %scalar_f32 = OpLoad %float %39 None |
| %43 = OpAccessChain %_ptr_StorageBuffer_int %sb %uint_0 %idx %uint_1 |
| %scalar_i32 = OpLoad %int %43 None |
| %47 = OpAccessChain %_ptr_StorageBuffer_uint %sb %uint_0 %idx %uint_2 |
| %scalar_u32 = OpLoad %uint %47 None |
| %50 = OpAccessChain %_ptr_StorageBuffer_v2float %sb %uint_0 %idx %uint_3 |
| %vec2_f32 = OpLoad %v2float %50 None |
| %54 = OpAccessChain %_ptr_StorageBuffer_v2int %sb %uint_0 %idx %uint_4 |
| %vec2_i32 = OpLoad %v2int %54 None |
| %58 = OpAccessChain %_ptr_StorageBuffer_v2uint %sb %uint_0 %idx %uint_5 |
| %vec2_u32 = OpLoad %v2uint %58 None |
| %62 = OpAccessChain %_ptr_StorageBuffer_v3float %sb %uint_0 %idx %uint_6 |
| %vec3_f32 = OpLoad %v3float %62 None |
| %66 = OpAccessChain %_ptr_StorageBuffer_v3int %sb %uint_0 %idx %uint_7 |
| %vec3_i32 = OpLoad %v3int %66 None |
| %70 = OpAccessChain %_ptr_StorageBuffer_v3uint %sb %uint_0 %idx %uint_8 |
| %vec3_u32 = OpLoad %v3uint %70 None |
| %74 = OpAccessChain %_ptr_StorageBuffer_v4float %sb %uint_0 %idx %uint_9 |
| %vec4_f32 = OpLoad %v4float %74 None |
| %78 = OpAccessChain %_ptr_StorageBuffer_v4int %sb %uint_0 %idx %uint_10 |
| %vec4_i32 = OpLoad %v4int %78 None |
| %82 = OpAccessChain %_ptr_StorageBuffer_v4uint %sb %uint_0 %idx %uint_11 |
| %vec4_u32 = OpLoad %v4uint %82 None |
| %86 = OpAccessChain %_ptr_StorageBuffer_mat2v2float %sb %uint_0 %idx %uint_12 |
| %mat2x2_f32 = OpLoad %mat2v2float %86 None |
| %90 = OpAccessChain %_ptr_StorageBuffer_mat2v3float %sb %uint_0 %idx %uint_13 |
| %mat2x3_f32 = OpLoad %mat2v3float %90 None |
| %94 = OpAccessChain %_ptr_StorageBuffer_mat2v4float %sb %uint_0 %idx %uint_14 |
| %mat2x4_f32 = OpLoad %mat2v4float %94 None |
| %98 = OpAccessChain %_ptr_StorageBuffer_mat3v2float %sb %uint_0 %idx %uint_15 |
| %mat3x2_f32 = OpLoad %mat3v2float %98 None |
| %102 = OpAccessChain %_ptr_StorageBuffer_mat3v3float %sb %uint_0 %idx %uint_16 |
| %mat3x3_f32 = OpLoad %mat3v3float %102 None |
| %106 = OpAccessChain %_ptr_StorageBuffer_mat3v4float %sb %uint_0 %idx %uint_17 |
| %mat3x4_f32 = OpLoad %mat3v4float %106 None |
| %110 = OpAccessChain %_ptr_StorageBuffer_mat4v2float %sb %uint_0 %idx %uint_18 |
| %mat4x2_f32 = OpLoad %mat4v2float %110 None |
| %114 = OpAccessChain %_ptr_StorageBuffer_mat4v3float %sb %uint_0 %idx %uint_19 |
| %mat4x3_f32 = OpLoad %mat4v3float %114 None |
| %118 = OpAccessChain %_ptr_StorageBuffer_mat4v4float %sb %uint_0 %idx %uint_20 |
| %mat4x4_f32 = OpLoad %mat4v4float %118 None |
| %122 = OpAccessChain %_ptr_StorageBuffer__arr_v3float_uint_2 %sb %uint_0 %idx %uint_21 |
| %arr2_vec3_f32 = OpLoad %_arr_v3float_uint_2 %122 None |
| %126 = OpFunctionCall %int %tint_f32_to_i32 %scalar_f32 |
| %128 = OpIAdd %int %126 %scalar_i32 |
| %129 = OpBitcast %int %scalar_u32 |
| %130 = OpIAdd %int %128 %129 |
| %131 = OpCompositeExtract %float %vec2_f32 0 |
| %132 = OpFunctionCall %int %tint_f32_to_i32 %131 |
| %133 = OpIAdd %int %130 %132 |
| %134 = OpCompositeExtract %int %vec2_i32 0 |
| %135 = OpIAdd %int %133 %134 |
| %136 = OpCompositeExtract %uint %vec2_u32 0 |
| %137 = OpBitcast %int %136 |
| %138 = OpIAdd %int %135 %137 |
| %139 = OpCompositeExtract %float %vec3_f32 1 |
| %140 = OpFunctionCall %int %tint_f32_to_i32 %139 |
| %141 = OpIAdd %int %138 %140 |
| %142 = OpCompositeExtract %int %vec3_i32 1 |
| %143 = OpIAdd %int %141 %142 |
| %144 = OpCompositeExtract %uint %vec3_u32 1 |
| %145 = OpBitcast %int %144 |
| %146 = OpIAdd %int %143 %145 |
| %147 = OpCompositeExtract %float %vec4_f32 2 |
| %148 = OpFunctionCall %int %tint_f32_to_i32 %147 |
| %149 = OpIAdd %int %146 %148 |
| %150 = OpCompositeExtract %int %vec4_i32 2 |
| %151 = OpIAdd %int %149 %150 |
| %152 = OpCompositeExtract %uint %vec4_u32 2 |
| %153 = OpBitcast %int %152 |
| %154 = OpIAdd %int %151 %153 |
| %155 = OpCompositeExtract %float %mat2x2_f32 0 0 |
| %156 = OpFunctionCall %int %tint_f32_to_i32 %155 |
| %157 = OpIAdd %int %154 %156 |
| %158 = OpCompositeExtract %float %mat2x3_f32 0 0 |
| %159 = OpFunctionCall %int %tint_f32_to_i32 %158 |
| %160 = OpIAdd %int %157 %159 |
| %161 = OpCompositeExtract %float %mat2x4_f32 0 0 |
| %162 = OpFunctionCall %int %tint_f32_to_i32 %161 |
| %163 = OpIAdd %int %160 %162 |
| %164 = OpCompositeExtract %float %mat3x2_f32 0 0 |
| %165 = OpFunctionCall %int %tint_f32_to_i32 %164 |
| %166 = OpIAdd %int %163 %165 |
| %167 = OpCompositeExtract %float %mat3x3_f32 0 0 |
| %168 = OpFunctionCall %int %tint_f32_to_i32 %167 |
| %169 = OpIAdd %int %166 %168 |
| %170 = OpCompositeExtract %float %mat3x4_f32 0 0 |
| %171 = OpFunctionCall %int %tint_f32_to_i32 %170 |
| %172 = OpIAdd %int %169 %171 |
| %173 = OpCompositeExtract %float %mat4x2_f32 0 0 |
| %174 = OpFunctionCall %int %tint_f32_to_i32 %173 |
| %175 = OpIAdd %int %172 %174 |
| %176 = OpCompositeExtract %float %mat4x3_f32 0 0 |
| %177 = OpFunctionCall %int %tint_f32_to_i32 %176 |
| %178 = OpIAdd %int %175 %177 |
| %179 = OpCompositeExtract %float %mat4x4_f32 0 0 |
| %180 = OpFunctionCall %int %tint_f32_to_i32 %179 |
| %181 = OpIAdd %int %178 %180 |
| %182 = OpCompositeExtract %float %arr2_vec3_f32 0 0 |
| %183 = OpFunctionCall %int %tint_f32_to_i32 %182 |
| %184 = OpIAdd %int %181 %183 |
| %185 = OpAccessChain %_ptr_StorageBuffer_int_0 %29 %uint_0 |
| OpStore %185 %184 None |
| OpReturn |
| OpFunctionEnd |
| %tint_f32_to_i32 = OpFunction %int None %188 |
| %value = OpFunctionParameter %float |
| %189 = OpLabel |
| %190 = OpConvertFToS %int %value |
| %191 = OpFOrdGreaterThanEqual %bool %value %float_n2_14748365e_09 |
| %194 = OpSelect %int %191 %190 %int_n2147483648 |
| %196 = OpFOrdLessThanEqual %bool %value %float_2_14748352e_09 |
| %198 = OpSelect %int %196 %194 %int_2147483647 |
| OpReturnValue %198 |
| OpFunctionEnd |
| %main = OpFunction %void None %201 |
| %202 = OpLabel |
| %203 = OpLoad %uint %main_local_invocation_index_Input None |
| %204 = OpFunctionCall %void %main_inner %203 |
| OpReturn |
| OpFunctionEnd |