| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 42 |
| ; Schema: 0 |
| OpCapability Shader |
| OpCapability Float16 |
| OpCapability StorageBuffer16BitAccess |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint GLCompute %main "main" |
| OpExecutionMode %main LocalSize 1 1 1 |
| OpMemberName %tint_symbol_tint_explicit_layout 0 "inner" |
| OpName %tint_symbol_tint_explicit_layout "tint_symbol_tint_explicit_layout" |
| OpMemberName %output_block 0 "inner" |
| OpName %output_block "output_block" |
| OpName %main "main" |
| OpDecorate %_arr_uint_uint_3 ArrayStride 4 |
| OpMemberDecorate %tint_symbol_tint_explicit_layout 0 Offset 0 |
| OpDecorate %tint_symbol_tint_explicit_layout Block |
| OpMemberDecorate %output_block 0 Offset 0 |
| OpDecorate %output_block Block |
| OpDecorate %7 DescriptorSet 0 |
| OpDecorate %7 Binding 0 |
| OpDecorate %7 Coherent |
| %uint = OpTypeInt 32 0 |
| %uint_3 = OpConstant %uint 3 |
| %_arr_uint_uint_3 = OpTypeArray %uint %uint_3 |
| %tint_symbol_tint_explicit_layout = OpTypeStruct %_arr_uint_uint_3 |
| %_ptr_PushConstant_tint_symbol_tint_explicit_layout = OpTypePointer PushConstant %tint_symbol_tint_explicit_layout |
| %1 = OpVariable %_ptr_PushConstant_tint_symbol_tint_explicit_layout PushConstant |
| %float = OpTypeFloat 32 |
| %v4float = OpTypeVector %float 4 |
| %output_block = OpTypeStruct %v4float |
| %_ptr_StorageBuffer_output_block = OpTypePointer StorageBuffer %output_block |
| %7 = OpVariable %_ptr_StorageBuffer_output_block StorageBuffer |
| %void = OpTypeVoid |
| %14 = OpTypeFunction %void |
| %_ptr_PushConstant__arr_uint_uint_3 = OpTypePointer PushConstant %_arr_uint_uint_3 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_PushConstant_uint = OpTypePointer PushConstant %uint |
| %uint_1 = OpConstant %uint 1 |
| %half = OpTypeFloat 16 |
| %v2half = OpTypeVector %half 2 |
| %v2float = OpTypeVector %float 2 |
| %uint_2 = OpConstant %uint 2 |
| %_ptr_StorageBuffer_v4float = OpTypePointer StorageBuffer %v4float |
| %main = OpFunction %void None %14 |
| %15 = OpLabel |
| %16 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_3 %1 %uint_0 |
| %19 = OpAccessChain %_ptr_PushConstant_uint %16 %uint_0 |
| %21 = OpLoad %uint %19 None |
| %22 = OpBitcast %float %21 |
| %23 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_3 %1 %uint_0 |
| %24 = OpAccessChain %_ptr_PushConstant_uint %23 %uint_1 |
| %26 = OpLoad %uint %24 None |
| %29 = OpBitcast %v2half %26 |
| %31 = OpFConvert %v2float %29 |
| %32 = OpAccessChain %_ptr_PushConstant__arr_uint_uint_3 %1 %uint_0 |
| %33 = OpAccessChain %_ptr_PushConstant_uint %32 %uint_2 |
| %35 = OpLoad %uint %33 None |
| %36 = OpBitcast %v2half %35 |
| %37 = OpCompositeExtract %half %36 0 |
| %38 = OpFConvert %float %37 |
| %39 = OpCompositeConstruct %v4float %22 %31 %38 |
| %40 = OpAccessChain %_ptr_StorageBuffer_v4float %7 %uint_0 |
| OpStore %40 %39 None |
| OpReturn |
| OpFunctionEnd |