• 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 %_entrypoint_v "_entrypoint_v"
9OpName %main "main"
10OpName %m44 "m44"
11OpName %v4 "v4"
12OpDecorate %sk_Clockwise BuiltIn FrontFacing
13OpDecorate %sk_FragColor RelaxedPrecision
14OpDecorate %sk_FragColor Location 0
15OpDecorate %sk_FragColor Index 0
16OpDecorate %m44 RelaxedPrecision
17OpDecorate %v4 RelaxedPrecision
18OpDecorate %36 RelaxedPrecision
19OpDecorate %37 RelaxedPrecision
20OpDecorate %40 RelaxedPrecision
21OpDecorate %41 RelaxedPrecision
22OpDecorate %42 RelaxedPrecision
23OpDecorate %45 RelaxedPrecision
24OpDecorate %46 RelaxedPrecision
25OpDecorate %47 RelaxedPrecision
26OpDecorate %50 RelaxedPrecision
27OpDecorate %51 RelaxedPrecision
28OpDecorate %52 RelaxedPrecision
29%bool = OpTypeBool
30%_ptr_Input_bool = OpTypePointer Input %bool
31%sk_Clockwise = OpVariable %_ptr_Input_bool Input
32%float = OpTypeFloat 32
33%v4float = OpTypeVector %float 4
34%_ptr_Output_v4float = OpTypePointer Output %v4float
35%sk_FragColor = OpVariable %_ptr_Output_v4float Output
36%void = OpTypeVoid
37%12 = OpTypeFunction %void
38%15 = OpTypeFunction %v4float
39%mat4v4float = OpTypeMatrix %v4float 4
40%_ptr_Function_mat4v4float = OpTypePointer Function %mat4v4float
41%float_123 = OpConstant %float 123
42%float_0 = OpConstant %float 0
43%22 = OpConstantComposite %v4float %float_123 %float_0 %float_0 %float_0
44%23 = OpConstantComposite %v4float %float_0 %float_123 %float_0 %float_0
45%24 = OpConstantComposite %v4float %float_0 %float_0 %float_123 %float_0
46%25 = OpConstantComposite %v4float %float_0 %float_0 %float_0 %float_123
47%26 = OpConstantComposite %mat4v4float %22 %23 %24 %25
48%_ptr_Function_v4float = OpTypePointer Function %v4float
49%float_1 = OpConstant %float 1
50%float_2 = OpConstant %float 2
51%float_3 = OpConstant %float 3
52%32 = OpConstantComposite %v4float %float_0 %float_1 %float_2 %float_3
53%int = OpTypeInt 32 1
54%int_0 = OpConstant %int 0
55%int_1 = OpConstant %int 1
56%int_2 = OpConstant %int 2
57%int_3 = OpConstant %int 3
58%_entrypoint_v = OpFunction %void None %12
59%13 = OpLabel
60%14 = OpFunctionCall %v4float %main
61OpStore %sk_FragColor %14
62OpReturn
63OpFunctionEnd
64%main = OpFunction %v4float None %15
65%16 = OpLabel
66%m44 = OpVariable %_ptr_Function_mat4v4float Function
67%v4 = OpVariable %_ptr_Function_v4float Function
68OpStore %m44 %26
69OpStore %v4 %32
70%35 = OpAccessChain %_ptr_Function_v4float %m44 %int_0
71%36 = OpLoad %v4float %35
72%37 = OpVectorTimesScalar %v4float %36 %float_0
73%39 = OpAccessChain %_ptr_Function_v4float %m44 %int_1
74%40 = OpLoad %v4float %39
75%41 = OpVectorTimesScalar %v4float %40 %float_1
76%42 = OpFAdd %v4float %37 %41
77%44 = OpAccessChain %_ptr_Function_v4float %m44 %int_2
78%45 = OpLoad %v4float %44
79%46 = OpVectorTimesScalar %v4float %45 %float_2
80%47 = OpFAdd %v4float %42 %46
81%49 = OpAccessChain %_ptr_Function_v4float %m44 %int_3
82%50 = OpLoad %v4float %49
83%51 = OpVectorTimesScalar %v4float %50 %float_3
84%52 = OpFAdd %v4float %47 %51
85OpReturnValue %52
86OpFunctionEnd
87