@haiyue/extensions 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.
Files changed (293) hide show
  1. package/LICENSE +21 -0
  2. package/README.md +30 -0
  3. package/dist/animation/Animation2DComponent.d.ts +46 -0
  4. package/dist/animation/Animation2DExtensionRegistry.d.ts +27 -0
  5. package/dist/animation/Animation2DRenderSystem.d.ts +89 -0
  6. package/dist/animation/Animation2DRuntime.d.ts +99 -0
  7. package/dist/animation/Animation2DStateMachine.d.ts +13 -0
  8. package/dist/animation/Animation2DStateMachineComponent.d.ts +54 -0
  9. package/dist/animation/Animation2DStateMachineRuntime.d.ts +30 -0
  10. package/dist/animation/Animation2DStateMachineSystem.d.ts +14 -0
  11. package/dist/animation/Animation2DStateMachineVisualRuntime.d.ts +27 -0
  12. package/dist/animation/Animation2DSystem.d.ts +14 -0
  13. package/dist/animation/AnimationAssetLoader.d.ts +9 -0
  14. package/dist/animation/AnimationAudioClip.d.ts +26 -0
  15. package/dist/animation/AnimationPathTessellator.d.ts +52 -0
  16. package/dist/animation/AnimationTextRasterizer.d.ts +21 -0
  17. package/dist/animation/AnimationVisual2D.d.ts +68 -0
  18. package/dist/animation/HyaAnimation2DClipAdapter.d.ts +16 -0
  19. package/dist/animation/Particle2DDescriptorAdapter.d.ts +5 -0
  20. package/dist/animation/runtime/mixer/Action.d.ts +150 -0
  21. package/dist/animation/runtime/mixer/Mixer.d.ts +54 -0
  22. package/dist/animation/runtime/mixer/PoseBuffer.d.ts +23 -0
  23. package/dist/animation/runtime/mixer/Sampler.d.ts +17 -0
  24. package/dist/animation/runtime/mixer/Types.d.ts +101 -0
  25. package/dist/animation/runtime/mixer/index.d.ts +6 -0
  26. package/dist/animation-state-machine/AnimationStateMachine.d.ts +111 -0
  27. package/dist/animation-state-machine/AnimationStateMachineChannels.d.ts +23 -0
  28. package/dist/animation-state-machine/runtime/Animation2DStateMachineMixerAdapter.d.ts +51 -0
  29. package/dist/animation-state-machine/runtime/AnimationStateMachineBlendTreeWeights.d.ts +14 -0
  30. package/dist/animation-state-machine/runtime/AnimationStateMachineCompiler.d.ts +109 -0
  31. package/dist/animation-state-machine/runtime/AnimationStateMachineController.d.ts +103 -0
  32. package/dist/animation-state-machine/runtime/AnimationStateMachineMixerPort.d.ts +35 -0
  33. package/dist/animation-state-machine/runtime/index.d.ts +7 -0
  34. package/dist/animation.d.ts +15 -0
  35. package/dist/animation.js +1171 -0
  36. package/dist/animation3d/Animation3DAction.d.ts +46 -0
  37. package/dist/animation3d/Animation3DBinding.d.ts +85 -0
  38. package/dist/animation3d/Animation3DClip.d.ts +20 -0
  39. package/dist/animation3d/Animation3DError.d.ts +13 -0
  40. package/dist/animation3d/Animation3DMixer.d.ts +27 -0
  41. package/dist/animation3d/Animation3DPose.d.ts +40 -0
  42. package/dist/animation3d/Animation3DPoseBuffer.d.ts +24 -0
  43. package/dist/animation3d/Animation3DResource.d.ts +28 -0
  44. package/dist/animation3d/Animation3DStateMachine.d.ts +95 -0
  45. package/dist/animation3d/Animation3DStateMachineRuntime.d.ts +70 -0
  46. package/dist/animation3d/Animation3DTrack.d.ts +19 -0
  47. package/dist/animation3d/hya/HyaAnimation3DRuntime.d.ts +73 -0
  48. package/dist/animation3d/hya/HyaAnimation3DStateMachineRuntime.d.ts +65 -0
  49. package/dist/animation3d/hya/HyaAnimation3DTypes.d.ts +170 -0
  50. package/dist/animation3d/hya/index.d.ts +4 -0
  51. package/dist/animation3d/index.d.ts +14 -0
  52. package/dist/animation3d/runtime/integration/Animation3DStateMachineMixerAdapter.d.ts +81 -0
  53. package/dist/animation3d/runtime/integration/Animation3DStateMachineMixerIntegration.d.ts +39 -0
  54. package/dist/animation3d/runtime/integration/index.d.ts +2 -0
  55. package/dist/animation3d/runtime/mixer/Action.d.ts +150 -0
  56. package/dist/animation3d/runtime/mixer/Animation3DMixerRuntimeStore.d.ts +6 -0
  57. package/dist/animation3d/runtime/mixer/Mixer.d.ts +59 -0
  58. package/dist/animation3d/runtime/mixer/PoseBuffer.d.ts +1 -0
  59. package/dist/animation3d/runtime/mixer/TrackSampler.d.ts +24 -0
  60. package/dist/animation3d/runtime/mixer/index.d.ts +4 -0
  61. package/dist/animation3d/runtime/state-machine/Animation3DBlendTreeWeights.d.ts +1 -0
  62. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineCompiler.d.ts +1 -0
  63. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineController.d.ts +1 -0
  64. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineMixerPort.d.ts +1 -0
  65. package/dist/animation3d/runtime/state-machine/index.d.ts +6 -0
  66. package/dist/animation3d.d.ts +5 -0
  67. package/dist/animation3d.js +1708 -0
  68. package/dist/benchmark.d.ts +30 -0
  69. package/dist/benchmark.js +119 -0
  70. package/dist/canvas-text/CanvasText2DRenderSystem.d.ts +24 -0
  71. package/dist/canvas-text/CanvasTextComponent.d.ts +18 -0
  72. package/dist/canvas-text.d.ts +4 -0
  73. package/dist/canvas-text.js +276 -0
  74. package/dist/chunks/2d-ui-animation-2d.generated-D4aHzFU2.js +4 -0
  75. package/dist/chunks/2d-ui-canvas-text-2d.generated-C0Eaej2m.js +4 -0
  76. package/dist/chunks/2d-ui-spine2d.generated-CUUi8xjl.js +4 -0
  77. package/dist/chunks/2d-ui-tilemap2d.generated-gebw4mX7.js +4 -0
  78. package/dist/chunks/Animation2DStateMachine-9IonguNa.js +3245 -0
  79. package/dist/chunks/AnimationStateMachineController-BIcAh-sT.js +1438 -0
  80. package/dist/chunks/GltfAnimation3DAdapter-Cu3rQQsW.js +2240 -0
  81. package/dist/chunks/GltfAnimationRuntime-CRHsLycN.js +631 -0
  82. package/dist/chunks/RenderSystem2DBase-DDT61dAu.js +227 -0
  83. package/dist/chunks/Spine2DRuntime-D9M9LAQR.js +3056 -0
  84. package/dist/chunks/SpineAssetParser-BSDmPge1.js +378 -0
  85. package/dist/chunks/gltfLoader-Dm22jLYB.js +2085 -0
  86. package/dist/chunks/pluginUtils-CvwroRMd.js +33 -0
  87. package/dist/experimental-gltf-worker.d.ts +4 -0
  88. package/dist/experimental-gltf-worker.js +138 -0
  89. package/dist/experimental-spine-worker.d.ts +4 -0
  90. package/dist/experimental-spine-worker.js +110 -0
  91. package/dist/gltf/GltfAccessorReader.d.ts +7 -0
  92. package/dist/gltf/GltfAnimation3DAdapter.d.ts +47 -0
  93. package/dist/gltf/GltfAnimationRuntime.d.ts +10 -0
  94. package/dist/gltf/GltfAssetWorkerClient.d.ts +20 -0
  95. package/dist/gltf/GltfCompatibilityReport.d.ts +70 -0
  96. package/dist/gltf/GltfConservativeBounds.d.ts +18 -0
  97. package/dist/gltf/GltfDracoDecoder.d.ts +4 -0
  98. package/dist/gltf/GltfExtensionAdapter.d.ts +54 -0
  99. package/dist/gltf/GltfLoaderContract.d.ts +249 -0
  100. package/dist/gltf/GltfLoaderErrors.d.ts +4 -0
  101. package/dist/gltf/GltfMaterialDescriptor.d.ts +23 -0
  102. package/dist/gltf/GltfMaterialEncoder.d.ts +20 -0
  103. package/dist/gltf/GltfMaterialLoader.d.ts +6 -0
  104. package/dist/gltf/GltfModelComponent.d.ts +72 -0
  105. package/dist/gltf/GltfModelSystem.d.ts +37 -0
  106. package/dist/gltf/GltfPlugin.d.ts +6 -0
  107. package/dist/gltf/GltfSchema.d.ts +225 -0
  108. package/dist/gltf/GltfUvSemanticPlanner.d.ts +33 -0
  109. package/dist/gltf/gltfLoader.d.ts +9 -0
  110. package/dist/gltf-animation3d.d.ts +3 -0
  111. package/dist/gltf-animation3d.js +8 -0
  112. package/dist/gltf-worker-runtime.d.ts +7 -0
  113. package/dist/gltf-worker-runtime.js +6981 -0
  114. package/dist/gltf.d.ts +12 -0
  115. package/dist/gltf.js +517 -0
  116. package/dist/grid/Grid2DComponent.d.ts +25 -0
  117. package/dist/grid.d.ts +2 -0
  118. package/dist/grid.js +56 -0
  119. package/dist/hya-state-machine.d.ts +7 -0
  120. package/dist/hya-state-machine.js +2934 -0
  121. package/dist/index.d.ts +2 -0
  122. package/dist/index.js +7 -0
  123. package/dist/internal/2d-ui-shader-artifact.js +870 -0
  124. package/dist/plugins/pluginUtils.d.ts +20 -0
  125. package/dist/plugins.d.ts +6 -0
  126. package/dist/shaders/generated/2d-ui-artifact.generated.d.ts +658 -0
  127. package/dist/spine/Spine2DComponent.d.ts +116 -0
  128. package/dist/spine/Spine2DGpuRenderer.d.ts +65 -0
  129. package/dist/spine/Spine2DRenderSystem.d.ts +27 -0
  130. package/dist/spine/Spine2DRuntime.d.ts +103 -0
  131. package/dist/spine/SpineAnimationBoneTimelines.d.ts +8 -0
  132. package/dist/spine/SpineAssetParser.d.ts +18 -0
  133. package/dist/spine/SpineAssetWorkerClient.d.ts +19 -0
  134. package/dist/spine/SpineAssetWorkerContract.d.ts +6 -0
  135. package/dist/spine/SpineAtlasParser.d.ts +21 -0
  136. package/dist/spine/SpineFloatBuilder.d.ts +15 -0
  137. package/dist/spine/SpinePathConstraintSolver.d.ts +32 -0
  138. package/dist/spine/SpinePlugin.d.ts +8 -0
  139. package/dist/spine/SpineSkeletonRuntime.d.ts +185 -0
  140. package/dist/spine/SpineSlotAnimation.d.ts +17 -0
  141. package/dist/spine/SpineTimelineRuntime.d.ts +25 -0
  142. package/dist/spine/SpineVertexBuilder.d.ts +61 -0
  143. package/dist/spine.d.ts +7 -0
  144. package/dist/spine.js +578 -0
  145. package/dist/tilemap/Tilemap2DComponent.d.ts +110 -0
  146. package/dist/tilemap/Tilemap2DRenderSystem.d.ts +11 -0
  147. package/dist/tilemap/Tilemap2DRenderer.d.ts +24 -0
  148. package/dist/tilemap/TilemapPlugin.d.ts +8 -0
  149. package/dist/tilemap.d.ts +6 -0
  150. package/dist/tilemap.js +535 -0
  151. package/dist/tween/Tween2DComponent.d.ts +70 -0
  152. package/dist/tween/Tween2DSystem.d.ts +12 -0
  153. package/dist/tween.d.ts +4 -0
  154. package/dist/tween.js +138 -0
  155. package/dist/utils/RenderSystem2DBase.d.ts +42 -0
  156. package/dist/utils/arrayAccess.d.ts +4 -0
  157. package/dist/utils/camera2d.d.ts +12 -0
  158. package/dist/utils/render2dGpu.d.ts +32 -0
  159. package/package.json +124 -0
  160. package/src/animation/Animation2DComponent.ts +135 -0
  161. package/src/animation/Animation2DExtensionRegistry.ts +52 -0
  162. package/src/animation/Animation2DRenderSystem.ts +1026 -0
  163. package/src/animation/Animation2DRuntime.ts +1326 -0
  164. package/src/animation/Animation2DStateMachine.ts +39 -0
  165. package/src/animation/Animation2DStateMachineComponent.ts +228 -0
  166. package/src/animation/Animation2DStateMachineRuntime.ts +141 -0
  167. package/src/animation/Animation2DStateMachineSystem.ts +60 -0
  168. package/src/animation/Animation2DStateMachineVisualRuntime.ts +282 -0
  169. package/src/animation/Animation2DSystem.ts +72 -0
  170. package/src/animation/AnimationAssetLoader.ts +84 -0
  171. package/src/animation/AnimationAudioClip.ts +140 -0
  172. package/src/animation/AnimationPathTessellator.ts +691 -0
  173. package/src/animation/AnimationTextRasterizer.ts +340 -0
  174. package/src/animation/AnimationVisual2D.ts +153 -0
  175. package/src/animation/HyaAnimation2DClipAdapter.ts +845 -0
  176. package/src/animation/Particle2DDescriptorAdapter.ts +35 -0
  177. package/src/animation/runtime/mixer/Action.ts +876 -0
  178. package/src/animation/runtime/mixer/Mixer.ts +505 -0
  179. package/src/animation/runtime/mixer/PoseBuffer.ts +105 -0
  180. package/src/animation/runtime/mixer/Sampler.ts +252 -0
  181. package/src/animation/runtime/mixer/Types.ts +138 -0
  182. package/src/animation/runtime/mixer/index.ts +31 -0
  183. package/src/animation-state-machine/AnimationStateMachine.ts +146 -0
  184. package/src/animation-state-machine/AnimationStateMachineChannels.ts +116 -0
  185. package/src/animation-state-machine/runtime/Animation2DStateMachineMixerAdapter.ts +197 -0
  186. package/src/animation-state-machine/runtime/AnimationStateMachineBlendTreeWeights.ts +503 -0
  187. package/src/animation-state-machine/runtime/AnimationStateMachineCompiler.ts +763 -0
  188. package/src/animation-state-machine/runtime/AnimationStateMachineController.ts +987 -0
  189. package/src/animation-state-machine/runtime/AnimationStateMachineMixerPort.ts +54 -0
  190. package/src/animation-state-machine/runtime/index.ts +47 -0
  191. package/src/animation.ts +33 -0
  192. package/src/animation3d/Animation3DAction.ts +73 -0
  193. package/src/animation3d/Animation3DBinding.ts +116 -0
  194. package/src/animation3d/Animation3DClip.ts +22 -0
  195. package/src/animation3d/Animation3DError.ts +34 -0
  196. package/src/animation3d/Animation3DMixer.ts +82 -0
  197. package/src/animation3d/Animation3DPose.ts +100 -0
  198. package/src/animation3d/Animation3DPoseBuffer.ts +85 -0
  199. package/src/animation3d/Animation3DResource.ts +49 -0
  200. package/src/animation3d/Animation3DStateMachine.ts +126 -0
  201. package/src/animation3d/Animation3DStateMachineRuntime.ts +191 -0
  202. package/src/animation3d/Animation3DTrack.ts +29 -0
  203. package/src/animation3d/hya/HyaAnimation3DRuntime.ts +756 -0
  204. package/src/animation3d/hya/HyaAnimation3DStateMachineRuntime.ts +618 -0
  205. package/src/animation3d/hya/HyaAnimation3DTypes.ts +168 -0
  206. package/src/animation3d/hya/index.ts +10 -0
  207. package/src/animation3d/index.ts +76 -0
  208. package/src/animation3d/runtime/integration/Animation3DStateMachineMixerAdapter.ts +325 -0
  209. package/src/animation3d/runtime/integration/Animation3DStateMachineMixerIntegration.ts +158 -0
  210. package/src/animation3d/runtime/integration/index.ts +9 -0
  211. package/src/animation3d/runtime/mixer/Action.ts +833 -0
  212. package/src/animation3d/runtime/mixer/Animation3DMixerRuntimeStore.ts +26 -0
  213. package/src/animation3d/runtime/mixer/Mixer.ts +562 -0
  214. package/src/animation3d/runtime/mixer/PoseBuffer.ts +1 -0
  215. package/src/animation3d/runtime/mixer/TrackSampler.ts +399 -0
  216. package/src/animation3d/runtime/mixer/index.ts +8 -0
  217. package/src/animation3d/runtime/state-machine/Animation3DBlendTreeWeights.ts +4 -0
  218. package/src/animation3d/runtime/state-machine/Animation3DStateMachineCompiler.ts +1 -0
  219. package/src/animation3d/runtime/state-machine/Animation3DStateMachineController.ts +1 -0
  220. package/src/animation3d/runtime/state-machine/Animation3DStateMachineMixerPort.ts +1 -0
  221. package/src/animation3d/runtime/state-machine/index.ts +45 -0
  222. package/src/animation3d.ts +5 -0
  223. package/src/benchmark.ts +168 -0
  224. package/src/canvas-text/CanvasText2DRenderSystem.ts +292 -0
  225. package/src/canvas-text/CanvasTextComponent.ts +47 -0
  226. package/src/canvas-text.ts +4 -0
  227. package/src/experimental-gltf-worker.ts +18 -0
  228. package/src/experimental-spine-worker.ts +9 -0
  229. package/src/gltf/GltfAccessorReader.ts +271 -0
  230. package/src/gltf/GltfAnimation3DAdapter.ts +680 -0
  231. package/src/gltf/GltfAnimationRuntime.ts +392 -0
  232. package/src/gltf/GltfAssetWorkerClient.ts +136 -0
  233. package/src/gltf/GltfCompatibilityReport.ts +214 -0
  234. package/src/gltf/GltfConservativeBounds.ts +219 -0
  235. package/src/gltf/GltfDracoDecoder.ts +251 -0
  236. package/src/gltf/GltfExtensionAdapter.ts +340 -0
  237. package/src/gltf/GltfLoaderContract.ts +333 -0
  238. package/src/gltf/GltfLoaderErrors.ts +59 -0
  239. package/src/gltf/GltfMaterialDescriptor.ts +134 -0
  240. package/src/gltf/GltfMaterialEncoder.ts +173 -0
  241. package/src/gltf/GltfMaterialLoader.ts +293 -0
  242. package/src/gltf/GltfModelComponent.ts +115 -0
  243. package/src/gltf/GltfModelSystem.ts +208 -0
  244. package/src/gltf/GltfPlugin.ts +84 -0
  245. package/src/gltf/GltfSchema.ts +229 -0
  246. package/src/gltf/GltfUvSemanticPlanner.ts +166 -0
  247. package/src/gltf/gltfLoader.ts +910 -0
  248. package/src/gltf-animation3d.ts +10 -0
  249. package/src/gltf-worker-runtime.ts +10 -0
  250. package/src/gltf.ts +56 -0
  251. package/src/grid/Grid2DComponent.ts +69 -0
  252. package/src/grid.ts +2 -0
  253. package/src/hya-state-machine.ts +19 -0
  254. package/src/index.ts +2 -0
  255. package/src/plugins/pluginUtils.ts +50 -0
  256. package/src/plugins.ts +6 -0
  257. package/src/shaders/generated/2d-ui-animation-2d.generated.wgsl +242 -0
  258. package/src/shaders/generated/2d-ui-artifact.generated.ts +867 -0
  259. package/src/shaders/generated/2d-ui-canvas-text-2d.generated.wgsl +38 -0
  260. package/src/shaders/generated/2d-ui-spine2d.generated.wgsl +41 -0
  261. package/src/shaders/generated/2d-ui-tilemap2d.generated.wgsl +36 -0
  262. package/src/spine/Spine2DComponent.ts +168 -0
  263. package/src/spine/Spine2DGpuRenderer.ts +449 -0
  264. package/src/spine/Spine2DRenderSystem.ts +199 -0
  265. package/src/spine/Spine2DRuntime.ts +1529 -0
  266. package/src/spine/SpineAnimationBoneTimelines.ts +30 -0
  267. package/src/spine/SpineAssetParser.ts +20 -0
  268. package/src/spine/SpineAssetWorkerClient.ts +112 -0
  269. package/src/spine/SpineAssetWorkerContract.ts +4 -0
  270. package/src/spine/SpineAtlasParser.ts +127 -0
  271. package/src/spine/SpineFloatBuilder.ts +66 -0
  272. package/src/spine/SpinePathConstraintSolver.ts +582 -0
  273. package/src/spine/SpinePlugin.ts +76 -0
  274. package/src/spine/SpineSkeletonRuntime.ts +521 -0
  275. package/src/spine/SpineSlotAnimation.ts +195 -0
  276. package/src/spine/SpineTimelineRuntime.ts +453 -0
  277. package/src/spine/SpineVertexBuilder.ts +686 -0
  278. package/src/spine.ts +7 -0
  279. package/src/tilemap/Tilemap2DComponent.ts +232 -0
  280. package/src/tilemap/Tilemap2DRenderSystem.ts +58 -0
  281. package/src/tilemap/Tilemap2DRenderer.ts +289 -0
  282. package/src/tilemap/TilemapPlugin.ts +75 -0
  283. package/src/tilemap.ts +6 -0
  284. package/src/tween/Tween2DComponent.ts +83 -0
  285. package/src/tween/Tween2DSystem.ts +78 -0
  286. package/src/tween.ts +4 -0
  287. package/src/types/earcut.d.ts +7 -0
  288. package/src/types/wgsl.d.ts +4 -0
  289. package/src/utils/RenderSystem2DBase.ts +164 -0
  290. package/src/utils/arrayAccess.ts +17 -0
  291. package/src/utils/camera2d.ts +68 -0
  292. package/src/utils/render2dGpu.ts +132 -0
  293. package/test/fixtures/gltf/animation-characterization.gltf +344 -0
@@ -0,0 +1,867 @@
1
+ // Generated by shader-language/scripts/generate-builtin-render-production.mjs. Do not edit.
2
+ import Animation2dWgsl from './2d-ui-animation-2d.generated.wgsl';
3
+ import CanvasText2dWgsl from './2d-ui-canvas-text-2d.generated.wgsl';
4
+ import Spine2dWgsl from './2d-ui-spine2d.generated.wgsl';
5
+ import Tilemap2dWgsl from './2d-ui-tilemap2d.generated.wgsl';
6
+
7
+ export const BUILTIN_RENDER_SHADER_ARTIFACT = {
8
+ "format": "haiyue-precompiled-shader-artifact",
9
+ "version": 2,
10
+ "compilerVersion": "shader-language-stage9",
11
+ "source": {
12
+ "kind": "module-family",
13
+ "path": "shader-language/builtin-components-2d-ui-family.json",
14
+ "sha256": "a6366ad77efa2b76deca07eb87f6a62ed8f22407c5554fc709694d166964499c"
15
+ },
16
+ "canonicalHash": "8cb7801fc75830a8764f127db5d9d94faf2cf92b697afdb4e2d32fb0c9b33abf",
17
+ "typedModuleHash": "4b50cf5eacdf4f9d1806d18b0378811f662db650b620d7d62c405b34444a8799",
18
+ "passes": {
19
+ "animation-2d": {
20
+ "id": "animation-2d",
21
+ "code": Animation2dWgsl,
22
+ "entryPoints": {
23
+ "vertex": "vs_main",
24
+ "fragment": "fs_main"
25
+ },
26
+ "bindGroups": [
27
+ {
28
+ "logicalSpace": "frame",
29
+ "logicalGroup": 0,
30
+ "physicalGroup": 0,
31
+ "owner": "renderer",
32
+ "bindings": [
33
+ {
34
+ "id": "frame.camera",
35
+ "binding": 0,
36
+ "visibility": [
37
+ "vertex"
38
+ ],
39
+ "layout": {
40
+ "kind": "buffer",
41
+ "bufferType": "uniform",
42
+ "hasDynamicOffset": false,
43
+ "minBindingSize": 64
44
+ }
45
+ }
46
+ ]
47
+ },
48
+ {
49
+ "logicalSpace": "object",
50
+ "logicalGroup": 1,
51
+ "physicalGroup": 1,
52
+ "owner": "renderer",
53
+ "bindings": [
54
+ {
55
+ "id": "object.animation2d",
56
+ "binding": 0,
57
+ "visibility": [
58
+ "vertex",
59
+ "fragment"
60
+ ],
61
+ "layout": {
62
+ "kind": "buffer",
63
+ "bufferType": "uniform",
64
+ "hasDynamicOffset": false,
65
+ "minBindingSize": 1264
66
+ }
67
+ }
68
+ ]
69
+ },
70
+ {
71
+ "logicalSpace": "material",
72
+ "logicalGroup": 2,
73
+ "physicalGroup": 2,
74
+ "owner": "renderer",
75
+ "bindings": [
76
+ {
77
+ "id": "material.baseTexture",
78
+ "binding": 0,
79
+ "visibility": [
80
+ "fragment"
81
+ ],
82
+ "layout": {
83
+ "kind": "texture",
84
+ "sampleType": "float",
85
+ "viewDimension": "2d",
86
+ "multisampled": false
87
+ }
88
+ },
89
+ {
90
+ "id": "material.baseSampler",
91
+ "binding": 1,
92
+ "visibility": [
93
+ "fragment"
94
+ ],
95
+ "layout": {
96
+ "kind": "sampler",
97
+ "samplerType": "filtering"
98
+ }
99
+ }
100
+ ]
101
+ },
102
+ {
103
+ "logicalSpace": "pass",
104
+ "logicalGroup": 3,
105
+ "physicalGroup": 3,
106
+ "owner": "renderer",
107
+ "bindings": [
108
+ {
109
+ "id": "pass.compositeTexture0",
110
+ "binding": 0,
111
+ "visibility": [
112
+ "fragment"
113
+ ],
114
+ "layout": {
115
+ "kind": "texture",
116
+ "sampleType": "float",
117
+ "viewDimension": "2d",
118
+ "multisampled": false
119
+ }
120
+ },
121
+ {
122
+ "id": "pass.compositeTexture1",
123
+ "binding": 1,
124
+ "visibility": [
125
+ "fragment"
126
+ ],
127
+ "layout": {
128
+ "kind": "texture",
129
+ "sampleType": "float",
130
+ "viewDimension": "2d",
131
+ "multisampled": false
132
+ }
133
+ },
134
+ {
135
+ "id": "pass.compositeTexture2",
136
+ "binding": 2,
137
+ "visibility": [
138
+ "fragment"
139
+ ],
140
+ "layout": {
141
+ "kind": "texture",
142
+ "sampleType": "float",
143
+ "viewDimension": "2d",
144
+ "multisampled": false
145
+ }
146
+ },
147
+ {
148
+ "id": "pass.compositeTexture3",
149
+ "binding": 3,
150
+ "visibility": [
151
+ "fragment"
152
+ ],
153
+ "layout": {
154
+ "kind": "texture",
155
+ "sampleType": "float",
156
+ "viewDimension": "2d",
157
+ "multisampled": false
158
+ }
159
+ },
160
+ {
161
+ "id": "pass.compositeTexture4",
162
+ "binding": 4,
163
+ "visibility": [
164
+ "fragment"
165
+ ],
166
+ "layout": {
167
+ "kind": "texture",
168
+ "sampleType": "float",
169
+ "viewDimension": "2d",
170
+ "multisampled": false
171
+ }
172
+ },
173
+ {
174
+ "id": "pass.compositeTexture5",
175
+ "binding": 5,
176
+ "visibility": [
177
+ "fragment"
178
+ ],
179
+ "layout": {
180
+ "kind": "texture",
181
+ "sampleType": "float",
182
+ "viewDimension": "2d",
183
+ "multisampled": false
184
+ }
185
+ },
186
+ {
187
+ "id": "pass.compositeTexture6",
188
+ "binding": 6,
189
+ "visibility": [
190
+ "fragment"
191
+ ],
192
+ "layout": {
193
+ "kind": "texture",
194
+ "sampleType": "float",
195
+ "viewDimension": "2d",
196
+ "multisampled": false
197
+ }
198
+ },
199
+ {
200
+ "id": "pass.compositeTexture7",
201
+ "binding": 7,
202
+ "visibility": [
203
+ "fragment"
204
+ ],
205
+ "layout": {
206
+ "kind": "texture",
207
+ "sampleType": "float",
208
+ "viewDimension": "2d",
209
+ "multisampled": false
210
+ }
211
+ },
212
+ {
213
+ "id": "pass.compositeSampler",
214
+ "binding": 8,
215
+ "visibility": [
216
+ "fragment"
217
+ ],
218
+ "layout": {
219
+ "kind": "sampler",
220
+ "samplerType": "filtering"
221
+ }
222
+ }
223
+ ]
224
+ }
225
+ ],
226
+ "uniformBlocks": [
227
+ {
228
+ "id": "frame.camera",
229
+ "alignment": 16,
230
+ "byteSize": 64,
231
+ "fields": [
232
+ {
233
+ "name": "viewProj",
234
+ "type": "mat4x4<f32>",
235
+ "offset": 0,
236
+ "size": 64,
237
+ "matrixStride": 16
238
+ }
239
+ ]
240
+ },
241
+ {
242
+ "id": "object.animation2d",
243
+ "alignment": 16,
244
+ "byteSize": 1264,
245
+ "fields": [
246
+ {
247
+ "name": "model",
248
+ "type": "mat4x4<f32>",
249
+ "offset": 0,
250
+ "size": 64,
251
+ "matrixStride": 16
252
+ },
253
+ {
254
+ "name": "color",
255
+ "type": "vec4<f32>",
256
+ "offset": 64,
257
+ "size": 16
258
+ },
259
+ {
260
+ "name": "params",
261
+ "type": "vec4<f32>",
262
+ "offset": 80,
263
+ "size": 16
264
+ },
265
+ {
266
+ "name": "uvRect",
267
+ "type": "vec4<f32>",
268
+ "offset": 96,
269
+ "size": 16
270
+ },
271
+ {
272
+ "name": "compositeParams",
273
+ "type": "array<vec4<f32>, 8>",
274
+ "offset": 112,
275
+ "size": 128
276
+ },
277
+ {
278
+ "name": "compositeExpansion0",
279
+ "type": "vec4<f32>",
280
+ "offset": 240,
281
+ "size": 16
282
+ },
283
+ {
284
+ "name": "compositeExpansion1",
285
+ "type": "vec4<f32>",
286
+ "offset": 256,
287
+ "size": 16
288
+ },
289
+ {
290
+ "name": "gradientParams",
291
+ "type": "vec4<f32>",
292
+ "offset": 272,
293
+ "size": 16
294
+ },
295
+ {
296
+ "name": "gradientGeometry",
297
+ "type": "vec4<f32>",
298
+ "offset": 288,
299
+ "size": 16
300
+ },
301
+ {
302
+ "name": "gradientColors",
303
+ "type": "array<vec4<f32>, 8>",
304
+ "offset": 304,
305
+ "size": 128
306
+ },
307
+ {
308
+ "name": "gradientOffsets0",
309
+ "type": "vec4<f32>",
310
+ "offset": 432,
311
+ "size": 16
312
+ },
313
+ {
314
+ "name": "gradientOffsets1",
315
+ "type": "vec4<f32>",
316
+ "offset": 448,
317
+ "size": 16
318
+ },
319
+ {
320
+ "name": "effectKinds0",
321
+ "type": "vec4<f32>",
322
+ "offset": 464,
323
+ "size": 16
324
+ },
325
+ {
326
+ "name": "effectKinds1",
327
+ "type": "vec4<f32>",
328
+ "offset": 480,
329
+ "size": 16
330
+ },
331
+ {
332
+ "name": "effectData",
333
+ "type": "array<EffectData, 8>",
334
+ "offset": 496,
335
+ "size": 768
336
+ }
337
+ ]
338
+ }
339
+ ],
340
+ "vertexBuffers": [
341
+ {
342
+ "arrayStride": 16,
343
+ "stepMode": "vertex",
344
+ "attributes": [
345
+ {
346
+ "semantic": "POSITION",
347
+ "shaderLocation": 0,
348
+ "offset": 0,
349
+ "format": "float32x2"
350
+ },
351
+ {
352
+ "semantic": "TEXCOORD_0",
353
+ "shaderLocation": 1,
354
+ "offset": 8,
355
+ "format": "float32x2"
356
+ }
357
+ ]
358
+ }
359
+ ],
360
+ "varyings": [
361
+ {
362
+ "semantic": "TEXCOORD_0",
363
+ "location": 0,
364
+ "type": "vec2<f32>",
365
+ "interpolation": "perspective"
366
+ },
367
+ {
368
+ "semantic": "TEXCOORD_1",
369
+ "location": 1,
370
+ "type": "vec2<f32>",
371
+ "interpolation": "perspective"
372
+ }
373
+ ],
374
+ "renderTargets": [
375
+ {
376
+ "location": 0,
377
+ "formatClass": "color"
378
+ }
379
+ ],
380
+ "capabilities": [
381
+ "texture-sample"
382
+ ],
383
+ "passRequirements": [
384
+ "alpha-blend",
385
+ "ordered-composite-stack",
386
+ "ordered-effect-stack"
387
+ ],
388
+ "sourceMap": [
389
+ {
390
+ "sourceId": "builtin.animation-2d",
391
+ "sourceName": "shader-language/builtin-components-2d-ui-family.json",
392
+ "generatedStartLine": 1,
393
+ "generatedEndLine": 243
394
+ }
395
+ ],
396
+ "canonicalHash": "1225970fdaa5c141d69d1ada2cce5c10f040a74e80874808108d169387ef089e"
397
+ },
398
+ "canvas-text-2d": {
399
+ "id": "canvas-text-2d",
400
+ "code": CanvasText2dWgsl,
401
+ "entryPoints": {
402
+ "vertex": "vs_main",
403
+ "fragment": "fs_main"
404
+ },
405
+ "bindGroups": [
406
+ {
407
+ "logicalSpace": "frame",
408
+ "logicalGroup": 0,
409
+ "physicalGroup": 0,
410
+ "owner": "renderer",
411
+ "bindings": [
412
+ {
413
+ "id": "frame.camera",
414
+ "binding": 0,
415
+ "visibility": [
416
+ "vertex"
417
+ ],
418
+ "layout": {
419
+ "kind": "buffer",
420
+ "bufferType": "uniform",
421
+ "hasDynamicOffset": false,
422
+ "minBindingSize": 64
423
+ }
424
+ }
425
+ ]
426
+ },
427
+ {
428
+ "logicalSpace": "object",
429
+ "logicalGroup": 1,
430
+ "physicalGroup": 1,
431
+ "owner": "renderer",
432
+ "bindings": [
433
+ {
434
+ "id": "object.transform",
435
+ "binding": 0,
436
+ "visibility": [
437
+ "vertex"
438
+ ],
439
+ "layout": {
440
+ "kind": "buffer",
441
+ "bufferType": "uniform",
442
+ "hasDynamicOffset": false,
443
+ "minBindingSize": 64
444
+ }
445
+ }
446
+ ]
447
+ },
448
+ {
449
+ "logicalSpace": "material",
450
+ "logicalGroup": 2,
451
+ "physicalGroup": 2,
452
+ "owner": "renderer",
453
+ "bindings": [
454
+ {
455
+ "id": "material.texture",
456
+ "binding": 0,
457
+ "visibility": [
458
+ "fragment"
459
+ ],
460
+ "layout": {
461
+ "kind": "texture",
462
+ "sampleType": "float",
463
+ "viewDimension": "2d",
464
+ "multisampled": false
465
+ }
466
+ },
467
+ {
468
+ "id": "material.sampler",
469
+ "binding": 1,
470
+ "visibility": [
471
+ "fragment"
472
+ ],
473
+ "layout": {
474
+ "kind": "sampler",
475
+ "samplerType": "filtering"
476
+ }
477
+ }
478
+ ]
479
+ }
480
+ ],
481
+ "uniformBlocks": [
482
+ {
483
+ "id": "frame.camera",
484
+ "alignment": 16,
485
+ "byteSize": 64,
486
+ "fields": [
487
+ {
488
+ "name": "viewProj",
489
+ "type": "mat4x4<f32>",
490
+ "offset": 0,
491
+ "size": 64,
492
+ "matrixStride": 16
493
+ }
494
+ ]
495
+ },
496
+ {
497
+ "id": "object.transform",
498
+ "alignment": 16,
499
+ "byteSize": 64,
500
+ "fields": [
501
+ {
502
+ "name": "model",
503
+ "type": "mat4x4<f32>",
504
+ "offset": 0,
505
+ "size": 64,
506
+ "matrixStride": 16
507
+ }
508
+ ]
509
+ }
510
+ ],
511
+ "vertexBuffers": [
512
+ {
513
+ "arrayStride": 16,
514
+ "stepMode": "vertex",
515
+ "attributes": [
516
+ {
517
+ "semantic": "POSITION",
518
+ "shaderLocation": 0,
519
+ "offset": 0,
520
+ "format": "float32x2"
521
+ },
522
+ {
523
+ "semantic": "TEXCOORD_0",
524
+ "shaderLocation": 1,
525
+ "offset": 8,
526
+ "format": "float32x2"
527
+ }
528
+ ]
529
+ }
530
+ ],
531
+ "varyings": [
532
+ {
533
+ "semantic": "TEXCOORD_0",
534
+ "location": 0,
535
+ "type": "vec2<f32>",
536
+ "interpolation": "perspective"
537
+ }
538
+ ],
539
+ "renderTargets": [
540
+ {
541
+ "location": 0,
542
+ "formatClass": "color"
543
+ }
544
+ ],
545
+ "capabilities": [
546
+ "texture-sample"
547
+ ],
548
+ "passRequirements": [
549
+ "alpha-blend"
550
+ ],
551
+ "sourceMap": [
552
+ {
553
+ "sourceId": "builtin.canvas-text-2d",
554
+ "sourceName": "shader-language/builtin-components-2d-ui-family.json",
555
+ "generatedStartLine": 1,
556
+ "generatedEndLine": 39
557
+ }
558
+ ],
559
+ "canonicalHash": "23dac7ae1d4e1bd8b695cb8261402b4b634d1315bf6a42e1ca04367f5e1cc598"
560
+ },
561
+ "spine2d": {
562
+ "id": "spine2d",
563
+ "code": Spine2dWgsl,
564
+ "entryPoints": {
565
+ "vertex": "vs_main",
566
+ "fragment": "fs_main"
567
+ },
568
+ "bindGroups": [
569
+ {
570
+ "logicalSpace": "frame",
571
+ "logicalGroup": 0,
572
+ "physicalGroup": 0,
573
+ "owner": "renderer",
574
+ "bindings": [
575
+ {
576
+ "id": "frame.camera",
577
+ "binding": 0,
578
+ "visibility": [
579
+ "vertex"
580
+ ],
581
+ "layout": {
582
+ "kind": "buffer",
583
+ "bufferType": "uniform",
584
+ "hasDynamicOffset": false,
585
+ "minBindingSize": 64
586
+ }
587
+ }
588
+ ]
589
+ },
590
+ {
591
+ "logicalSpace": "object",
592
+ "logicalGroup": 1,
593
+ "physicalGroup": 1,
594
+ "owner": "renderer",
595
+ "bindings": [
596
+ {
597
+ "id": "object.transform",
598
+ "binding": 0,
599
+ "visibility": [
600
+ "vertex"
601
+ ],
602
+ "layout": {
603
+ "kind": "buffer",
604
+ "bufferType": "uniform",
605
+ "hasDynamicOffset": false,
606
+ "minBindingSize": 64
607
+ }
608
+ }
609
+ ]
610
+ },
611
+ {
612
+ "logicalSpace": "material",
613
+ "logicalGroup": 2,
614
+ "physicalGroup": 2,
615
+ "owner": "renderer",
616
+ "bindings": [
617
+ {
618
+ "id": "material.atlasTexture",
619
+ "binding": 0,
620
+ "visibility": [
621
+ "fragment"
622
+ ],
623
+ "layout": {
624
+ "kind": "texture",
625
+ "sampleType": "float",
626
+ "viewDimension": "2d",
627
+ "multisampled": false
628
+ }
629
+ },
630
+ {
631
+ "id": "material.atlasSampler",
632
+ "binding": 1,
633
+ "visibility": [
634
+ "fragment"
635
+ ],
636
+ "layout": {
637
+ "kind": "sampler",
638
+ "samplerType": "filtering"
639
+ }
640
+ }
641
+ ]
642
+ }
643
+ ],
644
+ "uniformBlocks": [
645
+ {
646
+ "id": "frame.camera",
647
+ "alignment": 16,
648
+ "byteSize": 64,
649
+ "fields": [
650
+ {
651
+ "name": "viewProj",
652
+ "type": "mat4x4<f32>",
653
+ "offset": 0,
654
+ "size": 64,
655
+ "matrixStride": 16
656
+ }
657
+ ]
658
+ },
659
+ {
660
+ "id": "object.transform",
661
+ "alignment": 16,
662
+ "byteSize": 64,
663
+ "fields": [
664
+ {
665
+ "name": "model",
666
+ "type": "mat4x4<f32>",
667
+ "offset": 0,
668
+ "size": 64,
669
+ "matrixStride": 16
670
+ }
671
+ ]
672
+ }
673
+ ],
674
+ "vertexBuffers": [
675
+ {
676
+ "arrayStride": 32,
677
+ "stepMode": "vertex",
678
+ "attributes": [
679
+ {
680
+ "semantic": "POSITION",
681
+ "shaderLocation": 0,
682
+ "offset": 0,
683
+ "format": "float32x2"
684
+ },
685
+ {
686
+ "semantic": "TEXCOORD_0",
687
+ "shaderLocation": 1,
688
+ "offset": 8,
689
+ "format": "float32x2"
690
+ },
691
+ {
692
+ "semantic": "COLOR_0",
693
+ "shaderLocation": 2,
694
+ "offset": 16,
695
+ "format": "float32x4"
696
+ }
697
+ ]
698
+ }
699
+ ],
700
+ "varyings": [
701
+ {
702
+ "semantic": "TEXCOORD_0",
703
+ "location": 0,
704
+ "type": "vec2<f32>",
705
+ "interpolation": "perspective"
706
+ },
707
+ {
708
+ "semantic": "COLOR_0",
709
+ "location": 1,
710
+ "type": "vec4<f32>",
711
+ "interpolation": "perspective"
712
+ }
713
+ ],
714
+ "renderTargets": [
715
+ {
716
+ "location": 0,
717
+ "formatClass": "color"
718
+ }
719
+ ],
720
+ "capabilities": [
721
+ "texture-sample"
722
+ ],
723
+ "passRequirements": [
724
+ "alpha-blend"
725
+ ],
726
+ "sourceMap": [
727
+ {
728
+ "sourceId": "builtin.spine2d",
729
+ "sourceName": "shader-language/builtin-components-2d-ui-family.json",
730
+ "generatedStartLine": 1,
731
+ "generatedEndLine": 42
732
+ }
733
+ ],
734
+ "canonicalHash": "8f7a915892dfbfdbc55619aca4a809977622bc6ccbb93b4e7a00950ab56f826a"
735
+ },
736
+ "tilemap2d": {
737
+ "id": "tilemap2d",
738
+ "code": Tilemap2dWgsl,
739
+ "entryPoints": {
740
+ "vertex": "vs_main",
741
+ "fragment": "fs_main"
742
+ },
743
+ "bindGroups": [
744
+ {
745
+ "logicalSpace": "frame",
746
+ "logicalGroup": 0,
747
+ "physicalGroup": 0,
748
+ "owner": "renderer",
749
+ "bindings": [
750
+ {
751
+ "id": "frame.camera",
752
+ "binding": 0,
753
+ "visibility": [
754
+ "vertex"
755
+ ],
756
+ "layout": {
757
+ "kind": "buffer",
758
+ "bufferType": "uniform",
759
+ "hasDynamicOffset": false,
760
+ "minBindingSize": 64
761
+ }
762
+ }
763
+ ]
764
+ },
765
+ {
766
+ "logicalSpace": "object",
767
+ "logicalGroup": 1,
768
+ "physicalGroup": 1,
769
+ "owner": "renderer",
770
+ "bindings": [
771
+ {
772
+ "id": "object.transform",
773
+ "binding": 0,
774
+ "visibility": [
775
+ "vertex"
776
+ ],
777
+ "layout": {
778
+ "kind": "buffer",
779
+ "bufferType": "uniform",
780
+ "hasDynamicOffset": false,
781
+ "minBindingSize": 64
782
+ }
783
+ }
784
+ ]
785
+ }
786
+ ],
787
+ "uniformBlocks": [
788
+ {
789
+ "id": "frame.camera",
790
+ "alignment": 16,
791
+ "byteSize": 64,
792
+ "fields": [
793
+ {
794
+ "name": "viewProj",
795
+ "type": "mat4x4<f32>",
796
+ "offset": 0,
797
+ "size": 64,
798
+ "matrixStride": 16
799
+ }
800
+ ]
801
+ },
802
+ {
803
+ "id": "object.transform",
804
+ "alignment": 16,
805
+ "byteSize": 64,
806
+ "fields": [
807
+ {
808
+ "name": "model",
809
+ "type": "mat4x4<f32>",
810
+ "offset": 0,
811
+ "size": 64,
812
+ "matrixStride": 16
813
+ }
814
+ ]
815
+ }
816
+ ],
817
+ "vertexBuffers": [
818
+ {
819
+ "arrayStride": 24,
820
+ "stepMode": "vertex",
821
+ "attributes": [
822
+ {
823
+ "semantic": "POSITION",
824
+ "shaderLocation": 0,
825
+ "offset": 0,
826
+ "format": "float32x2"
827
+ },
828
+ {
829
+ "semantic": "COLOR_0",
830
+ "shaderLocation": 1,
831
+ "offset": 8,
832
+ "format": "float32x4"
833
+ }
834
+ ]
835
+ }
836
+ ],
837
+ "varyings": [
838
+ {
839
+ "semantic": "COLOR_0",
840
+ "location": 0,
841
+ "type": "vec4<f32>",
842
+ "interpolation": "perspective"
843
+ }
844
+ ],
845
+ "renderTargets": [
846
+ {
847
+ "location": 0,
848
+ "formatClass": "color"
849
+ }
850
+ ],
851
+ "capabilities": [],
852
+ "passRequirements": [
853
+ "alpha-blend"
854
+ ],
855
+ "sourceMap": [
856
+ {
857
+ "sourceId": "builtin.tilemap2d",
858
+ "sourceName": "shader-language/builtin-components-2d-ui-family.json",
859
+ "generatedStartLine": 1,
860
+ "generatedEndLine": 37
861
+ }
862
+ ],
863
+ "canonicalHash": "4d1ef60104af17bdb6c837bbdb67640c96abf7533f156510de4da5240c8c388e"
864
+ }
865
+ },
866
+ "artifactHash": "16ea1e154dc97e70d112d84e6b5bf5515f95ba9cc10c238efc22f8971239137e"
867
+ } as const;