• 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 %x "x"
11OpName %y "y"
12OpDecorate %sk_FragColor RelaxedPrecision
13OpDecorate %sk_FragColor Location 0
14OpDecorate %sk_FragColor Index 0
15OpDecorate %sk_Clockwise BuiltIn FrontFacing
16OpDecorate %x RelaxedPrecision
17OpDecorate %29 RelaxedPrecision
18OpDecorate %30 RelaxedPrecision
19OpDecorate %31 RelaxedPrecision
20OpDecorate %33 RelaxedPrecision
21OpDecorate %34 RelaxedPrecision
22OpDecorate %35 RelaxedPrecision
23OpDecorate %36 RelaxedPrecision
24OpDecorate %37 RelaxedPrecision
25OpDecorate %38 RelaxedPrecision
26OpDecorate %39 RelaxedPrecision
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%bool = OpTypeBool
32%_ptr_Input_bool = OpTypePointer Input %bool
33%sk_Clockwise = OpVariable %_ptr_Input_bool Input
34%void = OpTypeVoid
35%12 = OpTypeFunction %void
36%v2float = OpTypeVector %float 2
37%float_0 = OpConstant %float 0
38%16 = OpConstantComposite %v2float %float_0 %float_0
39%_ptr_Function_v2float = OpTypePointer Function %v2float
40%20 = OpTypeFunction %v4float %_ptr_Function_v2float
41%mat2v2float = OpTypeMatrix %v2float 2
42%_ptr_Function_mat2v2float = OpTypePointer Function %mat2v2float
43%float_1 = OpConstant %float 1
44%float_2 = OpConstant %float 2
45%float_3 = OpConstant %float 3
46%_entrypoint_v = OpFunction %void None %12
47%13 = OpLabel
48%17 = OpVariable %_ptr_Function_v2float Function
49OpStore %17 %16
50%19 = OpFunctionCall %v4float %main %17
51OpStore %sk_FragColor %19
52OpReturn
53OpFunctionEnd
54%main = OpFunction %v4float None %20
55%21 = OpFunctionParameter %_ptr_Function_v2float
56%22 = OpLabel
57%x = OpVariable %_ptr_Function_mat2v2float Function
58%y = OpVariable %_ptr_Function_v2float Function
59%29 = OpCompositeConstruct %v2float %float_0 %float_1
60%30 = OpCompositeConstruct %v2float %float_2 %float_3
61%31 = OpCompositeConstruct %mat2v2float %29 %30
62OpStore %x %31
63%33 = OpLoad %mat2v2float %x
64%34 = OpCompositeExtract %float %33 0 0
65%35 = OpCompositeExtract %float %33 0 1
66%36 = OpCompositeExtract %float %33 1 0
67%37 = OpCompositeExtract %float %33 1 1
68%38 = OpCompositeConstruct %v4float %34 %35 %36 %37
69%39 = OpVectorShuffle %v2float %38 %38 0 1
70OpStore %y %39
71%40 = OpLoad %v2float %y
72%41 = OpVectorShuffle %v4float %40 %40 0 1 0 1
73OpReturnValue %41
74OpFunctionEnd
75