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