| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 33 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability RuntimeDescriptorArray |
| OpExtension "SPV_EXT_descriptor_indexing" |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %fs "fs" |
| OpExecutionMode %fs OriginUpperLeft |
| OpMemberName %tint_resource_binding_buffer_tint_explicit_layout 0 "array_length" |
| OpMemberName %tint_resource_binding_buffer_tint_explicit_layout 1 "bindings" |
| OpName %tint_resource_binding_buffer_tint_explicit_layout "tint_resource_binding_buffer_tint_explicit_layout" |
| OpName %fs "fs" |
| OpName %t "t" |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpMemberDecorate %tint_resource_binding_buffer_tint_explicit_layout 0 Offset 0 |
| OpDecorate %_runtimearr_uint ArrayStride 4 |
| OpMemberDecorate %tint_resource_binding_buffer_tint_explicit_layout 1 Offset 4 |
| OpDecorate %tint_resource_binding_buffer_tint_explicit_layout Block |
| OpDecorate %6 DescriptorSet 1 |
| OpDecorate %6 Binding 0 |
| OpDecorate %6 NonWritable |
| %int = OpTypeInt 32 1 |
| %4 = OpTypeImage %int 2D 0 0 0 1 Unknown |
| %_runtimearr_4 = OpTypeRuntimeArray %4 |
| %_ptr_UniformConstant__runtimearr_4 = OpTypePointer UniformConstant %_runtimearr_4 |
| %1 = OpVariable %_ptr_UniformConstant__runtimearr_4 UniformConstant |
| %uint = OpTypeInt 32 0 |
| %_runtimearr_uint = OpTypeRuntimeArray %uint |
| %tint_resource_binding_buffer_tint_explicit_layout = OpTypeStruct %uint %_runtimearr_uint |
| %_ptr_StorageBuffer_tint_resource_binding_buffer_tint_explicit_layout = OpTypePointer StorageBuffer %tint_resource_binding_buffer_tint_explicit_layout |
| %6 = OpVariable %_ptr_StorageBuffer_tint_resource_binding_buffer_tint_explicit_layout StorageBuffer |
| %void = OpTypeVoid |
| %13 = OpTypeFunction %void |
| %int_4 = OpConstant %int 4 |
| %_ptr_StorageBuffer_uint = OpTypePointer StorageBuffer %uint |
| %uint_0 = OpConstant %uint 0 |
| %bool = OpTypeBool |
| %false = OpConstantFalse %bool |
| %uint_1 = OpConstant %uint 1 |
| %uint_5 = OpConstant %uint 5 |
| %fs = OpFunction %void None %13 |
| %14 = OpLabel |
| %15 = OpBitcast %uint %int_4 |
| %17 = OpAccessChain %_ptr_StorageBuffer_uint %6 %uint_0 |
| %20 = OpLoad %uint %17 None |
| %21 = OpULessThan %bool %15 %20 |
| OpSelectionMerge %23 None |
| OpBranchConditional %21 %24 %25 |
| %24 = OpLabel |
| %29 = OpAccessChain %_ptr_StorageBuffer_uint %6 %uint_1 %15 |
| %31 = OpLoad %uint %29 None |
| %27 = OpIEqual %bool %31 %uint_5 |
| OpBranch %23 |
| %25 = OpLabel |
| OpBranch %23 |
| %23 = OpLabel |
| %t = OpPhi %bool %27 %24 %false %25 |
| OpReturn |
| OpFunctionEnd |