| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 38 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpCapability ImageQuery | |
| %29 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %fs "fs" | |
| OpExecutionMode %fs OriginUpperLeft | |
| OpMemberName %index_block_tint_explicit_layout 0 "inner" | |
| OpName %index_block_tint_explicit_layout "index_block_tint_explicit_layout" | |
| OpName %sampled_textures "sampled_textures" | |
| OpName %fs "fs" | |
| OpName %texture_load "texture_load" | |
| OpDecorate %_arr_v4uint_uint_1 ArrayStride 16 | |
| OpMemberDecorate %index_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %index_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 1 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 NonWritable | |
| OpDecorate %sampled_textures DescriptorSet 0 | |
| OpDecorate %sampled_textures Binding 0 | |
| %uint = OpTypeInt 32 0 | |
| %v4uint = OpTypeVector %uint 4 | |
| %uint_1 = OpConstant %uint 1 | |
| %_arr_v4uint_uint_1 = OpTypeArray %v4uint %uint_1 | |
| %index_block_tint_explicit_layout = OpTypeStruct %_arr_v4uint_uint_1 | |
| %_ptr_Uniform_index_block_tint_explicit_layout = OpTypePointer Uniform %index_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_Uniform_index_block_tint_explicit_layout Uniform | |
| %float = OpTypeFloat 32 | |
| %11 = OpTypeImage %float 2D 0 0 0 1 Unknown | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_11_uint_4 = OpTypeArray %11 %uint_4 | |
| %_ptr_UniformConstant__arr_11_uint_4 = OpTypePointer UniformConstant %_arr_11_uint_4 | |
| %sampled_textures = OpVariable %_ptr_UniformConstant__arr_11_uint_4 UniformConstant | |
| %void = OpTypeVoid | |
| %16 = OpTypeFunction %void | |
| %_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_UniformConstant_11 = OpTypePointer UniformConstant %11 | |
| %v2uint = OpTypeVector %uint 2 | |
| %33 = OpConstantComposite %v2uint %uint_1 %uint_1 | |
| %35 = OpConstantNull %v2uint | |
| %v4float = OpTypeVector %float 4 | |
| %fs = OpFunction %void None %16 | |
| %17 = OpLabel | |
| %18 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %uint_0 | |
| %21 = OpLoad %v4uint %18 None | |
| %22 = OpCompositeExtract %uint %21 0 | |
| %23 = OpAccessChain %_ptr_UniformConstant_11 %sampled_textures %22 | |
| %25 = OpLoad %11 %23 None | |
| %26 = OpImageQueryLevels %uint %25 | |
| %27 = OpISub %uint %26 %uint_1 | |
| %28 = OpExtInst %uint %29 UMin %uint_0 %27 | |
| %30 = OpImageQuerySizeLod %v2uint %25 %28 | |
| %32 = OpISub %v2uint %30 %33 | |
| %34 = OpExtInst %v2uint %29 UMin %35 %32 | |
| %texture_load = OpImageFetch %v4float %25 %34 Lod %28 | |
| OpReturn | |
| OpFunctionEnd |