• 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 %s "s"
9OpName %_UniformBuffer "_UniformBuffer"
10OpMemberName %_UniformBuffer 0 "colorXform"
11OpName %main "main"
12OpName %tmpColor "tmpColor"
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpDecorate %s RelaxedPrecision
18OpDecorate %s Binding 0
19OpDecorate %s DescriptorSet 0
20OpMemberDecorate %_UniformBuffer 0 DescriptorSet 0
21OpMemberDecorate %_UniformBuffer 0 Offset 0
22OpMemberDecorate %_UniformBuffer 0 ColMajor
23OpMemberDecorate %_UniformBuffer 0 MatrixStride 16
24OpDecorate %_UniformBuffer Block
25OpDecorate %14 Binding 0
26OpDecorate %14 DescriptorSet 0
27OpDecorate %24 RelaxedPrecision
28%float = OpTypeFloat 32
29%v4float = OpTypeVector %float 4
30%_ptr_Output_v4float = OpTypePointer Output %v4float
31%sk_FragColor = OpVariable %_ptr_Output_v4float Output
32%bool = OpTypeBool
33%_ptr_Input_bool = OpTypePointer Input %bool
34%sk_Clockwise = OpVariable %_ptr_Input_bool Input
35%13 = OpTypeImage %float 2D 0 0 0 1 Unknown
36%12 = OpTypeSampledImage %13
37%_ptr_UniformConstant_12 = OpTypePointer UniformConstant %12
38%s = OpVariable %_ptr_UniformConstant_12 UniformConstant
39%mat4v4float = OpTypeMatrix %v4float 4
40%_UniformBuffer = OpTypeStruct %mat4v4float
41%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
42%14 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
43%void = OpTypeVoid
44%19 = OpTypeFunction %void
45%_ptr_Function_v4float = OpTypePointer Function %v4float
46%v2float = OpTypeVector %float 2
47%float_1 = OpConstant %float 1
48%27 = OpConstantComposite %v2float %float_1 %float_1
49%_ptr_Uniform_mat4v4float = OpTypePointer Uniform %mat4v4float
50%int = OpTypeInt 32 1
51%int_0 = OpConstant %int 0
52%float_0 = OpConstant %float 0
53%v4bool = OpTypeVector %bool 4
54%v3float = OpTypeVector %float 3
55%main = OpFunction %void None %19
56%20 = OpLabel
57%tmpColor = OpVariable %_ptr_Function_v4float Function
58%59 = OpVariable %_ptr_Function_v4float Function
59%24 = OpLoad %12 %s
60%23 = OpImageSampleImplicitLod %v4float %24 %27
61OpStore %tmpColor %23
62%28 = OpAccessChain %_ptr_Uniform_mat4v4float %14 %int_0
63%32 = OpLoad %mat4v4float %28
64%35 = OpCompositeConstruct %v4float %float_1 %float_0 %float_0 %float_0
65%36 = OpCompositeConstruct %v4float %float_0 %float_1 %float_0 %float_0
66%37 = OpCompositeConstruct %v4float %float_0 %float_0 %float_1 %float_0
67%38 = OpCompositeConstruct %v4float %float_0 %float_0 %float_0 %float_1
68%33 = OpCompositeConstruct %mat4v4float %35 %36 %37 %38
69%40 = OpCompositeExtract %v4float %32 0
70%41 = OpCompositeExtract %v4float %33 0
71%42 = OpFOrdNotEqual %v4bool %40 %41
72%43 = OpAny %bool %42
73%44 = OpCompositeExtract %v4float %32 1
74%45 = OpCompositeExtract %v4float %33 1
75%46 = OpFOrdNotEqual %v4bool %44 %45
76%47 = OpAny %bool %46
77%48 = OpLogicalOr %bool %43 %47
78%49 = OpCompositeExtract %v4float %32 2
79%50 = OpCompositeExtract %v4float %33 2
80%51 = OpFOrdNotEqual %v4bool %49 %50
81%52 = OpAny %bool %51
82%53 = OpLogicalOr %bool %48 %52
83%54 = OpCompositeExtract %v4float %32 3
84%55 = OpCompositeExtract %v4float %33 3
85%56 = OpFOrdNotEqual %v4bool %54 %55
86%57 = OpAny %bool %56
87%58 = OpLogicalOr %bool %53 %57
88OpSelectionMerge %62 None
89OpBranchConditional %58 %60 %61
90%60 = OpLabel
91%64 = OpAccessChain %_ptr_Uniform_mat4v4float %14 %int_0
92%65 = OpLoad %mat4v4float %64
93%66 = OpLoad %v4float %tmpColor
94%67 = OpVectorShuffle %v3float %66 %66 0 1 2
95%69 = OpCompositeExtract %float %67 0
96%70 = OpCompositeExtract %float %67 1
97%71 = OpCompositeExtract %float %67 2
98%72 = OpCompositeConstruct %v4float %69 %70 %71 %float_1
99%73 = OpMatrixTimesVector %v4float %65 %72
100%74 = OpVectorShuffle %v3float %73 %73 0 1 2
101%75 = OpCompositeConstruct %v3float %float_0 %float_0 %float_0
102%76 = OpLoad %v4float %tmpColor
103%77 = OpCompositeExtract %float %76 3
104%78 = OpCompositeConstruct %v3float %77 %77 %77
105%63 = OpExtInst %v3float %1 FClamp %74 %75 %78
106%79 = OpCompositeExtract %float %63 0
107%80 = OpCompositeExtract %float %63 1
108%81 = OpCompositeExtract %float %63 2
109%82 = OpLoad %v4float %tmpColor
110%83 = OpCompositeExtract %float %82 3
111%84 = OpCompositeConstruct %v4float %79 %80 %81 %83
112OpStore %59 %84
113OpBranch %62
114%61 = OpLabel
115%85 = OpLoad %v4float %tmpColor
116OpStore %59 %85
117OpBranch %62
118%62 = OpLabel
119%86 = OpLoad %v4float %59
120OpStore %sk_FragColor %86
121OpReturn
122OpFunctionEnd
123