| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 38 |
| ; Schema: 0 |
| OpCapability Shader |
| %33 = OpExtInstImport "GLSL.std.450" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %f "f" |
| 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" |
| OpName %f "f" |
| OpMemberName %S 0 "data" |
| OpName %S "S" |
| OpName %s "s" |
| 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 |
| %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 |
| %void = OpTypeVoid |
| %15 = OpTypeFunction %void |
| %uint_64 = OpConstant %uint 64 |
| %_arr_int_uint_64 = OpTypeArray %int %uint_64 |
| %S = OpTypeStruct %_arr_int_uint_64 |
| %_ptr_Function_S = OpTypePointer Function %S |
| %22 = OpConstantNull %S |
| %_ptr_StorageBuffer_int = OpTypePointer StorageBuffer %int |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint |
| %uint_63 = OpConstant %uint 63 |
| %_ptr_Function_int = OpTypePointer Function %int |
| %f = OpFunction %void None %15 |
| %16 = OpLabel |
| %s = OpVariable %_ptr_Function_S Function %22 |
| %23 = OpAccessChain %_ptr_StorageBuffer_int %8 %uint_0 %uint_0 |
| %26 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %uint_0 |
| %28 = OpLoad %v4uint %26 None |
| %29 = OpCompositeExtract %uint %28 0 |
| %30 = OpBitcast %int %29 |
| %31 = OpBitcast %uint %30 |
| %32 = OpExtInst %uint %33 UMin %31 %uint_63 |
| %35 = OpAccessChain %_ptr_Function_int %s %uint_0 %32 |
| %37 = OpLoad %int %35 None |
| OpStore %23 %37 None |
| OpReturn |
| OpFunctionEnd |