blob: cd1d6d52e1f8ffb2939e679ea5c0143bce8adfb6 [file] [log] [blame]
OpCapability Shader
%1 = OpExtInstImport "GLSL.std.450"
OpMemoryModel Logical GLSL450
OpEntryPoint Fragment %4 "main" %8 %44
OpExecutionMode %4 OriginUpperLeft
OpSource ESSL 310
OpName %4 "main"
OpName %8 "v"
OpName %44 "color"
OpDecorate %8 RelaxedPrecision
OpDecorate %8 Location 0
OpDecorate %9 RelaxedPrecision
OpDecorate %18 RelaxedPrecision
OpDecorate %19 RelaxedPrecision
OpDecorate %20 RelaxedPrecision
OpDecorate %21 RelaxedPrecision
OpDecorate %22 RelaxedPrecision
OpDecorate %24 RelaxedPrecision
OpDecorate %25 RelaxedPrecision
OpDecorate %26 RelaxedPrecision
OpDecorate %27 RelaxedPrecision
OpDecorate %29 RelaxedPrecision
OpDecorate %30 RelaxedPrecision
OpDecorate %31 RelaxedPrecision
OpDecorate %34 RelaxedPrecision
OpDecorate %35 RelaxedPrecision
OpDecorate %36 RelaxedPrecision
OpDecorate %37 RelaxedPrecision
OpDecorate %38 RelaxedPrecision
OpDecorate %39 RelaxedPrecision
OpDecorate %40 RelaxedPrecision
OpDecorate %41 RelaxedPrecision
OpDecorate %42 RelaxedPrecision
OpDecorate %44 RelaxedPrecision
OpDecorate %44 Location 0
OpDecorate %45 RelaxedPrecision
%2 = OpTypeVoid
%3 = OpTypeFunction %2
%6 = OpTypeFloat 32
%7 = OpTypePointer Input %6
%8 = OpVariable %7 Input
%10 = OpConstant %6 0
%11 = OpTypeBool
%15 = OpTypeVector %6 4
%16 = OpTypePointer Function %15
%23 = OpConstant %6 0.5
%32 = OpConstant %6 -0.5
%33 = OpConstant %6 -0.300000012
%43 = OpTypePointer Output %15
%44 = OpVariable %43 Output
%4 = OpFunction %2 None %3
%5 = OpLabel
%9 = OpLoad %6 %8
%12 = OpFOrdLessThanEqual %11 %9 %10
OpSelectionMerge %14 None
OpBranchConditional %12 %28 %13
%13 = OpLabel
%18 = OpLoad %6 %8
%19 = OpExtInst %6 %1 Sqrt %18
%20 = OpLoad %6 %8
%21 = OpExtInst %6 %1 FSign %20
%22 = OpLoad %6 %8
%24 = OpExtInst %6 %1 FMax %22 %23
%25 = OpLoad %6 %8
%26 = OpExtInst %6 %1 Floor %25
%27 = OpCompositeConstruct %15 %19 %21 %24 %26
OpBranch %14
%28 = OpLabel
%29 = OpLoad %6 %8
%30 = OpExtInst %6 %1 Log %29
%31 = OpLoad %6 %8
%34 = OpExtInst %6 %1 FClamp %31 %32 %33
%35 = OpFMul %6 %30 %34
%36 = OpLoad %6 %8
%37 = OpExtInst %6 %1 Sin %36
%38 = OpLoad %6 %8
%39 = OpExtInst %6 %1 Cos %38
%40 = OpLoad %6 %8
%41 = OpExtInst %6 %1 Exp %40
%42 = OpCompositeConstruct %15 %35 %37 %39 %41
OpBranch %14
%14 = OpLabel
%45 = OpPhi %15 %27 %13 %42 %28
OpStore %44 %45
OpReturn
OpFunctionEnd