| ; SPIR-V | |
| ; Version: 1.3 | |
| ; Generator: Google Tint Compiler; 1 | |
| ; Bound: 43 | |
| ; Schema: 0 | |
| OpCapability Shader | |
| OpMemoryModel Logical GLSL450 | |
| OpEntryPoint Fragment %main "main" | |
| OpExecutionMode %main OriginUpperLeft | |
| OpMemberName %tint_symbol_1 0 "tint_symbol" | |
| OpName %tint_symbol_1 "tint_symbol_1" | |
| OpName %main "main" | |
| OpName %signed_literal "signed_literal" | |
| OpName %unsigned_literal "unsigned_literal" | |
| OpName %signed_constant "signed_constant" | |
| OpName %unsigned_constant "unsigned_constant" | |
| OpName %shr_const_expr "shr_const_expr" | |
| OpMemberDecorate %tint_symbol_1 0 Offset 0 | |
| OpDecorate %tint_symbol_1 Block | |
| OpDecorate %1 DescriptorSet 0 | |
| OpDecorate %1 Binding 0 | |
| OpDecorate %1 Coherent | |
| OpDecorate %_arr_float_uint_4 ArrayStride 4 | |
| %float = OpTypeFloat 32 | |
| %tint_symbol_1 = OpTypeStruct %float | |
| %_ptr_StorageBuffer_tint_symbol_1 = OpTypePointer StorageBuffer %tint_symbol_1 | |
| %1 = OpVariable %_ptr_StorageBuffer_tint_symbol_1 StorageBuffer | |
| %void = OpTypeVoid | |
| %7 = OpTypeFunction %void | |
| %uint = OpTypeInt 32 0 | |
| %uint_4 = OpConstant %uint 4 | |
| %_arr_float_uint_4 = OpTypeArray %float %uint_4 | |
| %_ptr_Function__arr_float_uint_4 = OpTypePointer Function %_arr_float_uint_4 | |
| %14 = OpConstantNull %_arr_float_uint_4 | |
| %_ptr_Function_float = OpTypePointer Function %float | |
| %int = OpTypeInt 32 1 | |
| %int_0 = OpConstant %int 0 | |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float | |
| %uint_0 = OpConstant %uint 0 | |
| %main = OpFunction %void None %7 | |
| %8 = OpLabel | |
| %signed_literal = OpVariable %_ptr_Function__arr_float_uint_4 Function %14 | |
| %unsigned_literal = OpVariable %_ptr_Function__arr_float_uint_4 Function %14 | |
| %signed_constant = OpVariable %_ptr_Function__arr_float_uint_4 Function %14 | |
| %unsigned_constant = OpVariable %_ptr_Function__arr_float_uint_4 Function %14 | |
| %shr_const_expr = OpVariable %_ptr_Function__arr_float_uint_4 Function %14 | |
| %19 = OpLoad %_arr_float_uint_4 %signed_literal None | |
| OpStore %unsigned_literal %19 None | |
| %20 = OpLoad %_arr_float_uint_4 %signed_literal None | |
| OpStore %signed_constant %20 None | |
| %21 = OpLoad %_arr_float_uint_4 %signed_literal None | |
| OpStore %unsigned_constant %21 None | |
| %22 = OpLoad %_arr_float_uint_4 %signed_literal None | |
| OpStore %shr_const_expr %22 None | |
| %23 = OpAccessChain %_ptr_Function_float %signed_literal %int_0 | |
| %27 = OpLoad %float %23 None | |
| %28 = OpAccessChain %_ptr_Function_float %unsigned_literal %int_0 | |
| %29 = OpLoad %float %28 None | |
| %30 = OpFAdd %float %27 %29 | |
| %31 = OpAccessChain %_ptr_Function_float %signed_constant %int_0 | |
| %32 = OpLoad %float %31 None | |
| %33 = OpFAdd %float %30 %32 | |
| %34 = OpAccessChain %_ptr_Function_float %unsigned_constant %int_0 | |
| %35 = OpLoad %float %34 None | |
| %36 = OpFAdd %float %33 %35 | |
| %37 = OpAccessChain %_ptr_Function_float %shr_const_expr %int_0 | |
| %38 = OpLoad %float %37 None | |
| %39 = OpFAdd %float %36 %38 | |
| %40 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 | |
| OpStore %40 %39 None | |
| OpReturn | |
| OpFunctionEnd |