• 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 %64 RelaxedPrecision
29OpDecorate %67 RelaxedPrecision
30OpDecorate %68 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_n1_25 = OpConstant %float -1.25
55%44 = OpConstantComposite %v2float %float_n1_25 %float_0
56%v2bool = OpTypeVector %bool 2
57%float_0_75 = OpConstant %float 0.75
58%float_2_25 = OpConstant %float 2.25
59%53 = OpConstantComposite %v2float %float_0_75 %float_2_25
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%57 = 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 PackHalf2x16 %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 PackHalf2x16 %40
86OpStore %zw %37
87%42 = OpExtInst %v2float %1 UnpackHalf2x16 %29
88%45 = OpFOrdEqual %v2bool %42 %44
89%47 = OpAll %bool %45
90OpSelectionMerge %49 None
91OpBranchConditional %47 %48 %49
92%48 = OpLabel
93%50 = OpExtInst %v2float %1 UnpackHalf2x16 %37
94%54 = OpFOrdEqual %v2bool %50 %53
95%55 = OpAll %bool %54
96OpBranch %49
97%49 = OpLabel
98%56 = OpPhi %bool %false %25 %55 %48
99OpSelectionMerge %61 None
100OpBranchConditional %56 %59 %60
101%59 = OpLabel
102%62 = OpAccessChain %_ptr_Uniform_v4float %10 %int_0
103%64 = OpLoad %v4float %62
104OpStore %57 %64
105OpBranch %61
106%60 = OpLabel
107%65 = OpAccessChain %_ptr_Uniform_v4float %10 %int_1
108%67 = OpLoad %v4float %65
109OpStore %57 %67
110OpBranch %61
111%61 = OpLabel
112%68 = OpLoad %v4float %57
113OpReturnValue %68
114OpFunctionEnd
115