• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_FragColor %sk_Clockwise
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %main "main"
9OpName %sksl_synthetic_uniforms "sksl_synthetic_uniforms"
10OpMemberName %sksl_synthetic_uniforms 0 "u_skRTFlip"
11OpDecorate %sk_FragColor RelaxedPrecision
12OpDecorate %sk_FragColor Location 0
13OpDecorate %sk_FragColor Index 0
14OpDecorate %sk_Clockwise BuiltIn FrontFacing
15OpMemberDecorate %sksl_synthetic_uniforms 0 Offset 16384
16OpDecorate %sksl_synthetic_uniforms Block
17OpDecorate %13 Binding 0
18OpDecorate %13 DescriptorSet 0
19OpDecorate %31 RelaxedPrecision
20OpDecorate %32 RelaxedPrecision
21OpDecorate %37 RelaxedPrecision
22OpDecorate %38 RelaxedPrecision
23%float = OpTypeFloat 32
24%v4float = OpTypeVector %float 4
25%_ptr_Output_v4float = OpTypePointer Output %v4float
26%sk_FragColor = OpVariable %_ptr_Output_v4float Output
27%bool = OpTypeBool
28%_ptr_Input_bool = OpTypePointer Input %bool
29%sk_Clockwise = OpVariable %_ptr_Input_bool Input
30%void = OpTypeVoid
31%11 = OpTypeFunction %void
32%v2float = OpTypeVector %float 2
33%sksl_synthetic_uniforms = OpTypeStruct %v2float
34%_ptr_Uniform_sksl_synthetic_uniforms = OpTypePointer Uniform %sksl_synthetic_uniforms
35%13 = OpVariable %_ptr_Uniform_sksl_synthetic_uniforms Uniform
36%int = OpTypeInt 32 1
37%int_0 = OpConstant %int 0
38%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
39%float_0 = OpConstant %float 0
40%_ptr_Function_bool = OpTypePointer Function %bool
41%int_1 = OpConstant %int 1
42%int_n1 = OpConstant %int -1
43%main = OpFunction %void None %11
44%12 = OpLabel
45%25 = OpVariable %_ptr_Function_bool Function
46%19 = OpAccessChain %_ptr_Uniform_v2float %13 %int_0
47%21 = OpLoad %v2float %19
48%22 = OpCompositeExtract %float %21 1
49%24 = OpFOrdGreaterThan %bool %22 %float_0
50OpSelectionMerge %29 None
51OpBranchConditional %24 %27 %28
52%27 = OpLabel
53%31 = OpLoad %bool %sk_Clockwise
54%30 = OpLogicalNot %bool %31
55OpStore %25 %30
56OpBranch %29
57%28 = OpLabel
58%32 = OpLoad %bool %sk_Clockwise
59OpStore %25 %32
60OpBranch %29
61%29 = OpLabel
62%33 = OpLoad %bool %25
63%34 = OpSelect %int %33 %int_1 %int_n1
64%37 = OpConvertSToF %float %34
65%38 = OpCompositeConstruct %v4float %37 %37 %37 %37
66OpStore %sk_FragColor %38
67OpReturn
68OpFunctionEnd
69