| ; SPIR-V |
| ; Version: 1.3 |
| ; Generator: Google Tint Compiler; 1 |
| ; Bound: 41 |
| ; Schema: 0 |
| OpCapability Shader |
| OpMemoryModel Logical GLSL450 |
| OpEntryPoint Fragment %main "main" |
| OpExecutionMode %main OriginUpperLeft |
| OpMemberName %s_block 0 "inner" |
| OpName %s_block "s_block" |
| 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 %s_block 0 Offset 0 |
| OpDecorate %s_block Block |
| OpDecorate %1 DescriptorSet 0 |
| OpDecorate %1 Binding 0 |
| OpDecorate %1 Coherent |
| %float = OpTypeFloat 32 |
| %s_block = OpTypeStruct %float |
| %_ptr_StorageBuffer_s_block = OpTypePointer StorageBuffer %s_block |
| %1 = OpVariable %_ptr_StorageBuffer_s_block 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 |
| %uint_0 = OpConstant %uint 0 |
| %_ptr_StorageBuffer_float = OpTypePointer StorageBuffer %float |
| %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 %uint_0 |
| %26 = OpLoad %float %23 None |
| %27 = OpAccessChain %_ptr_Function_float %unsigned_literal %uint_0 |
| %28 = OpLoad %float %27 None |
| %29 = OpFAdd %float %26 %28 |
| %30 = OpAccessChain %_ptr_Function_float %signed_constant %uint_0 |
| %31 = OpLoad %float %30 None |
| %32 = OpFAdd %float %29 %31 |
| %33 = OpAccessChain %_ptr_Function_float %unsigned_constant %uint_0 |
| %34 = OpLoad %float %33 None |
| %35 = OpFAdd %float %32 %34 |
| %36 = OpAccessChain %_ptr_Function_float %shr_const_expr %uint_0 |
| %37 = OpLoad %float %36 None |
| %38 = OpFAdd %float %35 %37 |
| %39 = OpAccessChain %_ptr_StorageBuffer_float %1 %uint_0 |
| OpStore %39 %38 None |
| OpReturn |
| OpFunctionEnd |