| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 31 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| %21 = OpExtInstImport "GLSL.std.450" | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint GLCompute %main "main" | |
| OpExecutionMode %main LocalSize 1 1 1 | |
| OpMemberName %v_block_tint_explicit_layout 0 "inner" | |
| OpName %v_block_tint_explicit_layout "v_block_tint_explicit_layout" | |
| OpMemberName %out_block 0 "inner" | |
| OpName %out_block "out_block" | |
| OpName %main "main" | |
| OpDecorate %_arr_v4uint_uint_8 ArrayStride 16 | |
| OpMemberDecorate %v_block_tint_explicit_layout 0 Offset 0 | |
| OpDecorate %v_block_tint_explicit_layout Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 NonWritable | |
| OpMemberDecorate %out_block 0 Offset 0 | |
| OpDecorate %out_block Block | |
| OpDecorate %8 DescriptorSet 0 | |
| OpDecorate %8 Binding 1 | |
| OpDecorate %8 Coherent | |
| %uint = OpTypeInt 32 0 | |
| %v4uint = OpTypeVector %uint 4 | |
| %uint_8 = OpConstant %uint 8 | |
| %_arr_v4uint_uint_8 = OpTypeArray %v4uint %uint_8 | |
| %v_block_tint_explicit_layout = OpTypeStruct %_arr_v4uint_uint_8 | |
| %_ptr_Uniform_v_block_tint_explicit_layout = OpTypePointer Uniform %v_block_tint_explicit_layout | |
| %1 = OpVariable %_ptr_Uniform_v_block_tint_explicit_layout Uniform | |
| %float = OpTypeFloat 32 | |
| %v2float = OpTypeVector %float 2 | |
| %out_block = OpTypeStruct %v2float | |
| %_ptr_StorageBuffer_out_block = OpTypePointer StorageBuffer %out_block | |
| %8 = OpVariable %_ptr_StorageBuffer_out_block StorageBuffer | |
| %void = OpTypeVoid | |
| %15 = OpTypeFunction %void | |
| %uint_2 = OpConstant %uint 2 | |
| %uint_1 = OpConstant %uint 1 | |
| %uint_0 = OpConstant %uint 0 | |
| %_ptr_Uniform_v4uint = OpTypePointer Uniform %v4uint | |
| %v2uint = OpTypeVector %uint 2 | |
| %_ptr_StorageBuffer_v2float = OpTypePointer StorageBuffer %v2float | |
| %main = OpFunction %void None %15 | |
| %16 = OpLabel | |
| %17 = OpISub %uint %uint_2 %uint_1 | |
| %20 = OpExtInst %uint %21 UMin %uint_0 %17 | |
| %23 = OpAccessChain %_ptr_Uniform_v4uint %1 %uint_0 %uint_2 | |
| %25 = OpLoad %v4uint %23 None | |
| %26 = OpVectorShuffle %v2uint %25 %25 0 1 | |
| %28 = OpBitcast %v2float %26 | |
| %29 = OpAccessChain %_ptr_StorageBuffer_v2float %8 %uint_0 | |
| OpStore %29 %28 None | |
| OpReturn | |
| OpFunctionEnd |