• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_FragColor %sk_Clockwise
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_FragColor "sk_FragColor"
7OpName %sk_Clockwise "sk_Clockwise"
8OpName %_entrypoint_v "_entrypoint_v"
9OpName %main "main"
10OpName %rgb "rgb"
11OpName %a "a"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpDecorate %rgb RelaxedPrecision
17OpDecorate %_arr_float_int_3 ArrayStride 16
18OpDecorate %a RelaxedPrecision
19OpDecorate %38 RelaxedPrecision
20OpDecorate %40 RelaxedPrecision
21OpDecorate %42 RelaxedPrecision
22OpDecorate %43 RelaxedPrecision
23OpDecorate %44 RelaxedPrecision
24%float = OpTypeFloat 32
25%v4float = OpTypeVector %float 4
26%_ptr_Output_v4float = OpTypePointer Output %v4float
27%sk_FragColor = OpVariable %_ptr_Output_v4float Output
28%bool = OpTypeBool
29%_ptr_Input_bool = OpTypePointer Input %bool
30%sk_Clockwise = OpVariable %_ptr_Input_bool Input
31%void = OpTypeVoid
32%12 = OpTypeFunction %void
33%v2float = OpTypeVector %float 2
34%float_0 = OpConstant %float 0
35%16 = OpConstantComposite %v2float %float_0 %float_0
36%_ptr_Function_v2float = OpTypePointer Function %v2float
37%20 = OpTypeFunction %v4float %_ptr_Function_v2float
38%int = OpTypeInt 32 1
39%int_3 = OpConstant %int 3
40%_arr_float_int_3 = OpTypeArray %float %int_3
41%_ptr_Function__arr_float_int_3 = OpTypePointer Function %_arr_float_int_3
42%_ptr_Function_float = OpTypePointer Function %float
43%int_0 = OpConstant %int 0
44%float_1 = OpConstant %float 1
45%int_1 = OpConstant %int 1
46%int_2 = OpConstant %int 2
47%_entrypoint_v = OpFunction %void None %12
48%13 = OpLabel
49%17 = OpVariable %_ptr_Function_v2float Function
50OpStore %17 %16
51%19 = OpFunctionCall %v4float %main %17
52OpStore %sk_FragColor %19
53OpReturn
54OpFunctionEnd
55%main = OpFunction %v4float None %20
56%21 = OpFunctionParameter %_ptr_Function_v2float
57%22 = OpLabel
58%rgb = OpVariable %_ptr_Function__arr_float_int_3 Function
59%a = OpVariable %_ptr_Function_float Function
60%31 = OpAccessChain %_ptr_Function_float %rgb %int_0
61OpStore %31 %float_0
62%34 = OpAccessChain %_ptr_Function_float %rgb %int_1
63OpStore %34 %float_1
64%36 = OpAccessChain %_ptr_Function_float %rgb %int_2
65OpStore %36 %float_0
66OpStore %a %float_1
67%37 = OpAccessChain %_ptr_Function_float %rgb %int_0
68%38 = OpLoad %float %37
69%39 = OpAccessChain %_ptr_Function_float %rgb %int_1
70%40 = OpLoad %float %39
71%41 = OpAccessChain %_ptr_Function_float %rgb %int_2
72%42 = OpLoad %float %41
73%43 = OpLoad %float %a
74%44 = OpCompositeConstruct %v4float %38 %40 %42 %43
75OpReturnValue %44
76OpFunctionEnd
77