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