• 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 %_UniformBuffer "_UniformBuffer"
9OpMemberName %_UniformBuffer 0 "ah"
10OpMemberName %_UniformBuffer 1 "bh"
11OpMemberName %_UniformBuffer 2 "af"
12OpMemberName %_UniformBuffer 3 "bf"
13OpName %cross_length_2d_ff2f2 "cross_length_2d_ff2f2"
14OpName %cross_length_2d_hh2h2 "cross_length_2d_hh2h2"
15OpName %main "main"
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 8
23OpMemberDecorate %_UniformBuffer 1 RelaxedPrecision
24OpMemberDecorate %_UniformBuffer 2 Offset 16
25OpMemberDecorate %_UniformBuffer 3 Offset 24
26OpDecorate %_UniformBuffer Block
27OpDecorate %12 Binding 0
28OpDecorate %12 DescriptorSet 0
29OpDecorate %29 RelaxedPrecision
30OpDecorate %30 RelaxedPrecision
31OpDecorate %31 RelaxedPrecision
32OpDecorate %32 RelaxedPrecision
33OpDecorate %40 RelaxedPrecision
34OpDecorate %44 RelaxedPrecision
35%bool = OpTypeBool
36%_ptr_Input_bool = OpTypePointer Input %bool
37%sk_Clockwise = OpVariable %_ptr_Input_bool Input
38%float = OpTypeFloat 32
39%v4float = OpTypeVector %float 4
40%_ptr_Output_v4float = OpTypePointer Output %v4float
41%sk_FragColor = OpVariable %_ptr_Output_v4float Output
42%v2float = OpTypeVector %float 2
43%_UniformBuffer = OpTypeStruct %v2float %v2float %v2float %v2float
44%_ptr_Uniform__UniformBuffer = OpTypePointer Uniform %_UniformBuffer
45%12 = OpVariable %_ptr_Uniform__UniformBuffer Uniform
46%_ptr_Function_v2float = OpTypePointer Function %v2float
47%17 = OpTypeFunction %float %_ptr_Function_v2float %_ptr_Function_v2float
48%mat2v2float = OpTypeMatrix %v2float 2
49%void = OpTypeVoid
50%34 = OpTypeFunction %void
51%_ptr_Uniform_v2float = OpTypePointer Uniform %v2float
52%int = OpTypeInt 32 1
53%int_0 = OpConstant %int 0
54%int_1 = OpConstant %int 1
55%_ptr_Output_float = OpTypePointer Output %float
56%int_2 = OpConstant %int 2
57%int_3 = OpConstant %int 3
58%cross_length_2d_ff2f2 = OpFunction %float None %17
59%18 = OpFunctionParameter %_ptr_Function_v2float
60%19 = OpFunctionParameter %_ptr_Function_v2float
61%20 = OpLabel
62%22 = OpLoad %v2float %18
63%23 = OpLoad %v2float %19
64%25 = OpCompositeConstruct %mat2v2float %22 %23
65%21 = OpExtInst %float %1 Determinant %25
66OpReturnValue %21
67OpFunctionEnd
68%cross_length_2d_hh2h2 = OpFunction %float None %17
69%26 = OpFunctionParameter %_ptr_Function_v2float
70%27 = OpFunctionParameter %_ptr_Function_v2float
71%28 = OpLabel
72%30 = OpLoad %v2float %26
73%31 = OpLoad %v2float %27
74%32 = OpCompositeConstruct %mat2v2float %30 %31
75%29 = OpExtInst %float %1 Determinant %32
76OpReturnValue %29
77OpFunctionEnd
78%main = OpFunction %void None %34
79%35 = OpLabel
80%41 = OpVariable %_ptr_Function_v2float Function
81%45 = OpVariable %_ptr_Function_v2float Function
82%52 = OpVariable %_ptr_Function_v2float Function
83%56 = OpVariable %_ptr_Function_v2float Function
84%36 = OpAccessChain %_ptr_Uniform_v2float %12 %int_0
85%40 = OpLoad %v2float %36
86OpStore %41 %40
87%42 = OpAccessChain %_ptr_Uniform_v2float %12 %int_1
88%44 = OpLoad %v2float %42
89OpStore %45 %44
90%46 = OpFunctionCall %float %cross_length_2d_hh2h2 %41 %45
91%47 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_0
92OpStore %47 %46
93%49 = OpAccessChain %_ptr_Uniform_v2float %12 %int_2
94%51 = OpLoad %v2float %49
95OpStore %52 %51
96%53 = OpAccessChain %_ptr_Uniform_v2float %12 %int_3
97%55 = OpLoad %v2float %53
98OpStore %56 %55
99%57 = OpFunctionCall %float %cross_length_2d_ff2f2 %52 %56
100%58 = OpAccessChain %_ptr_Output_float %sk_FragColor %int_1
101OpStore %58 %57
102OpReturn
103OpFunctionEnd
104