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