1; SPIR-V 2; Version: 1.0 3; Generator: Khronos Glslang Reference Front End; 7 4; Bound: 39 5; Schema: 0 6 OpCapability Shader 7 %1 = OpExtInstImport "GLSL.std.450" 8 OpMemoryModel Logical GLSL450 9 OpEntryPoint Fragment %main "main" %FragColor 10 OpExecutionMode %main OriginUpperLeft 11 OpSource GLSL 450 12 OpDecorate %FragColor Location 0 13 OpMemberDecorate %SSBO 0 NonWritable 14 OpMemberDecorate %SSBO 0 Offset 0 15 OpDecorate %SSBO BufferBlock 16 OpDecorate %ssbos DescriptorSet 0 17 OpDecorate %ssbos Binding 5 18 OpMemberDecorate %Registers 0 Offset 0 19 OpDecorate %Registers Block 20 OpMemberDecorate %UBO 0 Offset 0 21 OpDecorate %UBO Block 22 OpDecorate %ubos DescriptorSet 0 23 OpDecorate %ubos Binding 1 24 %void = OpTypeVoid 25 %3 = OpTypeFunction %void 26 %float = OpTypeFloat 32 27 %v4float = OpTypeVector %float 4 28%_ptr_Output_v4float = OpTypePointer Output %v4float 29 %FragColor = OpVariable %_ptr_Output_v4float Output 30 %SSBO = OpTypeStruct %v4float 31 %uint = OpTypeInt 32 0 32 %uint_4 = OpConstant %uint 4 33%_arr_SSBO_uint_4 = OpTypeArray %SSBO %uint_4 34%_ptr_Uniform__arr_SSBO_uint_4 = OpTypePointer Uniform %_arr_SSBO_uint_4 35 %ssbos = OpVariable %_ptr_Uniform__arr_SSBO_uint_4 Uniform 36 %int = OpTypeInt 32 1 37 %Registers = OpTypeStruct %int 38%_ptr_PushConstant_Registers = OpTypePointer PushConstant %Registers 39 %registers = OpVariable %_ptr_PushConstant_Registers PushConstant 40 %int_0 = OpConstant %int 0 41%_ptr_PushConstant_int = OpTypePointer PushConstant %int 42%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float 43 %UBO = OpTypeStruct %v4float 44%_arr_UBO_uint_4 = OpTypeArray %UBO %uint_4 45%_ptr_Uniform__arr_UBO_uint_4 = OpTypePointer Uniform %_arr_UBO_uint_4 46 %ubos = OpVariable %_ptr_Uniform__arr_UBO_uint_4 Uniform 47%float_0_200000003 = OpConstant %float 0.200000003 48 %36 = OpConstantComposite %v4float %float_0_200000003 %float_0_200000003 %float_0_200000003 %float_0_200000003 49 %main = OpFunction %void None %3 50 %5 = OpLabel 51 %22 = OpAccessChain %_ptr_PushConstant_int %registers %int_0 52 %23 = OpLoad %int %22 53 %25 = OpAccessChain %_ptr_Uniform_v4float %ssbos %23 %int_0 54 %26 = OpLoad %v4float %25 55 %31 = OpAccessChain %_ptr_PushConstant_int %registers %int_0 56 %32 = OpLoad %int %31 57 %33 = OpAccessChain %_ptr_Uniform_v4float %ubos %32 %int_0 58 %34 = OpLoad %v4float %33 59 %37 = OpFMul %v4float %34 %36 60 %38 = OpFAdd %v4float %26 %37 61 OpStore %FragColor %38 62 OpReturn 63 OpFunctionEnd 64