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