blob: 2fe322f5d7ac5b2f77bf89723b95b717d3198200 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %main "main" %_GLF_color
OpExecutionMode %main OriginUpperLeft
OpSource ESSL 320
OpName %main "main"
OpName %v "v"
OpName %buf0 "buf0"
OpMemberName %buf0 0 "_GLF_uniform_float_values"
OpName %_ ""
OpName %_GLF_color "_GLF_color"
OpName %buf1 "buf1"
OpMemberName %buf1 0 "_GLF_uniform_int_values"
OpName %__0 ""
OpDecorate %_arr_float_uint_1 ArrayStride 16
OpMemberDecorate %buf0 0 Offset 0
OpDecorate %buf0 Block
OpDecorate %_ DescriptorSet 0
OpDecorate %_ Binding 0
OpDecorate %_GLF_color Location 0
OpDecorate %_arr_int_uint_1 ArrayStride 16
OpMemberDecorate %buf1 0 Offset 0
OpDecorate %buf1 Block
OpDecorate %__0 DescriptorSet 0
OpDecorate %__0 Binding 1
%void = OpTypeVoid
%12 = OpTypeFunction %void
%float = OpTypeFloat 32
%v4float = OpTypeVector %float 4
%_ptr_Function_v4float = OpTypePointer Function %v4float
%float_1 = OpConstant %float 1
%17 = OpConstantComposite %v4float %float_1 %float_1 %float_1 %float_1
%uint = OpTypeInt 32 0
%uint_1 = OpConstant %uint 1
%_arr_float_uint_1 = OpTypeArray %float %uint_1
%buf0 = OpTypeStruct %_arr_float_uint_1
%_ptr_Uniform_buf0 = OpTypePointer Uniform %buf0
%_ = OpVariable %_ptr_Uniform_buf0 Uniform
%int = OpTypeInt 32 1
%int_0 = OpConstant %int 0
%_ptr_Uniform_float = OpTypePointer Uniform %float
%_ptr_Output_v4float = OpTypePointer Output %v4float
%_GLF_color = OpVariable %_ptr_Output_v4float Output
%uint_0 = OpConstant %uint 0
%_ptr_Function_float = OpTypePointer Function %float
%_arr_int_uint_1 = OpTypeArray %int %uint_1
%buf1 = OpTypeStruct %_arr_int_uint_1
%_ptr_Uniform_buf1 = OpTypePointer Uniform %buf1
%__0 = OpVariable %_ptr_Uniform_buf1 Uniform
%_ptr_Uniform_int = OpTypePointer Uniform %int
%uint_2 = OpConstant %uint 2
%main = OpFunction %void None %12
%30 = OpLabel
%v = OpVariable %_ptr_Function_v4float Function
%31 = OpExtInst %v4float %1 Cosh %17
%32 = OpAccessChain %_ptr_Uniform_float %_ %int_0 %int_0
%33 = OpLoad %float %32
%34 = OpCompositeConstruct %v4float %33 %33 %33 %33
%35 = OpCompositeConstruct %v4float %float_1 %float_1 %float_1 %float_1
%36 = OpExtInst %v4float %1 FClamp %31 %34 %35
OpStore %v %36
%37 = OpAccessChain %_ptr_Function_float %v %uint_0
%38 = OpLoad %float %37
%39 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%40 = OpLoad %int %39
%41 = OpConvertSToF %float %40
%42 = OpAccessChain %_ptr_Uniform_int %__0 %int_0 %int_0
%43 = OpLoad %int %42
%44 = OpConvertSToF %float %43
%45 = OpAccessChain %_ptr_Function_float %v %uint_2
%46 = OpLoad %float %45
%47 = OpCompositeConstruct %v4float %38 %41 %44 %46
OpStore %_GLF_color %47
OpReturn
OpFunctionEnd