• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1OpCapability Shader
2%1 = OpExtInstImport "GLSL.std.450"
3OpMemoryModel Logical GLSL450
4OpEntryPoint Fragment %_entrypoint_v "_entrypoint" %sk_Clockwise %sk_FragColor
5OpExecutionMode %_entrypoint_v OriginUpperLeft
6OpName %sk_Clockwise "sk_Clockwise"
7OpName %sk_FragColor "sk_FragColor"
8OpName %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "colorGreen"
10OpMemberName %_UniformBuffer 1 "colorRed"
11OpMemberName %_UniformBuffer 2 "testInputs"
12OpName %_entrypoint_v "_entrypoint_v"
13OpName %main "main"
14OpName %xy "xy"
15OpName %zw "zw"
16OpDecorate %sk_Clockwise BuiltIn FrontFacing
17OpDecorate %sk_FragColor RelaxedPrecision
18OpDecorate %sk_FragColor Location 0
19OpDecorate %sk_FragColor Index 0
20OpMemberDecorate %_UniformBuffer 0 Offset 0
21OpMemberDecorate %_UniformBuffer 0 RelaxedPrecision
22OpMemberDecorate %_UniformBuffer 1 Offset 16
23OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
24OpMemberDecorate %_UniformBuffer 2 Offset 32
25OpDecorate %_UniformBuffer Block
26OpDecorate %10 Binding 0
27OpDecorate %10 DescriptorSet 0
28OpDecorate %67 RelaxedPrecision
29OpDecorate %70 RelaxedPrecision
30OpDecorate %71 RelaxedPrecision
31%bool = OpTypeBool
32%_ptr_Input_bool = OpTypePointer Input %bool
33%sk_Clockwise = OpVariable %_ptr_Input_bool Input
34%float = OpTypeFloat 32
35%v4float = OpTypeVector %float 4
36%_ptr_Output_v4float = OpTypePointer Output %v4float
37%sk_FragColor = OpVariable %_ptr_Output_v4float Output
38%_UniformBuffer = OpTypeStruct %v4float %v4float %v4float
39%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
40%10 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
41%void = OpTypeVoid
42%15 = OpTypeFunction %void
43%float_0 = OpConstant %float 0
44%v2float = OpTypeVector %float 2
45%19 = OpConstantComposite %v2float %float_0 %float_0
46%_ptr_Function_v2float = OpTypePointer Function %v2float
47%23 = OpTypeFunction %v4float %_ptr_Function_v2float
48%uint = OpTypeInt 32 0
49%_ptr_Function_uint = OpTypePointer Function %uint
50%_ptr_Uniform_v4float = OpTypePointer Uniform %v4float
51%int = OpTypeInt 32 1
52%int_2 = OpConstant %int 2
53%false = OpConstantFalse %bool
54%float_0_015625 = OpConstant %float 0.015625
55%47 = OpConstantComposite %v2float %float_0_015625 %float_0_015625
56%v2bool = OpTypeVector %bool 2
57%float_0_75 = OpConstant %float 0.75
58%float_1 = OpConstant %float 1
59%57 = OpConstantComposite %v2float %float_0_75 %float_1
60%_ptr_Function_v4float = OpTypePointer Function %v4float
61%int_0 = OpConstant %int 0
62%int_1 = OpConstant %int 1
63%_entrypoint_v = OpFunction %void None %15
64%16 = OpLabel
65%20 = OpVariable %_ptr_Function_v2float Function
66OpStore %20 %19
67%22 = OpFunctionCall %v4float %main %20
68OpStore %sk_FragColor %22
69OpReturn
70OpFunctionEnd
71%main = OpFunction %v4float None %23
72%24 = OpFunctionParameter %_ptr_Function_v2float
73%25 = OpLabel
74%xy = OpVariable %_ptr_Function_uint Function
75%zw = OpVariable %_ptr_Function_uint Function
76%60 = OpVariable %_ptr_Function_v4float Function
77%30 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
78%34 = OpLoad %v4float %30
79%35 = OpVectorShuffle %v2float %34 %34 0 1
80%29 = OpExtInst %uint %1 PackUnorm2x16 %35
81OpStore %xy %29
82%38 = OpAccessChain %_ptr_Uniform_v4float %10 %int_2
83%39 = OpLoad %v4float %38
84%40 = OpVectorShuffle %v2float %39 %39 2 3
85%37 = OpExtInst %uint %1 PackUnorm2x16 %40
86OpStore %zw %37
87%45 = OpExtInst %v2float %1 UnpackUnorm2x16 %29
88%44 = OpExtInst %v2float %1 FAbs %45
89%43 = OpFOrdLessThan %v2bool %44 %47
90%42 = OpAll %bool %43
91OpSelectionMerge %50 None
92OpBranchConditional %42 %49 %50
93%49 = OpLabel
94%54 = OpExtInst %v2float %1 UnpackUnorm2x16 %37
95%58 = OpFSub %v2float %54 %57
96%53 = OpExtInst %v2float %1 FAbs %58
97%52 = OpFOrdLessThan %v2bool %53 %47
98%51 = OpAll %bool %52
99OpBranch %50
100%50 = OpLabel
101%59 = OpPhi %bool %false %25 %51 %49
102OpSelectionMerge %64 None
103OpBranchConditional %59 %62 %63
104%62 = OpLabel
105%65 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
106%67 = OpLoad %v4float %65
107OpStore %60 %67
108OpBranch %64
109%63 = OpLabel
110%68 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
111%70 = OpLoad %v4float %68
112OpStore %60 %70
113OpBranch %64
114%64 = OpLabel
115%71 = OpLoad %v4float %60
116OpReturnValue %71
117OpFunctionEnd
118