melonjs 19.9.1 → 20.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.
Files changed (276) hide show
  1. package/README.md +25 -14
  2. package/build/application/application.d.ts +70 -16
  3. package/build/application/application.d.ts.map +1 -1
  4. package/build/application/defaultApplicationSettings.d.ts +2 -2
  5. package/build/application/settings.d.ts +150 -53
  6. package/build/application/settings.d.ts.map +1 -1
  7. package/build/camera/camera2d.d.ts +1 -1
  8. package/build/camera/camera2d.d.ts.map +1 -1
  9. package/build/camera/camera3d.d.ts +13 -11
  10. package/build/camera/camera3d.d.ts.map +1 -1
  11. package/build/camera/effects/fade_effect.d.ts.map +1 -1
  12. package/build/camera/effects/mask_effect.d.ts.map +1 -1
  13. package/build/const.d.ts +55 -26
  14. package/build/const.d.ts.map +1 -1
  15. package/build/geometries/box3d.d.ts +156 -0
  16. package/build/geometries/box3d.d.ts.map +1 -0
  17. package/build/index.d.ts +34 -24
  18. package/build/index.d.ts.map +1 -1
  19. package/build/index.js +22171 -8029
  20. package/build/index.js.map +4 -4
  21. package/build/lang/deprecated.d.ts +4 -4
  22. package/build/lang/deprecated.d.ts.map +1 -1
  23. package/build/level/gltf/GLTFModel.d.ts +4 -0
  24. package/build/level/gltf/GLTFModel.d.ts.map +1 -1
  25. package/build/level/gltf/GLTFScene.d.ts +42 -6
  26. package/build/level/gltf/GLTFScene.d.ts.map +1 -1
  27. package/build/level/gltf/srgb.d.ts +20 -0
  28. package/build/level/gltf/srgb.d.ts.map +1 -0
  29. package/build/level/level.d.ts +21 -2
  30. package/build/level/level.d.ts.map +1 -1
  31. package/build/lighting/light3d.d.ts +61 -13
  32. package/build/lighting/light3d.d.ts.map +1 -1
  33. package/build/loader/loader.d.ts +49 -21
  34. package/build/loader/loader.d.ts.map +1 -1
  35. package/build/loader/parsers/gltf.d.ts.map +1 -1
  36. package/build/loader/parsers/mtl.d.ts +18 -0
  37. package/build/loader/parsers/mtl.d.ts.map +1 -1
  38. package/build/loader/parsers/obj.d.ts +49 -0
  39. package/build/loader/parsers/obj.d.ts.map +1 -1
  40. package/build/loader/parsers/pbr.d.ts +63 -0
  41. package/build/loader/parsers/pbr.d.ts.map +1 -0
  42. package/build/loader/parsers/shader.d.ts +32 -24
  43. package/build/loader/parsers/shader.d.ts.map +1 -1
  44. package/build/physics/adapter.d.ts +86 -1
  45. package/build/physics/adapter.d.ts.map +1 -1
  46. package/build/physics/broadphase/octree.d.ts +35 -0
  47. package/build/physics/broadphase/octree.d.ts.map +1 -1
  48. package/build/physics/builtin/body.d.ts +123 -15
  49. package/build/physics/builtin/body.d.ts.map +1 -1
  50. package/build/physics/builtin/builtin-adapter.d.ts.map +1 -1
  51. package/build/physics/builtin/detector.d.ts +186 -1
  52. package/build/physics/builtin/detector.d.ts.map +1 -1
  53. package/build/physics/builtin/raycast.d.ts.map +1 -1
  54. package/build/physics/builtin/sat3d.d.ts +59 -0
  55. package/build/physics/builtin/sat3d.d.ts.map +1 -0
  56. package/build/physics/response.d.ts +32 -0
  57. package/build/physics/response.d.ts.map +1 -1
  58. package/build/physics/world.d.ts +1 -0
  59. package/build/physics/world.d.ts.map +1 -1
  60. package/build/renderable/container.d.ts +1 -0
  61. package/build/renderable/container.d.ts.map +1 -1
  62. package/build/renderable/groundshadow.d.ts +92 -0
  63. package/build/renderable/groundshadow.d.ts.map +1 -0
  64. package/build/renderable/instanced_mesh.d.ts +286 -0
  65. package/build/renderable/instanced_mesh.d.ts.map +1 -0
  66. package/build/renderable/mesh.d.ts +242 -23
  67. package/build/renderable/mesh.d.ts.map +1 -1
  68. package/build/renderable/renderable.d.ts +6 -4
  69. package/build/renderable/renderable.d.ts.map +1 -1
  70. package/build/renderable/sprite3d.d.ts +17 -6
  71. package/build/renderable/sprite3d.d.ts.map +1 -1
  72. package/build/renderable/text/text.d.ts.map +1 -1
  73. package/build/system/device.d.ts +11 -40
  74. package/build/system/device.d.ts.map +1 -1
  75. package/build/system/platform.d.ts +0 -16
  76. package/build/system/platform.d.ts.map +1 -1
  77. package/build/utils/utils.d.ts +2 -0
  78. package/build/utils/utils.d.ts.map +1 -1
  79. package/build/video/canvas/canvas_renderer.d.ts +22 -16
  80. package/build/video/canvas/canvas_renderer.d.ts.map +1 -1
  81. package/build/video/{webgl/effects → effects}/blur.d.ts +2 -2
  82. package/build/video/effects/blur.d.ts.map +1 -0
  83. package/build/video/{webgl/effects → effects}/chromaticAberration.d.ts +2 -2
  84. package/build/video/effects/chromaticAberration.d.ts.map +1 -0
  85. package/build/video/{webgl/effects → effects}/colorMatrix.d.ts +3 -3
  86. package/build/video/effects/colorMatrix.d.ts.map +1 -0
  87. package/build/video/{webgl/effects → effects}/desaturate.d.ts +1 -1
  88. package/build/video/effects/desaturate.d.ts.map +1 -0
  89. package/build/video/{webgl/effects → effects}/dissolve.d.ts +2 -2
  90. package/build/video/effects/dissolve.d.ts.map +1 -0
  91. package/build/video/{webgl/effects → effects}/dropShadow.d.ts +2 -2
  92. package/build/video/effects/dropShadow.d.ts.map +1 -0
  93. package/build/video/{webgl/effects → effects}/flash.d.ts +2 -2
  94. package/build/video/effects/flash.d.ts.map +1 -0
  95. package/build/video/{webgl/effects → effects}/glow.d.ts +2 -2
  96. package/build/video/effects/glow.d.ts.map +1 -0
  97. package/build/video/effects/glsl_realization.d.ts +18 -0
  98. package/build/video/effects/glsl_realization.d.ts.map +1 -0
  99. package/build/video/{webgl/effects → effects}/hologram.d.ts +2 -2
  100. package/build/video/effects/hologram.d.ts.map +1 -0
  101. package/build/video/{webgl/effects → effects}/invert.d.ts +1 -1
  102. package/build/video/effects/invert.d.ts.map +1 -0
  103. package/build/video/{webgl/effects → effects}/outline.d.ts +2 -2
  104. package/build/video/effects/outline.d.ts.map +1 -0
  105. package/build/video/{webgl/effects → effects}/pixelate.d.ts +2 -2
  106. package/build/video/effects/pixelate.d.ts.map +1 -0
  107. package/build/video/{webgl/effects → effects}/radialGradient.d.ts +3 -4
  108. package/build/video/effects/radialGradient.d.ts.map +1 -0
  109. package/build/video/{webgl/effects → effects}/scanline.d.ts +2 -2
  110. package/build/video/effects/scanline.d.ts.map +1 -0
  111. package/build/video/{webgl/effects → effects}/sepia.d.ts +1 -1
  112. package/build/video/effects/sepia.d.ts.map +1 -0
  113. package/build/video/{webgl → effects}/shadereffect.d.ts +133 -25
  114. package/build/video/effects/shadereffect.d.ts.map +1 -0
  115. package/build/video/{webgl/effects → effects}/shine.d.ts +2 -2
  116. package/build/video/effects/shine.d.ts.map +1 -0
  117. package/build/video/{webgl/effects → effects}/tintPulse.d.ts +2 -2
  118. package/build/video/effects/tintPulse.d.ts.map +1 -0
  119. package/build/video/{webgl/effects → effects}/vignette.d.ts +2 -2
  120. package/build/video/effects/vignette.d.ts.map +1 -0
  121. package/build/video/{webgl/effects → effects}/wave.d.ts +2 -2
  122. package/build/video/effects/wave.d.ts.map +1 -0
  123. package/build/video/effects/wgsl/layout.d.ts +28 -0
  124. package/build/video/effects/wgsl/layout.d.ts.map +1 -0
  125. package/build/video/effects/wgsl/parse.d.ts +9 -0
  126. package/build/video/effects/wgsl/parse.d.ts.map +1 -0
  127. package/build/video/effects/wgsl/scaffold.d.ts +43 -0
  128. package/build/video/effects/wgsl/scaffold.d.ts.map +1 -0
  129. package/build/video/effects/wgsl_realization.d.ts +83 -0
  130. package/build/video/effects/wgsl_realization.d.ts.map +1 -0
  131. package/build/video/gpu/batcher.d.ts +71 -0
  132. package/build/video/gpu/batcher.d.ts.map +1 -0
  133. package/build/video/gpu/instancerecord.d.ts +164 -0
  134. package/build/video/gpu/instancerecord.d.ts.map +1 -0
  135. package/build/video/gpu/meshchunk.d.ts +49 -0
  136. package/build/video/gpu/meshchunk.d.ts.map +1 -0
  137. package/build/video/gpu/meshvertex.d.ts +54 -0
  138. package/build/video/gpu/meshvertex.d.ts.map +1 -0
  139. package/build/video/gpu/primitives.d.ts +60 -0
  140. package/build/video/gpu/primitives.d.ts.map +1 -0
  141. package/build/video/gpu/quadcorners.d.ts +11 -0
  142. package/build/video/gpu/quadcorners.d.ts.map +1 -0
  143. package/build/video/gpu/textureslots.d.ts +122 -0
  144. package/build/video/gpu/textureslots.d.ts.map +1 -0
  145. package/build/video/gpu/texturestore.d.ts +139 -0
  146. package/build/video/gpu/texturestore.d.ts.map +1 -0
  147. package/build/video/gpu/topology.d.ts +43 -0
  148. package/build/video/gpu/topology.d.ts.map +1 -0
  149. package/build/video/gpu/vertexformat.d.ts +72 -0
  150. package/build/video/gpu/vertexformat.d.ts.map +1 -0
  151. package/build/video/gradient.d.ts +14 -5
  152. package/build/video/gradient.d.ts.map +1 -1
  153. package/build/video/renderer.d.ts +153 -8
  154. package/build/video/renderer.d.ts.map +1 -1
  155. package/build/video/rendertarget/canvasrendertarget.d.ts +7 -6
  156. package/build/video/rendertarget/canvasrendertarget.d.ts.map +1 -1
  157. package/build/video/rendertarget/render_target_pool.d.ts +2 -2
  158. package/build/video/rendertarget/render_target_pool.d.ts.map +1 -1
  159. package/build/video/rendertarget/webglrendertarget.d.ts +38 -2
  160. package/build/video/rendertarget/webglrendertarget.d.ts.map +1 -1
  161. package/build/video/rendertarget/webgpurendertarget.d.ts +83 -0
  162. package/build/video/rendertarget/webgpurendertarget.d.ts.map +1 -0
  163. package/build/video/texture/atlas.d.ts.map +1 -1
  164. package/build/video/texture/cache.d.ts +20 -2
  165. package/build/video/texture/cache.d.ts.map +1 -1
  166. package/build/video/texture/noise_texture2d.d.ts +2 -2
  167. package/build/video/utils/autodetect.d.ts.map +1 -1
  168. package/build/video/video.d.ts +1 -55
  169. package/build/video/video.d.ts.map +1 -1
  170. package/build/video/webgl/batchers/batcher.d.ts +132 -35
  171. package/build/video/webgl/batchers/batcher.d.ts.map +1 -1
  172. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts +14 -0
  173. package/build/video/webgl/batchers/lit_mesh_batcher.d.ts.map +1 -1
  174. package/build/video/webgl/batchers/lit_quad_batcher.d.ts +63 -36
  175. package/build/video/webgl/batchers/lit_quad_batcher.d.ts.map +1 -1
  176. package/build/video/webgl/batchers/material_batcher.d.ts +29 -20
  177. package/build/video/webgl/batchers/material_batcher.d.ts.map +1 -1
  178. package/build/video/webgl/batchers/mesh_batcher.d.ts +308 -14
  179. package/build/video/webgl/batchers/mesh_batcher.d.ts.map +1 -1
  180. package/build/video/webgl/batchers/primitive_batcher.d.ts +2 -2
  181. package/build/video/webgl/batchers/primitive_batcher.d.ts.map +1 -1
  182. package/build/video/webgl/batchers/quad_batcher.d.ts +0 -2
  183. package/build/video/webgl/batchers/quad_batcher.d.ts.map +1 -1
  184. package/build/video/webgl/buffer/index.d.ts +1 -1
  185. package/build/video/webgl/buffer/instance_buffer.d.ts +54 -0
  186. package/build/video/webgl/buffer/instance_buffer.d.ts.map +1 -0
  187. package/build/video/webgl/buffer/retained_geometry.d.ts +83 -0
  188. package/build/video/webgl/buffer/retained_geometry.d.ts.map +1 -0
  189. package/build/video/webgl/buffer/uniformblock.d.ts +81 -0
  190. package/build/video/webgl/buffer/uniformblock.d.ts.map +1 -0
  191. package/build/video/webgl/buffer/vertexstate.d.ts +101 -0
  192. package/build/video/webgl/buffer/vertexstate.d.ts.map +1 -0
  193. package/build/video/webgl/glshader.d.ts +101 -8
  194. package/build/video/webgl/glshader.d.ts.map +1 -1
  195. package/build/video/webgl/lighting/constants.d.ts +20 -8
  196. package/build/video/webgl/lighting/constants.d.ts.map +1 -1
  197. package/build/video/webgl/lighting/pack.d.ts +1 -1
  198. package/build/video/webgl/lighting/pack3d.d.ts +27 -11
  199. package/build/video/webgl/lighting/pack3d.d.ts.map +1 -1
  200. package/build/video/webgl/lighting/std140.d.ts +110 -0
  201. package/build/video/webgl/lighting/std140.d.ts.map +1 -0
  202. package/build/video/webgl/shaders/multitexture-lit.d.ts +7 -3
  203. package/build/video/webgl/shaders/multitexture-lit.d.ts.map +1 -1
  204. package/build/video/webgl/texture/store.d.ts +52 -0
  205. package/build/video/webgl/texture/store.d.ts.map +1 -0
  206. package/build/video/webgl/utils/maxtextures.d.ts +37 -0
  207. package/build/video/webgl/utils/maxtextures.d.ts.map +1 -0
  208. package/build/video/webgl/utils/samplercache.d.ts +69 -0
  209. package/build/video/webgl/utils/samplercache.d.ts.map +1 -0
  210. package/build/video/webgl/utils/string.d.ts +16 -0
  211. package/build/video/webgl/utils/string.d.ts.map +1 -1
  212. package/build/video/webgl/utils/topology.d.ts +24 -0
  213. package/build/video/webgl/utils/topology.d.ts.map +1 -0
  214. package/build/video/webgl/utils/vertexformat.d.ts +27 -0
  215. package/build/video/webgl/utils/vertexformat.d.ts.map +1 -0
  216. package/build/video/webgl/webgl_renderer.d.ts +148 -30
  217. package/build/video/webgl/webgl_renderer.d.ts.map +1 -1
  218. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts +40 -0
  219. package/build/video/webgpu/batchers/lit_mesh_batcher.d.ts.map +1 -0
  220. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts +82 -0
  221. package/build/video/webgpu/batchers/lit_quad_batcher.d.ts.map +1 -0
  222. package/build/video/webgpu/batchers/mesh_batcher.d.ts +301 -0
  223. package/build/video/webgpu/batchers/mesh_batcher.d.ts.map +1 -0
  224. package/build/video/webgpu/batchers/primitive_batcher.d.ts +39 -0
  225. package/build/video/webgpu/batchers/primitive_batcher.d.ts.map +1 -0
  226. package/build/video/webgpu/batchers/quad_batcher.d.ts +143 -0
  227. package/build/video/webgpu/batchers/quad_batcher.d.ts.map +1 -0
  228. package/build/video/webgpu/batchers/webgpu_batcher.d.ts +70 -0
  229. package/build/video/webgpu/batchers/webgpu_batcher.d.ts.map +1 -0
  230. package/build/video/webgpu/buffer/arena.d.ts +64 -0
  231. package/build/video/webgpu/buffer/arena.d.ts.map +1 -0
  232. package/build/video/webgpu/buffer/instance_buffer.d.ts +65 -0
  233. package/build/video/webgpu/buffer/instance_buffer.d.ts.map +1 -0
  234. package/build/video/webgpu/buffer/retained_geometry.d.ts +55 -0
  235. package/build/video/webgpu/buffer/retained_geometry.d.ts.map +1 -0
  236. package/build/video/webgpu/buffer/uniformring.d.ts +68 -0
  237. package/build/video/webgpu/buffer/uniformring.d.ts.map +1 -0
  238. package/build/video/webgpu/effect_binding.d.ts +17 -0
  239. package/build/video/webgpu/effect_binding.d.ts.map +1 -0
  240. package/build/video/webgpu/pipeline/bindgroups.d.ts +36 -0
  241. package/build/video/webgpu/pipeline/bindgroups.d.ts.map +1 -0
  242. package/build/video/webgpu/pipeline/cache.d.ts +173 -0
  243. package/build/video/webgpu/pipeline/cache.d.ts.map +1 -0
  244. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts +90 -0
  245. package/build/video/webgpu/renderers/tmxlayer/orthogonal.d.ts.map +1 -0
  246. package/build/video/webgpu/shaders/mesh-instanced.d.ts +60 -0
  247. package/build/video/webgpu/shaders/mesh-instanced.d.ts.map +1 -0
  248. package/build/video/webgpu/texture/compressed.d.ts +33 -0
  249. package/build/video/webgpu/texture/compressed.d.ts.map +1 -0
  250. package/build/video/webgpu/texture/frametexture.d.ts +65 -0
  251. package/build/video/webgpu/texture/frametexture.d.ts.map +1 -0
  252. package/build/video/webgpu/texture/store.d.ts +149 -0
  253. package/build/video/webgpu/texture/store.d.ts.map +1 -0
  254. package/build/video/webgpu/webgpu_renderer.d.ts +536 -0
  255. package/build/video/webgpu/webgpu_renderer.d.ts.map +1 -0
  256. package/package.json +2 -2
  257. package/build/video/webgl/effects/blur.d.ts.map +0 -1
  258. package/build/video/webgl/effects/chromaticAberration.d.ts.map +0 -1
  259. package/build/video/webgl/effects/colorMatrix.d.ts.map +0 -1
  260. package/build/video/webgl/effects/desaturate.d.ts.map +0 -1
  261. package/build/video/webgl/effects/dissolve.d.ts.map +0 -1
  262. package/build/video/webgl/effects/dropShadow.d.ts.map +0 -1
  263. package/build/video/webgl/effects/flash.d.ts.map +0 -1
  264. package/build/video/webgl/effects/glow.d.ts.map +0 -1
  265. package/build/video/webgl/effects/hologram.d.ts.map +0 -1
  266. package/build/video/webgl/effects/invert.d.ts.map +0 -1
  267. package/build/video/webgl/effects/outline.d.ts.map +0 -1
  268. package/build/video/webgl/effects/pixelate.d.ts.map +0 -1
  269. package/build/video/webgl/effects/radialGradient.d.ts.map +0 -1
  270. package/build/video/webgl/effects/scanline.d.ts.map +0 -1
  271. package/build/video/webgl/effects/sepia.d.ts.map +0 -1
  272. package/build/video/webgl/effects/shine.d.ts.map +0 -1
  273. package/build/video/webgl/effects/tintPulse.d.ts.map +0 -1
  274. package/build/video/webgl/effects/vignette.d.ts.map +0 -1
  275. package/build/video/webgl/effects/wave.d.ts.map +0 -1
  276. package/build/video/webgl/shadereffect.d.ts.map +0 -1
@@ -0,0 +1,536 @@
1
+
2
+ /**
3
+ * The **experimental** WebGPU renderer.
4
+ *
5
+ * The asynchronous bootstrap — `getContext("webgpu")` at construction, then
6
+ * adapter/device negotiation and canvas configuration in
7
+ * {@link WebGPURenderer#init} (the reason {@link Application#init} is
8
+ * asynchronous at all) — plus the core 2D frame pipeline: one command
9
+ * encoder and one render pass per frame, opened by {@link
10
+ * WebGPURenderer#clear} and submitted by {@link WebGPURenderer#flush}, with
11
+ * a `depth24plus-stencil8` attachment carried from day one (the stencil
12
+ * half serves masks; the depth half is reserved for the mesh path).
13
+ *
14
+ * It is **opt-in only**: `renderer: video.WEBGPU` (or the `#webgpu` URI
15
+ * fragment). `video.AUTO` never selects it, and will not until it reaches
16
+ * feature parity with the WebGL backend.
17
+ * @augments Renderer
18
+ * @category Rendering
19
+ */
20
+ export default class WebGPURenderer extends Renderer {
21
+ /**
22
+ * @param {ApplicationSettings} options - The renderer parameters
23
+ */
24
+ constructor(options: ApplicationSettings);
25
+ /**
26
+ * The WebGPU adapter, set once {@link WebGPURenderer#init} resolves.
27
+ * @type {GPUAdapter|undefined}
28
+ * @readonly
29
+ */
30
+ readonly adapter: GPUAdapter | undefined;
31
+ /**
32
+ * The WebGPU device, set once {@link WebGPURenderer#init} resolves.
33
+ * @name device
34
+ * @type {GPUDevice|undefined}
35
+ * @readonly
36
+ */
37
+ readonly device: GPUDevice | undefined;
38
+ /**
39
+ * The WebGPU canvas context
40
+ * @name context
41
+ * @type {GPUCanvasContext}
42
+ */
43
+ context: GPUCanvasContext;
44
+ /**
45
+ * The preferred canvas texture format reported by the platform,
46
+ * set once {@link WebGPURenderer#init} resolves.
47
+ * @type {string|undefined}
48
+ * @readonly
49
+ */
50
+ readonly preferredFormat: string | undefined;
51
+ cache: TextureCache;
52
+ currentTransform: Matrix3d;
53
+ onGameReset: () => void;
54
+ onCanvasResize: () => void;
55
+ GPUVendor: string | undefined;
56
+ stubTextureView: GPUTextureView | null | undefined;
57
+ /**
58
+ * Restrict rendering to a sub-rectangle of the canvas — the split-screen
59
+ * camera surface (`Camera2d`/`Camera3d._setupNonDefaultProjection`).
60
+ * Callers pass GL-convention rects with a BOTTOM-left origin (the flip is
61
+ * baked into the camera code, which the GL backend depends on); WebGPU
62
+ * viewports are top-left, so it is un-flipped here. The rect applies to
63
+ * canvas passes only — offscreen post-effect targets always render full
64
+ * size, like the GL pool path re-viewporting per target.
65
+ * @param {number} x - viewport x (pixels)
66
+ * @param {number} y - viewport y, bottom-left origin (pixels)
67
+ * @param {number} width - viewport width (pixels)
68
+ * @param {number} height - viewport height (pixels)
69
+ * @override
70
+ */
71
+ override setViewport(x: number, y: number, width: number, height: number): void;
72
+ /**
73
+ * Capture the current frame — everything drawn to the active target so
74
+ * far — into a {@link Texture2d}, entirely on the GPU (an encoder-ordered
75
+ * `copyTextureToTexture`; no readback round-trip). Same contract as the
76
+ * WebGL backend's `toFrameTexture`: a shared, renderer-owned slot by
77
+ * default, `target: null` for a fresh caller-owned capture, or a prior
78
+ * capture as `target` to refresh it in place; `options.region` captures
79
+ * a sub-region (framebuffer pixels, bottom-left origin — converted to
80
+ * this backend's top-left copy origin internally).
81
+ *
82
+ * Two documented divergences from the GL capture:
83
+ * - alpha is preserved (the GL path captures into an opaque RGB texture)
84
+ * - row 0 of the capture is the TOP of the frame (matching `screen_uv`),
85
+ * where the GL capture is bottom-up — GLSL bodies sampling a capture
86
+ * flip with `1.0 - uv.y`; their WGSL twins must not.
87
+ * @param {object} [options]
88
+ * @param {Texture2d|null} [options.target] - omit for the shared renderer
89
+ * slot; a prior capture to refresh it in place; `null` to mint a fresh,
90
+ * caller-owned capture (`destroy()` it yourself when done)
91
+ * @param {Bounds|{x: number, y: number, width: number, height: number}} [options.region] - capture
92
+ * only this sub-region; defaults to the whole frame
93
+ * @returns {Texture2d|null} a GPU-resident texture holding the captured
94
+ * frame, or null when no device is available
95
+ */
96
+ toFrameTexture(options?: {
97
+ target?: Texture2d | null;
98
+ region?: Bounds | {
99
+ x: number;
100
+ y: number;
101
+ width: number;
102
+ height: number;
103
+ } | undefined;
104
+ }): Texture2d | null;
105
+ /**
106
+ * Draw a pooled render target through an effect's pipeline as a
107
+ * screen-space quad — the compositing primitive of the post-effect
108
+ * chain. Blending is disabled for camera blits (the target is fully
109
+ * composited) and kept for per-sprite blits (transparent texels must
110
+ * not overwrite the scene).
111
+ * @param {import("../rendertarget/webgpurendertarget.js").default} source - the target to sample
112
+ * @param {number} x - destination x
113
+ * @param {number} y - destination y
114
+ * @param {number} width - destination width
115
+ * @param {number} height - destination height
116
+ * @param {ShaderEffect} effect - the effect to composite with
117
+ * @param {boolean} [keepBlend=false] - keep the current blend mode
118
+ * @override
119
+ */
120
+ override blitEffect(source: import("../rendertarget/webgpurendertarget.js").default, x: number, y: number, width: number, height: number, effect: ShaderEffect, keepBlend?: boolean): void;
121
+ /**
122
+ * Clear the current clip region with the given color — a full-viewport
123
+ * triangle clipped by the active scissor, drawn with blending replaced
124
+ * (WebGPU has no scissored clear operation). Used mid-frame by
125
+ * ColorLayer and Container backgrounds.
126
+ *
127
+ * Deliberate divergence from the GL backend: because this is a draw,
128
+ * it honors an active stencil mask (GL's `gl.clear` ignores stencil and
129
+ * clears the whole scissor region) — under a mask, the clear fills the
130
+ * mask window only, which is the behavior masks actually promise.
131
+ * @param {Color|string} [color="#000000"] - css color
132
+ * @param {boolean} [opaque=false] - allow transparency or not
133
+ * @override
134
+ */
135
+ override clearColor(color?: Color | string, opaque?: boolean): void;
136
+ /**
137
+ * Erase the pixels in the given rectangular area by setting them to
138
+ * transparent black (rgba(0,0,0,0)).
139
+ * @param {number} x - x axis of the coordinate for the rectangle starting point.
140
+ * @param {number} y - y axis of the coordinate for the rectangle starting point.
141
+ * @param {number} width - The rectangle's width.
142
+ * @param {number} height - The rectangle's height.
143
+ * @override
144
+ */
145
+ override clearRect(x: number, y: number, width: number, height: number): void;
146
+ /**
147
+ * Draw a TMX tile layer: WGSL-eligible layers (`renderMode ===
148
+ * "shader"`) draw through the GPU tile path — one quad per tileset,
149
+ * GID lookup in a per-layer index texture; everything else falls
150
+ * through to the base per-tile loop.
151
+ * @param {object} layer - the TMXLayer to draw
152
+ * @param {object} rect - the visible region in world coords
153
+ * @override
154
+ */
155
+ override drawTileLayer(layer: object, rect: object): void;
156
+ /**
157
+ * Add a batcher to this renderer.
158
+ * @param {WebGPUBatcher} batcher - a batcher instance
159
+ * @param {string} [name="default"] - the batcher name
160
+ * @param {boolean} [activate=false] - true to set this batcher as the active one
161
+ */
162
+ addBatcher(batcher: WebGPUBatcher, name?: string, activate?: boolean): void;
163
+ /**
164
+ * Set the active batcher for this renderer — flush + unbind the
165
+ * outgoing one, bind the incoming. Unlike the GL backend there is no
166
+ * projection re-sync: the projection lives in the shared frame-globals
167
+ * bind group, not in per-program uniforms.
168
+ * @param {string} [name="default"] - a batcher name
169
+ * @returns {WebGPUBatcher} the now-active batcher
170
+ */
171
+ setBatcher(name?: string): WebGPUBatcher;
172
+ /**
173
+ * Draw a textured triangle mesh — the mesh-path contract of the base
174
+ * renderer, on this backend's pipeline-state model. Unlike GL there is
175
+ * no device state to toggle: depth testing (write + LEQUAL) and the
176
+ * per-mesh face culling are axes of the pipeline the mesh batcher
177
+ * looks up per flush, and the once-per-target depth clear is the
178
+ * pass's `depthLoadOp` (armed by `clear()`/`setRenderTarget`).
179
+ * @param {object} mesh - a Mesh object with vertices, uvs, indices, and texture properties
180
+ * @param {Matrix3d} [modelMatrix] - the mesh's model matrix. When given,
181
+ * the mesh is drawn from persistent model-space geometry and placed
182
+ * entirely by uniforms; when omitted, its vertices are taken as
183
+ * already positioned and accumulated through the batcher (the
184
+ * 2D-camera path).
185
+ * @override
186
+ */
187
+ /**
188
+ * Draw one ground shadow per instance of an `InstancedMesh` (#1515), in a
189
+ * single recorded call over the mesh's own instance buffer.
190
+ * @param {InstancedMesh} mesh - the mesh casting the shadows
191
+ * @param {Matrix3d} shadowMatrix - the group matrix flattened onto the ground
192
+ * @param {object} quad - the shared shadow quad
193
+ * @ignore
194
+ */
195
+ drawInstancedShadow(mesh: InstancedMesh, shadowMatrix: Matrix3d, quad: object): void;
196
+ drawMesh(mesh: any, modelMatrix: any): void;
197
+ /**
198
+ * Release any retained geometry held for the given mesh (called from
199
+ * `Mesh.onDeactivateEvent` / `Mesh.destroy`).
200
+ * @param {object} mesh - the mesh whose GPU geometry should be freed
201
+ */
202
+ deleteMeshGeometry(mesh: object): void;
203
+ /**
204
+ * Multiply the given matrix (or 2D affine components) into the current
205
+ * transformation matrix
206
+ * @param {Matrix2d|Matrix3d|number} a - a matrix, or the a component
207
+ * @param {number} [b] - the b component
208
+ * @param {number} [c] - the c component
209
+ * @param {number} [d] - the d component
210
+ * @param {number} [e] - the e component
211
+ * @param {number} [f] - the f component
212
+ */
213
+ transform(a: Matrix2d | Matrix3d | number, b?: number, c?: number, d?: number, e?: number, f?: number): void;
214
+ /**
215
+ * Reset then multiply the transformation matrix
216
+ * @param {Matrix2d|Matrix3d|number} a - a matrix, or the a component
217
+ * @param {number} [b] - the b component
218
+ * @param {number} [c] - the c component
219
+ * @param {number} [d] - the d component
220
+ * @param {number} [e] - the e component
221
+ * @param {number} [f] - the f component
222
+ */
223
+ setTransform(a: Matrix2d | Matrix3d | number, b?: number, c?: number, d?: number, e?: number, f?: number): void;
224
+ /**
225
+ * Return the global alpha
226
+ * @returns {number} global alpha value
227
+ */
228
+ getGlobalAlpha(): number;
229
+ /**
230
+ * Set the blend mode for subsequent draws. Under WebGPU blending is
231
+ * pipeline state: the change is recorded (after draining vertices
232
+ * queued under the previous mode) and the next batcher flush picks the
233
+ * matching pipeline variant.
234
+ * @param {string} [mode="normal"] - blend mode ("normal", "multiply", "additive"/"lighter", "screen", "darken", "lighten", "none")
235
+ * @param {boolean} [premultipliedAlpha=true] - whether textures use premultiplied alpha (affects the source blend factor)
236
+ * @returns {string} the blend mode actually applied
237
+ */
238
+ setBlendMode(mode?: string, premultipliedAlpha?: boolean): string;
239
+ /**
240
+ * Draw an image onto the frame (Canvas-compatible 3/5/9-argument forms).
241
+ * @param {HTMLImageElement|HTMLCanvasElement|HTMLVideoElement|ImageBitmap|OffscreenCanvas|VideoFrame} image - the source image
242
+ * @param {number} sx - source x (or destination x in the 3/5-arg forms)
243
+ * @param {number} sy - source y (or destination y in the 3/5-arg forms)
244
+ * @param {number} [sw] - source width
245
+ * @param {number} [sh] - source height
246
+ * @param {number} [dx] - destination x
247
+ * @param {number} [dy] - destination y
248
+ * @param {number} [dw] - destination width
249
+ * @param {number} [dh] - destination height
250
+ */
251
+ drawImage(image: HTMLImageElement | HTMLCanvasElement | HTMLVideoElement | ImageBitmap | OffscreenCanvas | VideoFrame, sx: number, sy: number, sw?: number, sh?: number, dx?: number, dy?: number, dw?: number, dh?: number): void;
252
+ /**
253
+ * The compressed-texture families this device supports, in the same
254
+ * shape as the GL backend (one key per family; supported families hold
255
+ * an object of WebGL format constants — the values the loader parsers
256
+ * emit — unsupported ones are null, so the shared
257
+ * hasSupportedCompressedFormats works unchanged). PVRTC has no WebGPU
258
+ * equivalent and stays null.
259
+ * @returns {object} one key per extension family
260
+ * @override
261
+ */
262
+ override getSupportedCompressedTextureFormats(): object;
263
+ supportedCompressedFormats: {
264
+ astc: {
265
+ COMPRESSED_RGBA_ASTC_4x4_KHR: number;
266
+ COMPRESSED_RGBA_ASTC_5x4_KHR: number;
267
+ COMPRESSED_RGBA_ASTC_5x5_KHR: number;
268
+ COMPRESSED_RGBA_ASTC_6x5_KHR: number;
269
+ COMPRESSED_RGBA_ASTC_6x6_KHR: number;
270
+ COMPRESSED_RGBA_ASTC_8x5_KHR: number;
271
+ COMPRESSED_RGBA_ASTC_8x6_KHR: number;
272
+ COMPRESSED_RGBA_ASTC_8x8_KHR: number;
273
+ COMPRESSED_SRGB8_ALPHA8_ASTC_4x4_KHR: number;
274
+ COMPRESSED_SRGB8_ALPHA8_ASTC_5x4_KHR: number;
275
+ COMPRESSED_SRGB8_ALPHA8_ASTC_5x5_KHR: number;
276
+ COMPRESSED_SRGB8_ALPHA8_ASTC_6x5_KHR: number;
277
+ COMPRESSED_SRGB8_ALPHA8_ASTC_6x6_KHR: number;
278
+ COMPRESSED_SRGB8_ALPHA8_ASTC_8x5_KHR: number;
279
+ COMPRESSED_SRGB8_ALPHA8_ASTC_8x6_KHR: number;
280
+ COMPRESSED_SRGB8_ALPHA8_ASTC_8x8_KHR: number;
281
+ } | null;
282
+ bptc: {
283
+ COMPRESSED_RGBA_BPTC_UNORM_EXT: number;
284
+ } | null;
285
+ s3tc: {
286
+ COMPRESSED_RGB_S3TC_DXT1_EXT: number;
287
+ COMPRESSED_RGBA_S3TC_DXT3_EXT: number;
288
+ COMPRESSED_RGBA_S3TC_DXT5_EXT: number;
289
+ } | null;
290
+ s3tc_srgb: {
291
+ COMPRESSED_SRGB_S3TC_DXT1_EXT: number;
292
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT1_EXT: number;
293
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT3_EXT: number;
294
+ COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT: number;
295
+ } | null;
296
+ pvrtc: null;
297
+ etc1: {
298
+ COMPRESSED_RGB_ETC1_WEBGL: number;
299
+ } | null;
300
+ etc2: {
301
+ COMPRESSED_RGB8_ETC2: number;
302
+ COMPRESSED_SRGB8_ETC2: number;
303
+ COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2: number;
304
+ COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2: number;
305
+ COMPRESSED_RGBA8_ETC2_EAC: number;
306
+ COMPRESSED_SRGB8_ALPHA8_ETC2_EAC: number;
307
+ COMPRESSED_R11_EAC: number;
308
+ COMPRESSED_SIGNED_R11_EAC: number;
309
+ COMPRESSED_RG11_EAC: number;
310
+ COMPRESSED_SIGNED_RG11_EAC: number;
311
+ } | null;
312
+ } | undefined;
313
+ /**
314
+ * Pack the active 2D lights and hand the std140 block to the lit
315
+ * batcher — the WebGPU realization of the backend-neutral lighting
316
+ * contract (Camera2d calls this once per camera per frame).
317
+ * @param {Set<Light2d>|Array<Light2d>} lights - active lights
318
+ * @param {Color} ambient - the ambient lighting floor
319
+ * @param {number} [translateX=0] - camera translate x
320
+ * @param {number} [translateY=0] - camera translate y
321
+ * @override
322
+ */
323
+ override setLightUniforms(lights: Set<Light2d> | Array<Light2d>, ambient: Color, translateX?: number, translateY?: number): void;
324
+ lightUniformsScratch: import("../webgl/lighting/pack.ts").LightUniformScratch | undefined;
325
+ /**
326
+ * Draw a Light2d glow quad through the radial-gradient effect's
327
+ * single-effect fast path — the light's color and intensity ride the
328
+ * per-vertex tint, so back-to-back lights share the same pipeline.
329
+ * @param {Light2d} light - the light to draw
330
+ * @override
331
+ */
332
+ override drawLight(light: Light2d): void;
333
+ lightShader: RadialGradientEffect | undefined;
334
+ lightAtlas: TextureAtlas | undefined;
335
+ /**
336
+ * Draw a pattern within the given rectangle.
337
+ * @param {TextureAtlas} pattern - pattern object returned by {@link WebGPURenderer#createPattern}
338
+ * @param {number} x - x position where to draw the pattern
339
+ * @param {number} y - y position where to draw the pattern
340
+ * @param {number} width - width of the pattern
341
+ * @param {number} height - height of the pattern
342
+ */
343
+ drawPattern(pattern: TextureAtlas, x: number, y: number, width: number, height: number): void;
344
+ /**
345
+ * Create a pattern with the specified repetition
346
+ * @param {HTMLImageElement|SVGImageElement|HTMLVideoElement|HTMLCanvasElement|ImageBitmap|OffscreenCanvas|VideoFrame} image - source image
347
+ * @param {string} [repeat="no-repeat"] - one of `"repeat"` / `"repeat-x"` / `"repeat-y"` / `"no-repeat"`
348
+ * @returns {TextureAtlas} the patterned texture created
349
+ */
350
+ createPattern(image: HTMLImageElement | SVGImageElement | HTMLVideoElement | HTMLCanvasElement | ImageBitmap | OffscreenCanvas | VideoFrame, repeat?: string): TextureAtlas;
351
+ savedBlendMode: string | undefined;
352
+ /**
353
+ * A mask limits rendering elements to the shape and position of the
354
+ * given mask object — realized on the stencil half of the pass's
355
+ * depth-stencil attachment, exactly like the GL backend: a write
356
+ * phase increments the stencil under the mask shape (color writes
357
+ * off), then the render phase only passes fragments where the stencil
358
+ * equals the current mask level (or 0 when inverted).
359
+ *
360
+ * Entering the first mask level clears the stencil, which WebGPU can
361
+ * only do at a pass boundary — the frame's pass is broken and
362
+ * restarted with `stencilLoadOp: "clear"` (color preserved).
363
+ * (Note: masks are not preserved through save/restore and need to be
364
+ * manually cleared, same as the other backends.)
365
+ * @param {Rect|RoundRect|Polygon|Line|Ellipse} [mask] - the shape defining the mask to be applied
366
+ * @param {boolean} [invert=false] - either the given shape should define what is visible (default) or the opposite
367
+ */
368
+ setMask(mask?: Rect | RoundRect | Polygon | Line | Ellipse, invert?: boolean): void;
369
+ maskDepthWarned: boolean | undefined;
370
+ /**
371
+ * Stroke an arc at the specified coordinates with given radius, start and end points
372
+ * @param {number} x - arc center point x-axis
373
+ * @param {number} y - arc center point y-axis
374
+ * @param {number} radius - arc radius
375
+ * @param {number} start - start angle in radians
376
+ * @param {number} end - end angle in radians
377
+ * @param {boolean} [antiClockwise=false] - draw arc anti-clockwise
378
+ * @param {boolean} [fill=false] - also fill the shape with the current color if true
379
+ */
380
+ strokeArc(x: number, y: number, radius: number, start: number, end: number, antiClockwise?: boolean, fill?: boolean): void;
381
+ /**
382
+ * Fill an arc at the specified coordinates with given radius, start and end points
383
+ * @param {number} x - arc center point x-axis
384
+ * @param {number} y - arc center point y-axis
385
+ * @param {number} radius - arc radius
386
+ * @param {number} start - start angle in radians
387
+ * @param {number} end - end angle in radians
388
+ * @param {boolean} [antiClockwise=false] - draw arc anti-clockwise
389
+ */
390
+ fillArc(x: number, y: number, radius: number, start: number, end: number, antiClockwise?: boolean): void;
391
+ /**
392
+ * Fill a line between the given two points
393
+ * @param {number} startX - the start x coordinate
394
+ * @param {number} startY - the start y coordinate
395
+ * @param {number} endX - the end x coordinate
396
+ * @param {number} endY - the end y coordinate
397
+ */
398
+ fillLine(startX: number, startY: number, endX: number, endY: number): void;
399
+ /**
400
+ * Stroke a Polygon on the screen with the current color
401
+ * @param {Polygon} poly - the shape to draw
402
+ * @param {boolean} [fill=false] - also fill the shape with the current color if true
403
+ */
404
+ strokePolygon(poly: Polygon, fill?: boolean): void;
405
+ /**
406
+ * Fill a Polygon on the screen
407
+ * @param {Polygon} poly - the shape to draw
408
+ */
409
+ fillPolygon(poly: Polygon): void;
410
+ /**
411
+ * Stroke a rounded rectangle at the specified coordinates
412
+ * @param {number} x - x axis of the coordinate for the rounded rectangle starting point
413
+ * @param {number} y - y axis of the coordinate for the rounded rectangle starting point
414
+ * @param {number} width - the rounded rectangle's width
415
+ * @param {number} height - the rounded rectangle's height
416
+ * @param {number} radius - the rounded corner's radius
417
+ * @param {boolean} [fill=false] - also fill the shape with the current color if true
418
+ */
419
+ strokeRoundRect(x: number, y: number, width: number, height: number, radius: number, fill?: boolean): void;
420
+ /**
421
+ * Draw a rounded filled rectangle at the specified coordinates
422
+ * @param {number} x - x axis of the coordinate for the rounded rectangle starting point
423
+ * @param {number} y - y axis of the coordinate for the rounded rectangle starting point
424
+ * @param {number} width - the rounded rectangle's width
425
+ * @param {number} height - the rounded rectangle's height
426
+ * @param {number} radius - the rounded corner's radius
427
+ */
428
+ fillRoundRect(x: number, y: number, width: number, height: number, radius: number): void;
429
+ /**
430
+ * Stroke a Point at the specified coordinates
431
+ * @param {number} x - x axis of the coordinate for the point
432
+ * @param {number} y - y axis of the coordinate for the point
433
+ */
434
+ strokePoint(x: number, y: number): void;
435
+ /**
436
+ * Draw a point at the specified coordinates
437
+ * @param {number} x - x axis of the coordinate for the point
438
+ * @param {number} y - y axis of the coordinate for the point
439
+ */
440
+ fillPoint(x: number, y: number): void;
441
+ /**
442
+ * starts a new path by emptying the list of sub-paths
443
+ */
444
+ beginPath(): void;
445
+ /**
446
+ * begins a new sub-path at the point specified by the given (x, y) coordinates
447
+ * @param {number} x - the x axis of the point
448
+ * @param {number} y - the y axis of the point
449
+ */
450
+ moveTo(x: number, y: number): void;
451
+ /**
452
+ * adds a straight line to the current sub-path
453
+ * @param {number} x - the x axis of the point
454
+ * @param {number} y - the y axis of the point
455
+ */
456
+ lineTo(x: number, y: number): void;
457
+ /**
458
+ * Adds a quadratic Bezier curve to the current sub-path.
459
+ * @param {number} cpx - the x-axis coordinate of the control point
460
+ * @param {number} cpy - the y-axis coordinate of the control point
461
+ * @param {number} x - the x-axis coordinate of the end point
462
+ * @param {number} y - the y-axis coordinate of the end point
463
+ */
464
+ quadraticCurveTo(cpx: number, cpy: number, x: number, y: number): void;
465
+ /**
466
+ * Adds a cubic Bezier curve to the current sub-path.
467
+ * @param {number} cp1x - the x-axis coordinate of the first control point
468
+ * @param {number} cp1y - the y-axis coordinate of the first control point
469
+ * @param {number} cp2x - the x-axis coordinate of the second control point
470
+ * @param {number} cp2y - the y-axis coordinate of the second control point
471
+ * @param {number} x - the x-axis coordinate of the end point
472
+ * @param {number} y - the y-axis coordinate of the end point
473
+ */
474
+ bezierCurveTo(cp1x: number, cp1y: number, cp2x: number, cp2y: number, x: number, y: number): void;
475
+ /**
476
+ * Adds a circular arc to the current sub-path, using the given control points and radius.
477
+ * @param {number} x1 - the x-axis coordinate of the first control point
478
+ * @param {number} y1 - the y-axis coordinate of the first control point
479
+ * @param {number} x2 - the x-axis coordinate of the second control point
480
+ * @param {number} y2 - the y-axis coordinate of the second control point
481
+ * @param {number} radius - the arc's radius; must be non-negative
482
+ */
483
+ arcTo(x1: number, y1: number, x2: number, y2: number, radius: number): void;
484
+ /**
485
+ * creates a rectangular path whose starting point is at (x, y)
486
+ * @param {number} x - the x axis of the coordinate for the rectangle starting point
487
+ * @param {number} y - the y axis of the coordinate for the rectangle starting point
488
+ * @param {number} width - the rectangle's width
489
+ * @param {number} height - the rectangle's height
490
+ */
491
+ rect(x: number, y: number, width: number, height: number): void;
492
+ /**
493
+ * adds a rounded rectangle to the current path
494
+ * @param {number} x - the x axis of the coordinate for the rectangle starting point
495
+ * @param {number} y - the y axis of the coordinate for the rectangle starting point
496
+ * @param {number} width - the rectangle's width
497
+ * @param {number} height - the rectangle's height
498
+ * @param {number} radii - the corner radius
499
+ */
500
+ roundRect(x: number, y: number, width: number, height: number, radii: number): void;
501
+ /**
502
+ * add a straight line from the current point to the start of the current sub-path
503
+ */
504
+ closePath(): void;
505
+ /**
506
+ * stroke the given shape or the current defined path
507
+ * @param {Rect|RoundRect|Polygon|Line|Ellipse|Bounds} [shape] - a shape object to stroke
508
+ * @param {boolean} [fill=false] - fill the shape with the current color if true
509
+ */
510
+ stroke(shape?: Rect | RoundRect | Polygon | Line | Ellipse | Bounds, fill?: boolean): void;
511
+ /**
512
+ * fill the given shape or the current defined path
513
+ * @param {Rect|RoundRect|Polygon|Line|Ellipse|Bounds} [shape] - a shape object to fill
514
+ */
515
+ fill(shape?: Rect | RoundRect | Polygon | Line | Ellipse | Bounds): void;
516
+ /**
517
+ * Returns the WebGPU canvas context
518
+ * @returns {GPUCanvasContext} the WebGPU canvas context
519
+ */
520
+ getContext(): GPUCanvasContext;
521
+ }
522
+ import Renderer from "../renderer.js";
523
+ import OrthogonalTMXLayerGPURenderer from "./renderers/tmxlayer/orthogonal.js";
524
+ import TextureCache from "../texture/cache.js";
525
+ import { Matrix3d } from "../../math/matrix3d.ts";
526
+ import { Bounds } from "../../physics/bounds.ts";
527
+ import WebGPUPipelineCache from "./pipeline/cache.js";
528
+ import WebGPUBufferArena from "./buffer/arena.js";
529
+ import WebGPUUniformRing from "./buffer/uniformring.js";
530
+ import WebGPUTextureStore from "./texture/store.js";
531
+ import WebGPURenderTarget from "../rendertarget/webgpurendertarget.js";
532
+ import { Color } from "../../math/color.ts";
533
+ import WebGPUBatcher from "./batchers/webgpu_batcher.js";
534
+ import RadialGradientEffect from "../effects/radialGradient.js";
535
+ import { TextureAtlas } from "../texture/atlas.js";
536
+ //# sourceMappingURL=webgpu_renderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"webgpu_renderer.d.ts","sourceRoot":"","sources":["../../../src/video/webgpu/webgpu_renderer.js"],"names":[],"mappings":"AAsDA;;;;;;;;;;;;;;;GAeG;AACH,iDANW,OAAO,qBACP,OAAO,GACL;IAAC,WAAW,EAAE,MAAM,CAAC;IAAC,YAAY,EAAE,MAAM,CAAA;CAAC,CAYvD;AAED;;;;;;;;;;;;;;;;;GAiBG;AACH;IACC;;OAEG;IACH,qBAFW,mBAAmB,EAyR7B;IAjRA;;;;OAIG;IACH,kBAHU,UAAU,GAAC,SAAS,CAGN;IAExB;;;;;OAKG;IACH,iBAHU,SAAS,GAAC,SAAS,CAGN;IAEvB;;;;OAIG;IACH,SAFU,gBAAgB,CAEc;IAExC;;;;;OAKG;IACH,0BAHU,MAAM,GAAC,SAAS,CAGM;IA0BhC;mBACe;IACf,iEAAsC;IAGtC,oBAAmC;IAInC,2BAAyD;IAKzD;mBACe;IACf,qBAA2B;IAG3B;mBACe;IACf;;;QAEE;IACF;mBACe;IACf,iBAAmB;IAEnB;mBACe;IACf,iBAA4B;IAE5B;mBACe;IACf,uBAAuB;IAEvB;;;;;OAKG;IACH,UAJU,GAAG,CAAC,MAAM,EAAE,MAAM,CAAC,CAIJ;IAEzB;;;;OAIG;IACH,oBAA0B;IAG1B;mBACe;IACf,0CAAyB;IACzB;mBACe;IACf,sCAAuB;IAEvB;mBACe;IACf,qCAAsB;IACtB;mBACe;IACf,sCAAuB;IACvB;mBACe;IACf,wCAAwB;IAGx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ACN,MAAM,MACN,MAAM,UACN,MAAM,QAIhB;IAED;;;;;;OAMG;IACH,QALW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,QAIhB;IAED;;;;;;;OAOG;IACH,aANW,MAAM,KACN,MAAM,SACN,MAAM,UACN,MAAM,SACN,MAAM,QAIhB;IAED;;OAEG;IACH,kBAEC;IAED;;;;OAIG;IACH,eAHW,IAAI,GAAC,SAAS,GAAC,OAAO,GAAC,IAAI,GAAC,OAAO,GAAC,MAAM,SAC1C,OAAO,QA2BjB;IAED;;;OAGG;IACH,aAFW,IAAI,GAAC,SAAS,GAAC,OAAO,GAAC,IAAI,GAAC,OAAO,GAAC,MAAM,QAIpD;IAmCD;;;;;OAKG;IACH,+BAwCC;IAED;;;OAGG;IACH,cAFa,gBAAgB,CAI5B;CA0ED;qBAjuGoB,gBAAgB;0CA4BK,oCAAoC;yBAxBrD,qBAAqB;yBAnBrB,wBAAwB;uBAC1B,yBAAyB;gCAyCzC,qBAAqB;8BALE,mBAAmB;8BACnB,yBAAyB;+BAQxB,oBAAoB;+BA7BpB,uCAAuC;sBAlBrC,qBAAqB;0BAqC5B,8BAA8B;iCAvBvB,8BAA8B;6BAKrB,qBAAqB"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "melonjs",
3
- "version": "19.9.1",
3
+ "version": "20.1.0",
4
4
  "description": "melonJS Game Engine",
5
5
  "homepage": "http://www.melonjs.org/",
6
6
  "type": "module",
@@ -86,7 +86,7 @@
86
86
  "serve": "serve docs",
87
87
  "prepublishOnly": "pnpm dist:publish",
88
88
  "clean": "tsx scripts/clean.ts",
89
- "types": "tsc --project tsconfig.build.json",
89
+ "types": "tsc --project tsconfig.build.json && tsx scripts/strip-internal.ts",
90
90
  "test:types": "tsc"
91
91
  }
92
92
  }
@@ -1 +0,0 @@
1
- {"version":3,"file":"blur.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/blur.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,QAAQ;QACN,WAAW;KACxC,EA8BA;IALA,iBAAuC;IAOxC;;;OAGG;IACH,sBAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBAnEwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"chromaticAberration.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/chromaticAberration.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,MAAM;QACJ,WAAW;KACxC,EAuBA;IALA,eAAmC;IAOpC;;;OAGG;IACH,kBAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBA/DwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"colorMatrix.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/colorMatrix.js"],"names":[],"mappings":"AAGA;;;;;;;;;;;;;;GAcG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA8B,MAAM;KACtC,EAkBA;IANA;;;OAGG;IACH,qBAAkD;IAInD;;;OAGG;IACH,qBAEC;IAED;;;OAGG;IACH,SAFa,IAAI,CAMhB;IAED;;;;OAIG;IACH,mBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,iBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,eAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,GACJ,IAAI,CAMhB;IAED;;;;OAIG;IACH,iBAHW,WAAW,GACT,IAAI,CAMhB;IAED;;;;;OAKG;IACH,mBAHc,MAAM,EAAA,GACP,IAAI,CAMhB;CACD;yBApJwB,oBAAoB;4BADjB,+BAA+B"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"desaturate.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/desaturate.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;KACpC,EAMA;IAHA,kBACgE;IAIjE;;;OAGG;IACH,oBAFW,MAAM,QAKhB;CACD;8BAnC6B,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dissolve.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/dissolve.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,QAAQ;QACN,SAAS;QACX,SAAS;KACpC,EA0DA;IAPA,iBAAuC;IASxC;;;OAGG;IACH,mBAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,oBAFW,MAAM,EAAE,QAIlB;CACD;yBApGwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"dropShadow.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/dropShadow.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;GAcG;AACH;IACC;;;;;;;;OAQG;IACH,sBARW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,OAAO;QACP,OAAO;QACL,KAAK;QACP,OAAO;QACL,WAAW;KACxC,EAmCA;IAED;;;;OAIG;IACH,aAHW,MAAM,KACN,MAAM,QAIhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBAhFwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"flash.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/flash.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;GAoBG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,SAAS;KACpC,EAkBA;IAJA,kBAAyC;IAM1C;;;OAGG;IACH,oBAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;CACD;yBAjEwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"glow.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/glow.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH;IACC;;;;;;;OAOG;IACH,sBAPW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACL,SAAS;QACP,WAAW;KACxC,EAsCA;IANA,kBAAyC;IAQ1C;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;IAED;;;OAGG;IACH,oBAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBAxFwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"hologram.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/hologram.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;GAYG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,SAAS;KACpC,EAyBA;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;CACD;yBAvDwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"invert.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/invert.js"],"names":[],"mappings":"AAEA;;;;;;;;;;GAUG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;KACpC,EAMA;IAHA,kBACgE;IAIjE;;;OAGG;IACH,oBAFW,MAAM,QAKhB;CACD;8BAlC6B,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"outline.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/outline.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACH,WAAW;KACxC,EAsCA;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAIhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBA1FwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"pixelate.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/pixelate.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,IAAI;QACF,WAAW;KACxC,EAoBA;IALA,aAA+B;IAOhC;;;OAGG;IACH,cAFW,MAAM,QAKhB;IAED;;;;OAIG;IACH,sBAHW,MAAM,UACN,MAAM,QAIhB;CACD;yBA3DwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"radialGradient.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/radialGradient.js"],"names":[],"mappings":"AAEA;;;;GAIG;AAEH;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAsEG;AACH;IACC;;;;;OAKG;IACH,sBALW,aAAa,YAErB;QAAwB,KAAK;QACJ,SAAS;KACpC,EA0CA;IAZA,qCAAoC;IAcrC;;;;OAIG;IACH,gBAFW,KAAK,QAOf;IAED;;;;OAIG;IACH,wBAFW,MAAM,QAIhB;CACD;yBArJwB,oBAAoB;2BAInB,wBAAwB;8CACL,sBAAsB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"scanline.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/scanline.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,OAAO;QACP,SAAS;QACT,gBAAgB;KAC3C,EAyCA;IAED;;;OAGG;IACH,oBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,8BAFW,MAAM,QAIhB;CACD;yBA3FwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"sepia.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/sepia.js"],"names":[],"mappings":"AAEA;;;;;;;;;GASG;AACH;IACC;;;;OAIG;IACH,sBAJW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;KACpC,EAMA;IAHA,kBACgE;IAIjE;;;OAGG;IACH,oBAFW,MAAM,QAKhB;CACD;8BAjC6B,kBAAkB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shine.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/shine.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAmCG;AACH;IACC;;;;;;;;;;;OAWG;IACH,sBAXW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACL,KAAK;QACL,SAAS;QACT,KAAK;QACL,KAAK;QACL,UAAU;QACV,UAAU;KACrC,EAuDA;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,oBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFW,MAAM,QAIhB;CACD;yBA1IwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"tintPulse.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/tintPulse.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;;GAgBG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAA2B,KAAK;QACP,KAAK;QACL,SAAS;KACpC,EAqBA;IAED;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,gBAFW,MAAM,EAAE,QAIlB;CACD;yBAhEwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"vignette.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/vignette.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;;;;;GAeG;AACH;IACC;;;;;OAKG;IACH,sBALW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,QAAQ;QACR,IAAI;KAC/B,EAoBA;IALA,iBAAwC;IACxC,aAAgC;IAMjC;;;OAGG;IACH,sBAFW,MAAM,QAKhB;IAED;;;OAGG;IACH,cAFW,MAAM,QAKhB;CACD;yBA/DwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"wave.d.ts","sourceRoot":"","sources":["../../../../src/video/webgl/effects/wave.js"],"names":[],"mappings":"AAEA;;;;;;;;;;;GAWG;AACH;IACC;;;;;;OAMG;IACH,sBANW,OAAO,sBAAsB,EAAE,OAAO,YAE9C;QAAyB,SAAS;QACT,SAAS;QACT,KAAK;KAChC,EAqBA;IAED;;;OAGG;IACH,cAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;IAED;;;OAGG;IACH,wBAFW,MAAM,QAIhB;CACD;yBAnEwB,oBAAoB"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shadereffect.d.ts","sourceRoot":"","sources":["../../../src/video/webgl/shadereffect.js"],"names":[],"mappings":"AAoHA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