| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 64 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| %43 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %f "f" %f_local_invocation_index_Input | |
| OpExecutionMode %f LocalSize 1 1 1 | |
| OpMemberName %ubo_block_tint_explicit_layout 0 "inner" | |
| OpName %ubo_block_tint_explicit_layout "ubo_block_tint_explicit_layout" | |
| OpMemberName %Result 0 "out" | |
| OpName %Result "Result" | |
| OpMemberName %result_block 0 "inner" | |
| OpName %result_block "result_block" | |
| OpMemberName %S 0 "data" | |
| OpName %S "S" | |
| OpName %s "s" | |
| OpName %f_local_invocation_index_Input "f_local_invocation_index_Input" | |
| OpName %f_inner "f_inner" | |
| OpName %tint_local_index "tint_local_index" | |
| OpName %f "f" | |
| OpDecorate %_arr_v4uint_uint_1 ArrayStride 16 | |
| OpMemberDecorate %ubo_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %ubo_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 NonWritable | |
| OpMemberDecorate %Result 0 Offset 0 | |
| OpMemberDecorate %result_block 0 Offset 0 | |
| OpDecorate %result_block Block | |
| OpDecorate %8 DescriptorSet 0 | |
| OpDecorate %8 Binding 1 | |
| OpDecorate %8 Coherent | |
| OpDecorate %f_local_invocation_index_Input BuiltIn LocalInvocationIndex | |
| %uint = OpTypeInt 32 0 | |
| %v4uint = OpTypeVector %uint 4 | |
| %uint_1 = OpConstant %uint 1 | |
| %_arr_v4uint_uint_1 = OpTypeArray %v4uint %uint_1 | |
| %ubo_block_tint_explicit_layout = OpTypeStruct %_arr_v4uint_uint_1 | |
| %_ptr_Uniform_ubo_block_tint_explicit_layout = OpTypePointer Uniform %ubo_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_Uniform_ubo_block_tint_explicit_layout Uniform | |
| %int = OpTypeInt 32 1 | |
| %Result = OpTypeStruct %int | |
| %result_block = OpTypeStruct %Result | |
| %_ptr_StorageBuffer_result_block = OpTypePointer StorageBuffer %result_block | |
| %8 = OpVariable %_ptr_StorageBuffer_result_block StorageBuffer | |
| %uint_64 = OpConstant %uint 64 | |
| %_arr_int_uint_64 = OpTypeArray %int %uint_64 | |
| %S = OpTypeStruct %_arr_int_uint_64 | |
| %_ptr_Workgroup_S = OpTypePointer Workgroup %S | |
| %s = OpVariable %_ptr_Workgroup_S Workgroup | |
| %_ptr_Input_uint = OpTypePointer Input %uint | |
| %f_local_invocation_index_Input = OpVariable %_ptr_Input_uint Input | |
| %void = OpTypeVoid | |
| %23 = OpTypeFunction %void %uint | |
| %uint_2 = OpConstant %uint 2 | |
| %uint_264 = OpConstant %uint 264 | |
| %_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint | |
| %uint_0 = OpConstant %uint 0 | |
| %uint_63 = OpConstant %uint 63 | |
| %_ptr_Workgroup_int = OpTypePointer Workgroup %int | |
| %int_1 = OpConstant %int 1 | |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int | |
| %uint_3 = OpConstant %uint 3 | |
| %bool = OpTypeBool | |
| %int_0 = OpConstant %int 0 | |
| %60 = OpTypeFunction %void | |
| %f_inner = OpFunction %void None %23 | |
| %tint_local_index = OpFunctionParameter %uint | |
| %24 = OpLabel | |
| OpBranch %25 | |
| %25 = OpLabel | |
| OpBranch %28 | |
| %28 = OpLabel | |
| %30 = OpPhi %uint %tint_local_index %25 %31 %27 | |
| OpLoopMerge %29 %27 None | |
| OpBranch %26 | |
| %26 = OpLabel | |
| %53 = OpUGreaterThanEqual %bool %30 %uint_64 | |
| OpSelectionMerge %55 None | |
| OpBranchConditional %53 %56 %55 | |
| %56 = OpLabel | |
| OpBranch %29 | |
| %55 = OpLabel | |
| %57 = OpAccessChain %_ptr_Workgroup_int %s %uint_0 %30 | |
| OpStore %57 %int_0 None | |
| OpBranch %27 | |
| %27 = OpLabel | |
| %31 = OpIAdd %uint %30 %uint_1 | |
| OpBranch %28 | |
| %29 = OpLabel | |
| OpControlBarrier %uint_2 %uint_2 %uint_264 | |
| %35 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %uint_0 | |
| %38 = OpLoad %v4uint %35 None | |
| %39 = OpCompositeExtract %uint %38 0 | |
| %40 = OpBitcast %int %39 | |
| %41 = OpBitcast %uint %40 | |
| %42 = OpExtInst %uint %43 UMin %41 %uint_63 | |
| %45 = OpAccessChain %_ptr_Workgroup_int %s %uint_0 %42 | |
| OpStore %45 %int_1 None | |
| %48 = OpAccessChain %_ptr_StorageBuffer_int %8 %uint_0 %uint_0 | |
| %50 = OpAccessChain %_ptr_Workgroup_int %s %uint_0 %uint_3 | |
| %52 = OpLoad %int %50 None | |
| OpStore %48 %52 None | |
| OpReturn | |
| OpFunctionEnd | |
| %f = OpFunction %void None %60 | |
| %61 = OpLabel | |
| %62 = OpLoad %uint %f_local_invocation_index_Input None | |
| %63 = OpFunctionCall %void %f_inner %62 | |
| OpReturn | |
| OpFunctionEnd |