blob: e7e836bc4388afaa26af1c3461b3012653cd8e27 [file] [log] [blame]
Alastair Donaldsonf7e73d42021-07-23 13:10:12 +00001 OpCapability Shader
2 %1 = OpExtInstImport "GLSL.std.450"
3 OpMemoryModel Logical GLSL450
4 OpEntryPoint Fragment %main "main" %_GLF_color
5 OpExecutionMode %main OriginUpperLeft
6 OpSource ESSL 310
7 OpName %main "main"
8 OpName %GLF_live9r "GLF_live9r"
9 OpName %g "g"
10 OpName %_GLF_color "_GLF_color"
11 OpDecorate %_GLF_color Location 0
12 %void = OpTypeVoid
13 %7 = OpTypeFunction %void
14 %bool = OpTypeBool
15 %true = OpConstantTrue %bool
16 %float = OpTypeFloat 32
17 %v2float = OpTypeVector %float 2
18 %float_1 = OpConstant %float 1
19 %13 = OpConstantComposite %v2float %float_1 %float_1
20 %int = OpTypeInt 32 1
21%_ptr_Function_int = OpTypePointer Function %int
22 %int_0 = OpConstant %int 0
23 %int_1 = OpConstant %int 1
24%_ptr_Function_float = OpTypePointer Function %float
25 %float_3 = OpConstant %float 3
26 %v4float = OpTypeVector %float 4
27%_ptr_Output_v4float = OpTypePointer Output %v4float
28 %_GLF_color = OpVariable %_ptr_Output_v4float Output
29 %float_0 = OpConstant %float 0
30 %main = OpFunction %void None %7
31 %23 = OpLabel
32 %GLF_live9r = OpVariable %_ptr_Function_int Function
33 %g = OpVariable %_ptr_Function_float Function
34 OpBranch %24
35 %24 = OpLabel
36 OpLoopMerge %25 %26 None
37 OpBranch %27
38 %27 = OpLabel
39 OpBranchConditional %true %28 %25
40 %28 = OpLabel
41 OpSelectionMerge %29 None
42 OpBranchConditional %true %30 %29
43 %30 = OpLabel
44 OpBranch %25
45 %29 = OpLabel
46 %31 = OpLoad %int %GLF_live9r
47 %32 = OpExtInst %int %1 SClamp %31 %int_0 %int_1
48 OpBranch %26
49 %26 = OpLabel
50 OpBranch %24
51 %25 = OpLabel
52 OpStore %g %float_3
53 %33 = OpLoad %float %g
54 %34 = OpExtInst %float %1 SmoothStep %float_0 %float_1 %33
55 %35 = OpCompositeConstruct %v4float %34 %float_0 %float_0 %float_1
56 OpStore %_GLF_color %35
57 OpReturn
58 OpFunctionEnd