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