@swf2es/render 0.0.0-stage → 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +202 -0
- package/README.md +17 -2
- package/dist/commands.d.ts +67 -0
- package/dist/commands.d.ts.map +1 -0
- package/dist/commands.js +93 -0
- package/dist/commands.js.map +1 -0
- package/dist/filter-plan.d.ts +110 -0
- package/dist/filter-plan.d.ts.map +1 -0
- package/dist/filter-plan.js +480 -0
- package/dist/filter-plan.js.map +1 -0
- package/dist/filter-shaders.d.ts +63 -0
- package/dist/filter-shaders.d.ts.map +1 -0
- package/dist/filter-shaders.js +350 -0
- package/dist/filter-shaders.js.map +1 -0
- package/dist/filters.d.ts +107 -0
- package/dist/filters.d.ts.map +1 -0
- package/dist/filters.js +187 -0
- package/dist/filters.js.map +1 -0
- package/dist/geometry.d.ts +83 -0
- package/dist/geometry.d.ts.map +1 -0
- package/dist/geometry.js +93 -0
- package/dist/geometry.js.map +1 -0
- package/dist/index.d.ts +11 -0
- package/dist/index.d.ts.map +1 -0
- package/dist/index.js +13 -0
- package/dist/index.js.map +1 -0
- package/dist/keeps.d.ts +17 -0
- package/dist/keeps.d.ts.map +1 -0
- package/dist/keeps.js +17 -0
- package/dist/keeps.js.map +1 -0
- package/dist/kernel-shaders.d.ts +74 -0
- package/dist/kernel-shaders.d.ts.map +1 -0
- package/dist/kernel-shaders.js +323 -0
- package/dist/kernel-shaders.js.map +1 -0
- package/dist/measure.d.ts +56 -0
- package/dist/measure.d.ts.map +1 -0
- package/dist/measure.js +287 -0
- package/dist/measure.js.map +1 -0
- package/dist/plan.d.ts +14 -0
- package/dist/plan.d.ts.map +1 -0
- package/dist/plan.js +247 -0
- package/dist/plan.js.map +1 -0
- package/dist/registry.d.ts +49 -0
- package/dist/registry.d.ts.map +1 -0
- package/dist/registry.js +87 -0
- package/dist/registry.js.map +1 -0
- package/dist/rows.d.ts +39 -0
- package/dist/rows.d.ts.map +1 -0
- package/dist/rows.js +60 -0
- package/dist/rows.js.map +1 -0
- package/dist/scene.d.ts +179 -0
- package/dist/scene.d.ts.map +1 -0
- package/dist/scene.js +265 -0
- package/dist/scene.js.map +1 -0
- package/dist/shelves.d.ts +23 -0
- package/dist/shelves.d.ts.map +1 -0
- package/dist/shelves.js +63 -0
- package/dist/shelves.js.map +1 -0
- package/dist/textures.d.ts +72 -0
- package/dist/textures.d.ts.map +1 -0
- package/dist/textures.js +160 -0
- package/dist/textures.js.map +1 -0
- package/dist/webgl/atlas.d.ts +63 -0
- package/dist/webgl/atlas.d.ts.map +1 -0
- package/dist/webgl/atlas.js +328 -0
- package/dist/webgl/atlas.js.map +1 -0
- package/dist/webgl/backend.d.ts +141 -0
- package/dist/webgl/backend.d.ts.map +1 -0
- package/dist/webgl/backend.js +659 -0
- package/dist/webgl/backend.js.map +1 -0
- package/dist/webgl/composite.d.ts +101 -0
- package/dist/webgl/composite.d.ts.map +1 -0
- package/dist/webgl/composite.js +293 -0
- package/dist/webgl/composite.js.map +1 -0
- package/dist/webgl/draws.d.ts +213 -0
- package/dist/webgl/draws.d.ts.map +1 -0
- package/dist/webgl/draws.js +714 -0
- package/dist/webgl/draws.js.map +1 -0
- package/dist/webgl/filters.d.ts +107 -0
- package/dist/webgl/filters.d.ts.map +1 -0
- package/dist/webgl/filters.js +351 -0
- package/dist/webgl/filters.js.map +1 -0
- package/dist/webgl/gpu-textures.d.ts +44 -0
- package/dist/webgl/gpu-textures.d.ts.map +1 -0
- package/dist/webgl/gpu-textures.js +178 -0
- package/dist/webgl/gpu-textures.js.map +1 -0
- package/dist/webgl/holds.d.ts +97 -0
- package/dist/webgl/holds.d.ts.map +1 -0
- package/dist/webgl/holds.js +453 -0
- package/dist/webgl/holds.js.map +1 -0
- package/dist/webgl/index.d.ts +2 -0
- package/dist/webgl/index.d.ts.map +1 -0
- package/dist/webgl/index.js +4 -0
- package/dist/webgl/index.js.map +1 -0
- package/dist/webgl/kernels.d.ts +64 -0
- package/dist/webgl/kernels.d.ts.map +1 -0
- package/dist/webgl/kernels.js +160 -0
- package/dist/webgl/kernels.js.map +1 -0
- package/dist/webgl/pool.d.ts +71 -0
- package/dist/webgl/pool.d.ts.map +1 -0
- package/dist/webgl/pool.js +192 -0
- package/dist/webgl/pool.js.map +1 -0
- package/dist/webgl/programs.d.ts +130 -0
- package/dist/webgl/programs.d.ts.map +1 -0
- package/dist/webgl/programs.js +582 -0
- package/dist/webgl/programs.js.map +1 -0
- package/dist/webgl/stage.d.ts +67 -0
- package/dist/webgl/stage.d.ts.map +1 -0
- package/dist/webgl/stage.js +173 -0
- package/dist/webgl/stage.js.map +1 -0
- package/dist/webgl/targets.d.ts +172 -0
- package/dist/webgl/targets.d.ts.map +1 -0
- package/dist/webgl/targets.js +323 -0
- package/dist/webgl/targets.js.map +1 -0
- package/package.json +35 -3
- package/src/commands.ts +98 -0
- package/src/filter-plan.ts +755 -0
- package/src/filter-shaders.ts +360 -0
- package/src/filters.ts +220 -0
- package/src/geometry.ts +143 -0
- package/src/index.ts +87 -0
- package/src/keeps.ts +21 -0
- package/src/kernel-shaders.ts +375 -0
- package/src/measure.ts +400 -0
- package/src/plan.ts +331 -0
- package/src/registry.ts +105 -0
- package/src/rows.ts +93 -0
- package/src/scene.ts +297 -0
- package/src/shelves.ts +70 -0
- package/src/textures.ts +198 -0
- package/src/webgl/atlas.ts +370 -0
- package/src/webgl/backend.ts +973 -0
- package/src/webgl/composite.ts +372 -0
- package/src/webgl/draws.ts +902 -0
- package/src/webgl/filters.ts +502 -0
- package/src/webgl/gpu-textures.ts +253 -0
- package/src/webgl/holds.ts +624 -0
- package/src/webgl/index.ts +3 -0
- package/src/webgl/kernels.ts +205 -0
- package/src/webgl/pool.ts +245 -0
- package/src/webgl/programs.ts +620 -0
- package/src/webgl/stage.ts +214 -0
- package/src/webgl/targets.ts +464 -0
package/LICENSE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
Apache License
|
|
2
|
+
Version 2.0, January 2004
|
|
3
|
+
http://www.apache.org/licenses/
|
|
4
|
+
|
|
5
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
6
|
+
|
|
7
|
+
1. Definitions.
|
|
8
|
+
|
|
9
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
10
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
11
|
+
|
|
12
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
13
|
+
the copyright owner that is granting the License.
|
|
14
|
+
|
|
15
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
16
|
+
other entities that control, are controlled by, or are under common
|
|
17
|
+
control with that entity. For the purposes of this definition,
|
|
18
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
19
|
+
direction or management of such entity, whether by contract or
|
|
20
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
21
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
22
|
+
|
|
23
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
24
|
+
exercising permissions granted by this License.
|
|
25
|
+
|
|
26
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
27
|
+
including but not limited to software source code, documentation
|
|
28
|
+
source, and configuration files.
|
|
29
|
+
|
|
30
|
+
"Object" form shall mean any form resulting from mechanical
|
|
31
|
+
transformation or translation of a Source form, including but
|
|
32
|
+
not limited to compiled object code, generated documentation,
|
|
33
|
+
and conversions to other media types.
|
|
34
|
+
|
|
35
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
36
|
+
Object form, made available under the License, as indicated by a
|
|
37
|
+
copyright notice that is included in or attached to the work
|
|
38
|
+
(an example is provided in the Appendix below).
|
|
39
|
+
|
|
40
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
41
|
+
form, that is based on (or derived from) the Work and for which the
|
|
42
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
43
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
44
|
+
of this License, Derivative Works shall not include works that remain
|
|
45
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
46
|
+
the Work and Derivative Works thereof.
|
|
47
|
+
|
|
48
|
+
"Contribution" shall mean any work of authorship, including
|
|
49
|
+
the original version of the Work and any modifications or additions
|
|
50
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
51
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
52
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
53
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
54
|
+
means any form of electronic, verbal, or written communication sent
|
|
55
|
+
to the Licensor or its representatives, including but not limited to
|
|
56
|
+
communication on electronic mailing lists, source code control systems,
|
|
57
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
58
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
59
|
+
excluding communication that is conspicuously marked or otherwise
|
|
60
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
61
|
+
|
|
62
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
63
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
64
|
+
subsequently incorporated within the Work.
|
|
65
|
+
|
|
66
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
67
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
68
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
69
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
70
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
71
|
+
Work and such Derivative Works in Source or Object form.
|
|
72
|
+
|
|
73
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
74
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
75
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
76
|
+
(except as stated in this section) patent license to make, have made,
|
|
77
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
78
|
+
where such license applies only to those patent claims licensable
|
|
79
|
+
by such Contributor that are necessarily infringed by their
|
|
80
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
81
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
82
|
+
institute patent litigation against any entity (including a
|
|
83
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
84
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
85
|
+
or contributory patent infringement, then any patent licenses
|
|
86
|
+
granted to You under this License for that Work shall terminate
|
|
87
|
+
as of the date such litigation is filed.
|
|
88
|
+
|
|
89
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
90
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
91
|
+
modifications, and in Source or Object form, provided that You
|
|
92
|
+
meet the following conditions:
|
|
93
|
+
|
|
94
|
+
(a) You must give any other recipients of the Work or
|
|
95
|
+
Derivative Works a copy of this License; and
|
|
96
|
+
|
|
97
|
+
(b) You must cause any modified files to carry prominent notices
|
|
98
|
+
stating that You changed the files; and
|
|
99
|
+
|
|
100
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
101
|
+
that You distribute, all copyright, patent, trademark, and
|
|
102
|
+
attribution notices from the Source form of the Work,
|
|
103
|
+
excluding those notices that do not pertain to any part of
|
|
104
|
+
the Derivative Works; and
|
|
105
|
+
|
|
106
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
107
|
+
distribution, then any Derivative Works that You distribute must
|
|
108
|
+
include a readable copy of the attribution notices contained
|
|
109
|
+
within such NOTICE file, excluding those notices that do not
|
|
110
|
+
pertain to any part of the Derivative Works, in at least one
|
|
111
|
+
of the following places: within a NOTICE text file distributed
|
|
112
|
+
as part of the Derivative Works; within the Source form or
|
|
113
|
+
documentation, if provided along with the Derivative Works; or,
|
|
114
|
+
within a display generated by the Derivative Works, if and
|
|
115
|
+
wherever such third-party notices normally appear. The contents
|
|
116
|
+
of the NOTICE file are for informational purposes only and
|
|
117
|
+
do not modify the License. You may add Your own attribution
|
|
118
|
+
notices within Derivative Works that You distribute, alongside
|
|
119
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
120
|
+
that such additional attribution notices cannot be construed
|
|
121
|
+
as modifying the License.
|
|
122
|
+
|
|
123
|
+
You may add Your own copyright statement to Your modifications and
|
|
124
|
+
may provide additional or different license terms and conditions
|
|
125
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
126
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
127
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
128
|
+
the conditions stated in this License.
|
|
129
|
+
|
|
130
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
131
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
132
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
133
|
+
this License, without any additional terms or conditions.
|
|
134
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
135
|
+
the terms of any separate license agreement you may have executed
|
|
136
|
+
with Licensor regarding such Contributions.
|
|
137
|
+
|
|
138
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
139
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
140
|
+
except as required for reasonable and customary use in describing the
|
|
141
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
142
|
+
|
|
143
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
144
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
145
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
146
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
147
|
+
implied, including, without limitation, any warranties or conditions
|
|
148
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
149
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
150
|
+
appropriateness of using or redistributing the Work and assume any
|
|
151
|
+
risks associated with Your exercise of permissions under this License.
|
|
152
|
+
|
|
153
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
154
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
155
|
+
unless required by applicable law (such as deliberate and grossly
|
|
156
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
157
|
+
liable to You for damages, including any direct, indirect, special,
|
|
158
|
+
incidental, or consequential damages of any character arising as a
|
|
159
|
+
result of this License or out of the use or inability to use the
|
|
160
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
161
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
162
|
+
other commercial damages or losses), even if such Contributor
|
|
163
|
+
has been advised of the possibility of such damages.
|
|
164
|
+
|
|
165
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
166
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
167
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
168
|
+
or other liability obligations and/or rights consistent with this
|
|
169
|
+
License. However, in accepting such obligations, You may act only
|
|
170
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
171
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
172
|
+
defend, and hold each Contributor harmless for any liability
|
|
173
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
174
|
+
of your accepting any such warranty or additional liability.
|
|
175
|
+
|
|
176
|
+
END OF TERMS AND CONDITIONS
|
|
177
|
+
|
|
178
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
179
|
+
|
|
180
|
+
To apply the Apache License to your work, attach the following
|
|
181
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
182
|
+
replaced with your own identifying information. (Don't include
|
|
183
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
184
|
+
comment syntax for the file format. We also recommend that a
|
|
185
|
+
file or class name and description of purpose be included on the
|
|
186
|
+
same "printed page" as the copyright notice for easier
|
|
187
|
+
identification within third-party archives.
|
|
188
|
+
|
|
189
|
+
Copyright 2026 The swf2es authors
|
|
190
|
+
|
|
191
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
192
|
+
you may not use this file except in compliance with the License.
|
|
193
|
+
You may obtain a copy of the License at
|
|
194
|
+
|
|
195
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
196
|
+
|
|
197
|
+
Unless required by applicable law or agreed to in writing, software
|
|
198
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
199
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
200
|
+
See the License for the specific language governing permissions and
|
|
201
|
+
limitations under the License.
|
|
202
|
+
|
package/README.md
CHANGED
|
@@ -1,3 +1,18 @@
|
|
|
1
|
-
#
|
|
1
|
+
# @swf2es/render
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
The renderer of [swf2es](https://github.com/swf2es/swf2es): what a frame
|
|
4
|
+
draws as typed arrays (shapes, bitmaps, text, filters, blend modes, masks),
|
|
5
|
+
the planner that turns it into commands, and a WebGL 2 backend at
|
|
6
|
+
`@swf2es/render/webgl`. The core uses no GPU and no DOM. The player
|
|
7
|
+
drives it ([`@swf2es/player`](https://www.npmjs.com/package/@swf2es/player),
|
|
8
|
+
`@swf2es/player/scene`); most pages want
|
|
9
|
+
[`@swf2es/web`](https://www.npmjs.com/package/@swf2es/web).
|
|
10
|
+
|
|
11
|
+
```sh
|
|
12
|
+
npm install @swf2es/render
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
[docs/renderer.md](https://github.com/swf2es/swf2es/blob/main/docs/renderer.md)
|
|
16
|
+
describes its design.
|
|
17
|
+
|
|
18
|
+
Apache-2.0 ([LICENSE](LICENSE)).
|
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
/** Clear the target to a colour: params red, green, blue, alpha. */
|
|
2
|
+
export declare const CLEAR = 1;
|
|
3
|
+
/** Draw the scene list's entries from `a`, `b` of them, under blend mode `c`. */
|
|
4
|
+
export declare const RUN = 2;
|
|
5
|
+
/**
|
|
6
|
+
* A mask: entries from `a`, `b` of them, drawn into the stencil, where what
|
|
7
|
+
* follows is drawn; and taken out again, the same entries, once it is.
|
|
8
|
+
*/
|
|
9
|
+
export declare const STENCIL_PUSH = 3;
|
|
10
|
+
export declare const STENCIL_POP = 4;
|
|
11
|
+
/**
|
|
12
|
+
* A layer begun, drawn into a target of its own over the rectangle of the
|
|
13
|
+
* target whose x, y, width and height are params from `a`, `b` 1 where
|
|
14
|
+
* filters will read it past that rectangle, which is then clear too; and
|
|
15
|
+
* composited onto the one below in blend mode `a`, coloured by row `b`
|
|
16
|
+
* (or -1), its output kept as kept output `c` (Keeps), or not (-1).
|
|
17
|
+
*/
|
|
18
|
+
export declare const LAYER_PUSH = 5;
|
|
19
|
+
export declare const LAYER_POP = 6;
|
|
20
|
+
/** The filters of chain `a` of the frame's filter list run over the layer drawn into, in turn. */
|
|
21
|
+
export declare const FILTER = 7;
|
|
22
|
+
/**
|
|
23
|
+
* A kept output (Keeps) composited again onto the target drawn into, in
|
|
24
|
+
* blend mode `b`, coloured by row `c` (or -1): its rectangle's x, y, width
|
|
25
|
+
* and height, then its id, are params from `a`.
|
|
26
|
+
*/
|
|
27
|
+
export declare const COMPOSITE = 8;
|
|
28
|
+
/**
|
|
29
|
+
* A filtered layer drawn ahead of the stage (plan), its draws, masks and
|
|
30
|
+
* held layers' composites the operations between: begun over the
|
|
31
|
+
* rectangle of params from `a`, its output held as held output `b`, at
|
|
32
|
+
* level `c`, one past the deepest held layer in it; ended with chain `a`
|
|
33
|
+
* of the frame's filters run over it, held output `b`. Held layers come
|
|
34
|
+
* before the stage's CLEAR, a level's after those it holds, and the
|
|
35
|
+
* backend draws a level's side by side, their passes too.
|
|
36
|
+
*/
|
|
37
|
+
export declare const HOLD_PUSH = 9;
|
|
38
|
+
export declare const HOLD_POP = 10;
|
|
39
|
+
/** Held output `a` composited onto the target drawn into, in blend mode `b`, coloured by row `c` (or -1). */
|
|
40
|
+
export declare const HELD = 11;
|
|
41
|
+
/**
|
|
42
|
+
* What a frame asks of the backend, in order: each operation an opcode and
|
|
43
|
+
* three integers, with the floats some take apart.
|
|
44
|
+
*/
|
|
45
|
+
export declare class Commands {
|
|
46
|
+
ops: Int32Array<ArrayBuffer>;
|
|
47
|
+
params: Float32Array<ArrayBuffer>;
|
|
48
|
+
length: number;
|
|
49
|
+
paramLength: number;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a layer is composited onto the target itself in erase or alpha,
|
|
52
|
+
* which leaves it less than opaque where it covers, as adl clears the
|
|
53
|
+
* stage, for the blends after it to read.
|
|
54
|
+
*/
|
|
55
|
+
clearsTarget: boolean;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the stage stays opaque throughout: cleared to an opaque colour,
|
|
58
|
+
* and nothing composited onto it that leaves less, erase, alpha or a
|
|
59
|
+
* blend shader. GL's blending computes more of Flash's blends over it.
|
|
60
|
+
*/
|
|
61
|
+
opaqueStage: boolean;
|
|
62
|
+
reset(): void;
|
|
63
|
+
push(op: number, a?: number, b?: number, c?: number): void;
|
|
64
|
+
/** Floats for the operation pushed next, where it reads them from. */
|
|
65
|
+
param(...values: number[]): number;
|
|
66
|
+
}
|
|
67
|
+
//# sourceMappingURL=commands.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.d.ts","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,eAAO,MAAM,KAAK,IAAI,CAAC;AACvB,iFAAiF;AACjF,eAAO,MAAM,GAAG,IAAI,CAAC;AACrB;;;GAGG;AACH,eAAO,MAAM,YAAY,IAAI,CAAC;AAC9B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B;;;;;;GAMG;AACH,eAAO,MAAM,UAAU,IAAI,CAAC;AAC5B,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,kGAAkG;AAClG,eAAO,MAAM,MAAM,IAAI,CAAC;AACxB;;;;GAIG;AACH,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B;;;;;;;;GAQG;AACH,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAAM,QAAQ,KAAK,CAAC;AAC3B,6GAA6G;AAC7G,eAAO,MAAM,IAAI,KAAK,CAAC;AAEvB;;;GAGG;AACH,qBAAa,QAAQ;IACnB,GAAG,0BAAuB;IAC1B,MAAM,4BAAwB;IAC9B,MAAM,SAAK;IACX,WAAW,SAAK;IAChB;;;;OAIG;IACH,YAAY,UAAS;IACrB;;;;OAIG;IACH,WAAW,UAAS;IAEpB,KAAK,IAAI,IAAI,CAKZ;IAED,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,EAAE,CAAC,SAAI,GAAG,IAAI,CAY1C;IAED,sEAAsE;IACtE,KAAK,CAAC,GAAG,MAAM,EAAE,MAAM,EAAE,GAAG,MAAM,CAWjC;CACF"}
|
package/dist/commands.js
ADDED
|
@@ -0,0 +1,93 @@
|
|
|
1
|
+
/** Clear the target to a colour: params red, green, blue, alpha. */
|
|
2
|
+
export const CLEAR = 1;
|
|
3
|
+
/** Draw the scene list's entries from `a`, `b` of them, under blend mode `c`. */
|
|
4
|
+
export const RUN = 2;
|
|
5
|
+
/**
|
|
6
|
+
* A mask: entries from `a`, `b` of them, drawn into the stencil, where what
|
|
7
|
+
* follows is drawn; and taken out again, the same entries, once it is.
|
|
8
|
+
*/
|
|
9
|
+
export const STENCIL_PUSH = 3;
|
|
10
|
+
export const STENCIL_POP = 4;
|
|
11
|
+
/**
|
|
12
|
+
* A layer begun, drawn into a target of its own over the rectangle of the
|
|
13
|
+
* target whose x, y, width and height are params from `a`, `b` 1 where
|
|
14
|
+
* filters will read it past that rectangle, which is then clear too; and
|
|
15
|
+
* composited onto the one below in blend mode `a`, coloured by row `b`
|
|
16
|
+
* (or -1), its output kept as kept output `c` (Keeps), or not (-1).
|
|
17
|
+
*/
|
|
18
|
+
export const LAYER_PUSH = 5;
|
|
19
|
+
export const LAYER_POP = 6;
|
|
20
|
+
/** The filters of chain `a` of the frame's filter list run over the layer drawn into, in turn. */
|
|
21
|
+
export const FILTER = 7;
|
|
22
|
+
/**
|
|
23
|
+
* A kept output (Keeps) composited again onto the target drawn into, in
|
|
24
|
+
* blend mode `b`, coloured by row `c` (or -1): its rectangle's x, y, width
|
|
25
|
+
* and height, then its id, are params from `a`.
|
|
26
|
+
*/
|
|
27
|
+
export const COMPOSITE = 8;
|
|
28
|
+
/**
|
|
29
|
+
* A filtered layer drawn ahead of the stage (plan), its draws, masks and
|
|
30
|
+
* held layers' composites the operations between: begun over the
|
|
31
|
+
* rectangle of params from `a`, its output held as held output `b`, at
|
|
32
|
+
* level `c`, one past the deepest held layer in it; ended with chain `a`
|
|
33
|
+
* of the frame's filters run over it, held output `b`. Held layers come
|
|
34
|
+
* before the stage's CLEAR, a level's after those it holds, and the
|
|
35
|
+
* backend draws a level's side by side, their passes too.
|
|
36
|
+
*/
|
|
37
|
+
export const HOLD_PUSH = 9;
|
|
38
|
+
export const HOLD_POP = 10;
|
|
39
|
+
/** Held output `a` composited onto the target drawn into, in blend mode `b`, coloured by row `c` (or -1). */
|
|
40
|
+
export const HELD = 11;
|
|
41
|
+
/**
|
|
42
|
+
* What a frame asks of the backend, in order: each operation an opcode and
|
|
43
|
+
* three integers, with the floats some take apart.
|
|
44
|
+
*/
|
|
45
|
+
export class Commands {
|
|
46
|
+
ops = new Int32Array(256);
|
|
47
|
+
params = new Float32Array(64);
|
|
48
|
+
length = 0;
|
|
49
|
+
paramLength = 0;
|
|
50
|
+
/**
|
|
51
|
+
* Whether a layer is composited onto the target itself in erase or alpha,
|
|
52
|
+
* which leaves it less than opaque where it covers, as adl clears the
|
|
53
|
+
* stage, for the blends after it to read.
|
|
54
|
+
*/
|
|
55
|
+
clearsTarget = false;
|
|
56
|
+
/**
|
|
57
|
+
* Whether the stage stays opaque throughout: cleared to an opaque colour,
|
|
58
|
+
* and nothing composited onto it that leaves less, erase, alpha or a
|
|
59
|
+
* blend shader. GL's blending computes more of Flash's blends over it.
|
|
60
|
+
*/
|
|
61
|
+
opaqueStage = false;
|
|
62
|
+
reset() {
|
|
63
|
+
this.length = 0;
|
|
64
|
+
this.paramLength = 0;
|
|
65
|
+
this.clearsTarget = false;
|
|
66
|
+
this.opaqueStage = false;
|
|
67
|
+
}
|
|
68
|
+
push(op, a = 0, b = 0, c = 0) {
|
|
69
|
+
if ((this.length + 1) * 4 > this.ops.length) {
|
|
70
|
+
const grown = new Int32Array(this.ops.length * 2);
|
|
71
|
+
grown.set(this.ops);
|
|
72
|
+
this.ops = grown;
|
|
73
|
+
}
|
|
74
|
+
const at = this.length++ * 4;
|
|
75
|
+
this.ops[at] = op;
|
|
76
|
+
this.ops[at + 1] = a;
|
|
77
|
+
this.ops[at + 2] = b;
|
|
78
|
+
this.ops[at + 3] = c;
|
|
79
|
+
}
|
|
80
|
+
/** Floats for the operation pushed next, where it reads them from. */
|
|
81
|
+
param(...values) {
|
|
82
|
+
const at = this.paramLength;
|
|
83
|
+
if (at + values.length > this.params.length) {
|
|
84
|
+
const grown = new Float32Array(Math.max(this.params.length * 2, at + values.length));
|
|
85
|
+
grown.set(this.params);
|
|
86
|
+
this.params = grown;
|
|
87
|
+
}
|
|
88
|
+
this.params.set(values, at);
|
|
89
|
+
this.paramLength += values.length;
|
|
90
|
+
return at;
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
//# sourceMappingURL=commands.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"commands.js","sourceRoot":"","sources":["../src/commands.ts"],"names":[],"mappings":"AAAA,oEAAoE;AACpE,MAAM,CAAC,MAAM,KAAK,GAAG,CAAC,CAAC;AACvB,iFAAiF;AACjF,MAAM,CAAC,MAAM,GAAG,GAAG,CAAC,CAAC;AACrB;;;GAGG;AACH,MAAM,CAAC,MAAM,YAAY,GAAG,CAAC,CAAC;AAC9B,MAAM,CAAC,MAAM,WAAW,GAAG,CAAC,CAAC;AAC7B;;;;;;GAMG;AACH,MAAM,CAAC,MAAM,UAAU,GAAG,CAAC,CAAC;AAC5B,MAAM,CAAC,MAAM,SAAS,GAAG,CAAC,CAAC;AAC3B,kGAAkG;AAClG,MAAM,CAAC,MA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AE,GAAG,CAAC,CAAC;QAC7B,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,EAAE,CAAC;QAClB,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;QACrB,IAAI,CAAC,GAAG,CAAC,EAAE,GAAG,CAAC,CAAC,GAAG,CAAC,CAAC;IACvB,CAAC;IAED,sEAAsE;IACtE,KAAK,CAAC,GAAG,MAAgB;QACvB,MAAM,EAAE,GAAG,IAAI,CAAC,WAAW,CAAC;QAC5B,IAAI,EAAE,GAAG,MAAM,CAAC,MAAM,GAAG,IAAI,CAAC,MAAM,CAAC,MAAM,EAAE,CAAC;YAC5C,MAAM,KAAK,GAAG,IAAI,YAAY,CAAC,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,MAAM,GAAG,CAAC,EAAE,EAAE,GAAG,MAAM,CAAC,MAAM,CAAC,CAAC,CAAC;YACrF,KAAK,CAAC,GAAG,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YACvB,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;QACtB,CAAC;QAED,IAAI,CAAC,MAAM,CAAC,GAAG,CAAC,MAAM,EAAE,EAAE,CAAC,CAAC;QAC5B,IAAI,CAAC,WAAW,IAAI,MAAM,CAAC,MAAM,CAAC;QAClC,OAAO,EAAE,CAAC;IACZ,CAAC;CACF"}
|
|
@@ -0,0 +1,110 @@
|
|
|
1
|
+
import { type Filters } from "./filters.js";
|
|
2
|
+
/** The passes' programs, each a fragment shader of filter-shaders.ts. */
|
|
3
|
+
export declare const BOX_PASS = 1;
|
|
4
|
+
export declare const SHRINK_PASS = 2;
|
|
5
|
+
export declare const READ_BACK_PASS = 3;
|
|
6
|
+
export declare const GLOW_PASS = 4;
|
|
7
|
+
export declare const BEVEL_PASS = 5;
|
|
8
|
+
export declare const GRADIENT_PASS = 6;
|
|
9
|
+
export declare const MATRIX_PASS = 7;
|
|
10
|
+
export declare const CONVOLUTION_PASS = 8;
|
|
11
|
+
export declare const DISPLACE_PASS = 9;
|
|
12
|
+
/** A Pixel Bender kernel's pass, its program FilterPass.kernel. */
|
|
13
|
+
export declare const KERNEL_PASS = 10;
|
|
14
|
+
/**
|
|
15
|
+
* How a uniform's values are set: one to four floats, an array of vec4s, a
|
|
16
|
+
* 4 by 4 matrix, an array of ivec4s, or a sampler, its value the texture of
|
|
17
|
+
* the frame's it reads.
|
|
18
|
+
*/
|
|
19
|
+
export declare const FLOATS = 1;
|
|
20
|
+
export declare const VEC4S = 2;
|
|
21
|
+
export declare const MATRIX4 = 3;
|
|
22
|
+
export declare const IVEC4S = 4;
|
|
23
|
+
export declare const SAMPLER = 5;
|
|
24
|
+
/** A pass's blurred input (FilterPass.blurred): none read, or the pass's input itself. */
|
|
25
|
+
export declare const NO_BLUR = -2;
|
|
26
|
+
export declare const INPUT_BLUR = -1;
|
|
27
|
+
/** One pass: a program drawn from slot `input` into slot `output`, its uniforms in its plan's. */
|
|
28
|
+
export interface FilterPass {
|
|
29
|
+
program: number;
|
|
30
|
+
input: number;
|
|
31
|
+
/** The input's texels read, from its corner: its frame, or more of it for a shrink. */
|
|
32
|
+
readWidth: number;
|
|
33
|
+
readHeight: number;
|
|
34
|
+
output: number;
|
|
35
|
+
width: number;
|
|
36
|
+
height: number;
|
|
37
|
+
/** The slot read as the blur (NO_BLUR, INPUT_BLUR), and how much coarser it is each way. */
|
|
38
|
+
blurred: number;
|
|
39
|
+
across: number;
|
|
40
|
+
down: number;
|
|
41
|
+
/** A texture of the frame's it reads, a gradient's colours or a map, or -1. */
|
|
42
|
+
texture: number;
|
|
43
|
+
/** A kernel's pass's fragment shader (KERNEL_PASS), or null. */
|
|
44
|
+
kernel: string | null;
|
|
45
|
+
/** Its uniforms in the plan's (uniformName and the rest), from `first` to before `end`. */
|
|
46
|
+
first: number;
|
|
47
|
+
end: number;
|
|
48
|
+
}
|
|
49
|
+
/**
|
|
50
|
+
* A chain's passes, its targets by slot, each a frame of a width and
|
|
51
|
+
* height, slot 0 the layer it runs on, and the slot its output is left
|
|
52
|
+
* in. Kept from chain to chain, its records reused.
|
|
53
|
+
*/
|
|
54
|
+
export declare class FilterPlan {
|
|
55
|
+
readonly passes: FilterPass[];
|
|
56
|
+
count: number;
|
|
57
|
+
readonly slotWidth: number[];
|
|
58
|
+
readonly slotHeight: number[];
|
|
59
|
+
slots: number;
|
|
60
|
+
result: number;
|
|
61
|
+
/** The target's pixels a unit of its own, which the shaders read their input's size in. */
|
|
62
|
+
resolution: number;
|
|
63
|
+
/** The uniforms: each one's name, how it is set, where its values start and how many. */
|
|
64
|
+
readonly uniformName: string[];
|
|
65
|
+
readonly uniformKind: number[];
|
|
66
|
+
readonly uniformAt: number[];
|
|
67
|
+
readonly uniformCount: number[];
|
|
68
|
+
uniforms: number;
|
|
69
|
+
values: Float32Array<ArrayBuffer>;
|
|
70
|
+
valueCount: number;
|
|
71
|
+
/** The ints of the IVEC4S uniforms, which floats would round: their uniformAt is in here. */
|
|
72
|
+
ints: Int32Array<ArrayBuffer>;
|
|
73
|
+
intCount: number;
|
|
74
|
+
/** Empty, for a chain run at `resolution` on a layer of `width` by `height`. */
|
|
75
|
+
reset(width: number, height: number, resolution: number): void;
|
|
76
|
+
/** A new slot, a target of `width` by `height`. */
|
|
77
|
+
slot(width: number, height: number): number;
|
|
78
|
+
/** A pass begun, its uniforms the ones set after it until the next. */
|
|
79
|
+
pass(program: number, input: number, readWidth: number, readHeight: number, output: number, width: number, height: number): FilterPass;
|
|
80
|
+
/** A uniform of `count` floats of the pass begun last, `x` and those after. */
|
|
81
|
+
uniform(name: string, count: number, x: number, y?: number, z?: number, w?: number): void;
|
|
82
|
+
/** uniform's values, passed on without an array of their own. */
|
|
83
|
+
private readonly four;
|
|
84
|
+
/** A uniform of the pass begun last, set `kind` from `count` of `source` from `at`. */
|
|
85
|
+
uniformFrom(name: string, kind: number, source: ArrayLike<number>, at: number, count: number): void;
|
|
86
|
+
/** An array of ivec4s of the pass begun last, `count` ints of `source` from `at`. */
|
|
87
|
+
uniformInts(name: string, source: Int32Array, at: number, count: number): void;
|
|
88
|
+
}
|
|
89
|
+
/**
|
|
90
|
+
* Where a filtered layer's object lies in it, in texels from its corner,
|
|
91
|
+
* and its size: Flash's bitmap of the object, which a ShaderFilter's
|
|
92
|
+
* coordinates start at, though the layer was cut to the target. Null for
|
|
93
|
+
* the layer less its padding each way.
|
|
94
|
+
*/
|
|
95
|
+
export interface KernelObject {
|
|
96
|
+
x: number;
|
|
97
|
+
y: number;
|
|
98
|
+
width: number;
|
|
99
|
+
height: number;
|
|
100
|
+
}
|
|
101
|
+
/**
|
|
102
|
+
* Chain `chain` of `filters` planned into `plan` over a layer of `width` by
|
|
103
|
+
* `height` texels at `resolution`, `hasTexture` telling which of the
|
|
104
|
+
* frame's textures there are: a filter whose texture is not leaves its
|
|
105
|
+
* input as it is, as one that changes nothing does; `links` whether a
|
|
106
|
+
* kernel's pass's fragment shader links, as one that does not leaves it
|
|
107
|
+
* too; `object` where the layer's object lies in it.
|
|
108
|
+
*/
|
|
109
|
+
export declare function planChain(plan: FilterPlan, filters: Filters, chain: number, width: number, height: number, resolution: number, hasTexture: (id: number) => boolean, links?: (fragment: string) => boolean, object?: KernelObject | null): void;
|
|
110
|
+
//# sourceMappingURL=filter-plan.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"filter-plan.d.ts","sourceRoot":"","sources":["../src/filter-plan.ts"],"names":[],"mappings":"AAKA,OAAO,EAOL,KAAK,OAAO,EAIb,MAAM,cAAc,CAAC;AAStB,yEAAyE;AACzE,eAAO,MAAM,QAAQ,IAAI,CAAC;AAC1B,eAAO,MAAM,WAAW,IAAI,CAAC;AAC7B,eAAO,MAAM,cAAc,IAAI,CAAC;AAChC,eAAO,MAAM,SAAS,IAAI,CAAC;AAC3B,eAAO,MAA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