• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %main "main" %sk_Clockwise %sk_FragColor
5OpExecutionMode %main OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %s "s"
9OpName %_UniformBuffer "_UniformBuffer"
10OpMemberName %_UniformBuffer 0 "colorXform"
11OpName %main "main"
12OpName %tmpColor "tmpColor"
13OpDecorate %sk_Clockwise BuiltIn FrontFacing
14OpDecorate %sk_FragColor RelaxedPrecision
15OpDecorate %sk_FragColor Location 0
16OpDecorate %sk_FragColor Index 0
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%bool = OpTypeBool
28%_ptr_Input_bool = OpTypePointer Input %bool
29%sk_Clockwise = OpVariable %_ptr_Input_bool Input
30%float = OpTypeFloat 32
31%v4float = OpTypeVector %float 4
32%_ptr_Output_v4float = OpTypePointer Output %v4float
33%sk_FragColor = OpVariable %_ptr_Output_v4float Output
34%11 = OpTypeImage %float 2D 0 0 0 1 Unknown
35%12 = OpTypeSampledImage %11
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%float_1 = OpConstant %float 1
46%v2float = OpTypeVector %float 2
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%34 = OpConstantComposite %v4float %float_1 %float_0 %float_0 %float_0
53%35 = OpConstantComposite %v4float %float_0 %float_1 %float_0 %float_0
54%36 = OpConstantComposite %v4float %float_0 %float_0 %float_1 %float_0
55%37 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_1
56%38 = OpConstantComposite %mat4v4float %34 %35 %36 %37
57%v4bool = OpTypeVector %bool 4
58%v3float = OpTypeVector %float 3
59%70 = OpConstantComposite %v3float %float_0 %float_0 %float_0
60%main = OpFunction %void None %19
61%20 = OpLabel
62%tmpColor = OpVariable %_ptr_Function_v4float Function
63%55 = OpVariable %_ptr_Function_v4float Function
64%24 = OpLoad %12 %s
65%23 = OpImageSampleImplicitLod %v4float %24 %27
66OpStore %tmpColor %23
67%28 = OpAccessChain %_ptr_Uniform_mat4v4float %14 %int_0
68%32 = OpLoad %mat4v4float %28
69%40 = OpCompositeExtract %v4float %32 0
70%41 = OpFUnordNotEqual %v4bool %40 %34
71%42 = OpAny %bool %41
72%43 = OpCompositeExtract %v4float %32 1
73%44 = OpFUnordNotEqual %v4bool %43 %35
74%45 = OpAny %bool %44
75%46 = OpLogicalOr %bool %42 %45
76%47 = OpCompositeExtract %v4float %32 2
77%48 = OpFUnordNotEqual %v4bool %47 %36
78%49 = OpAny %bool %48
79%50 = OpLogicalOr %bool %46 %49
80%51 = OpCompositeExtract %v4float %32 3
81%52 = OpFUnordNotEqual %v4bool %51 %37
82%53 = OpAny %bool %52
83%54 = OpLogicalOr %bool %50 %53
84OpSelectionMerge %58 None
85OpBranchConditional %54 %56 %57
86%56 = OpLabel
87%60 = OpAccessChain %_ptr_Uniform_mat4v4float %14 %int_0
88%61 = OpLoad %mat4v4float %60
89%62 = OpVectorShuffle %v3float %23 %23 0 1 2
90%64 = OpCompositeExtract %float %62 0
91%65 = OpCompositeExtract %float %62 1
92%66 = OpCompositeExtract %float %62 2
93%67 = OpCompositeConstruct %v4float %64 %65 %66 %float_1
94%68 = OpMatrixTimesVector %v4float %61 %67
95%69 = OpVectorShuffle %v3float %68 %68 0 1 2
96%71 = OpCompositeExtract %float %23 3
97%72 = OpCompositeConstruct %v3float %71 %71 %71
98%59 = OpExtInst %v3float %1 FClamp %69 %70 %72
99%73 = OpCompositeExtract %float %59 0
100%74 = OpCompositeExtract %float %59 1
101%75 = OpCompositeExtract %float %59 2
102%76 = OpCompositeConstruct %v4float %73 %74 %75 %71
103OpStore %55 %76
104OpBranch %58
105%57 = OpLabel
106OpStore %55 %23
107OpBranch %58
108%58 = OpLabel
109%77 = OpLoad %v4float %55
110OpStore %sk_FragColor %77
111OpReturn
112OpFunctionEnd
113