@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,20 @@
1
+ import type { EnginePlugin, RenderPipelineEntryOptions, ScenePluginContext, System } from '@haiyue/engine/experimental';
2
+ import type { Entity, HaiyueEngine, World } from '@haiyue/engine';
3
+ export declare const EXTENSIONS_PLUGIN_VERSION = "0.1.0";
4
+ export interface EditorViewportContributionContext {
5
+ world: World;
6
+ engine: HaiyueEngine;
7
+ camera2DEntity: Entity;
8
+ registerRenderSystem?: (system: System, options?: RenderPipelineEntryOptions) => void;
9
+ }
10
+ export declare function removeSystem(context: ScenePluginContext, system: System | null): void;
11
+ export declare function installEditorRenderSystem<T extends System & {
12
+ autoUpdate: boolean;
13
+ setCameraEntity?(entity: Entity): unknown;
14
+ }>(context: EditorViewportContributionContext, constructor: new (...args: never[]) => T, create: () => T): {
15
+ dispose(): void;
16
+ };
17
+ export declare function ownedEditorViewportSystem(world: World, system: System, owned: boolean): {
18
+ dispose(): void;
19
+ };
20
+ export type { EnginePlugin, RenderPipelineEntryOptions };
@@ -0,0 +1,6 @@
1
+ export { createGltfPlugin } from './gltf/GltfPlugin';
2
+ export type { GltfPluginOptions } from './gltf/GltfPlugin';
3
+ export { createSpinePlugin } from './spine/SpinePlugin';
4
+ export type { SpinePluginOptions } from './spine/SpinePlugin';
5
+ export { createTilemapPlugin } from './tilemap/TilemapPlugin';
6
+ export type { TilemapPluginOptions } from './tilemap/TilemapPlugin';
@@ -0,0 +1,658 @@
1
+ export declare const BUILTIN_RENDER_SHADER_ARTIFACT: {
2
+ readonly format: "haiyue-precompiled-shader-artifact";
3
+ readonly version: 2;
4
+ readonly compilerVersion: "shader-language-stage9";
5
+ readonly source: {
6
+ readonly kind: "module-family";
7
+ readonly path: "shader-language/builtin-components-2d-ui-family.json";
8
+ readonly sha256: "a6366ad77efa2b76deca07eb87f6a62ed8f22407c5554fc709694d166964499c";
9
+ };
10
+ readonly canonicalHash: "8cb7801fc75830a8764f127db5d9d94faf2cf92b697afdb4e2d32fb0c9b33abf";
11
+ readonly typedModuleHash: "4b50cf5eacdf4f9d1806d18b0378811f662db650b620d7d62c405b34444a8799";
12
+ readonly passes: {
13
+ readonly "animation-2d": {
14
+ readonly id: "animation-2d";
15
+ readonly code: string;
16
+ readonly entryPoints: {
17
+ readonly vertex: "vs_main";
18
+ readonly fragment: "fs_main";
19
+ };
20
+ readonly bindGroups: readonly [{
21
+ readonly logicalSpace: "frame";
22
+ readonly logicalGroup: 0;
23
+ readonly physicalGroup: 0;
24
+ readonly owner: "renderer";
25
+ readonly bindings: readonly [{
26
+ readonly id: "frame.camera";
27
+ readonly binding: 0;
28
+ readonly visibility: readonly ["vertex"];
29
+ readonly layout: {
30
+ readonly kind: "buffer";
31
+ readonly bufferType: "uniform";
32
+ readonly hasDynamicOffset: false;
33
+ readonly minBindingSize: 64;
34
+ };
35
+ }];
36
+ }, {
37
+ readonly logicalSpace: "object";
38
+ readonly logicalGroup: 1;
39
+ readonly physicalGroup: 1;
40
+ readonly owner: "renderer";
41
+ readonly bindings: readonly [{
42
+ readonly id: "object.animation2d";
43
+ readonly binding: 0;
44
+ readonly visibility: readonly ["vertex", "fragment"];
45
+ readonly layout: {
46
+ readonly kind: "buffer";
47
+ readonly bufferType: "uniform";
48
+ readonly hasDynamicOffset: false;
49
+ readonly minBindingSize: 1264;
50
+ };
51
+ }];
52
+ }, {
53
+ readonly logicalSpace: "material";
54
+ readonly logicalGroup: 2;
55
+ readonly physicalGroup: 2;
56
+ readonly owner: "renderer";
57
+ readonly bindings: readonly [{
58
+ readonly id: "material.baseTexture";
59
+ readonly binding: 0;
60
+ readonly visibility: readonly ["fragment"];
61
+ readonly layout: {
62
+ readonly kind: "texture";
63
+ readonly sampleType: "float";
64
+ readonly viewDimension: "2d";
65
+ readonly multisampled: false;
66
+ };
67
+ }, {
68
+ readonly id: "material.baseSampler";
69
+ readonly binding: 1;
70
+ readonly visibility: readonly ["fragment"];
71
+ readonly layout: {
72
+ readonly kind: "sampler";
73
+ readonly samplerType: "filtering";
74
+ };
75
+ }];
76
+ }, {
77
+ readonly logicalSpace: "pass";
78
+ readonly logicalGroup: 3;
79
+ readonly physicalGroup: 3;
80
+ readonly owner: "renderer";
81
+ readonly bindings: readonly [{
82
+ readonly id: "pass.compositeTexture0";
83
+ readonly binding: 0;
84
+ readonly visibility: readonly ["fragment"];
85
+ readonly layout: {
86
+ readonly kind: "texture";
87
+ readonly sampleType: "float";
88
+ readonly viewDimension: "2d";
89
+ readonly multisampled: false;
90
+ };
91
+ }, {
92
+ readonly id: "pass.compositeTexture1";
93
+ readonly binding: 1;
94
+ readonly visibility: readonly ["fragment"];
95
+ readonly layout: {
96
+ readonly kind: "texture";
97
+ readonly sampleType: "float";
98
+ readonly viewDimension: "2d";
99
+ readonly multisampled: false;
100
+ };
101
+ }, {
102
+ readonly id: "pass.compositeTexture2";
103
+ readonly binding: 2;
104
+ readonly visibility: readonly ["fragment"];
105
+ readonly layout: {
106
+ readonly kind: "texture";
107
+ readonly sampleType: "float";
108
+ readonly viewDimension: "2d";
109
+ readonly multisampled: false;
110
+ };
111
+ }, {
112
+ readonly id: "pass.compositeTexture3";
113
+ readonly binding: 3;
114
+ readonly visibility: readonly ["fragment"];
115
+ readonly layout: {
116
+ readonly kind: "texture";
117
+ readonly sampleType: "float";
118
+ readonly viewDimension: "2d";
119
+ readonly multisampled: false;
120
+ };
121
+ }, {
122
+ readonly id: "pass.compositeTexture4";
123
+ readonly binding: 4;
124
+ readonly visibility: readonly ["fragment"];
125
+ readonly layout: {
126
+ readonly kind: "texture";
127
+ readonly sampleType: "float";
128
+ readonly viewDimension: "2d";
129
+ readonly multisampled: false;
130
+ };
131
+ }, {
132
+ readonly id: "pass.compositeTexture5";
133
+ readonly binding: 5;
134
+ readonly visibility: readonly ["fragment"];
135
+ readonly layout: {
136
+ readonly kind: "texture";
137
+ readonly sampleType: "float";
138
+ readonly viewDimension: "2d";
139
+ readonly multisampled: false;
140
+ };
141
+ }, {
142
+ readonly id: "pass.compositeTexture6";
143
+ readonly binding: 6;
144
+ readonly visibility: readonly ["fragment"];
145
+ readonly layout: {
146
+ readonly kind: "texture";
147
+ readonly sampleType: "float";
148
+ readonly viewDimension: "2d";
149
+ readonly multisampled: false;
150
+ };
151
+ }, {
152
+ readonly id: "pass.compositeTexture7";
153
+ readonly binding: 7;
154
+ readonly visibility: readonly ["fragment"];
155
+ readonly layout: {
156
+ readonly kind: "texture";
157
+ readonly sampleType: "float";
158
+ readonly viewDimension: "2d";
159
+ readonly multisampled: false;
160
+ };
161
+ }, {
162
+ readonly id: "pass.compositeSampler";
163
+ readonly binding: 8;
164
+ readonly visibility: readonly ["fragment"];
165
+ readonly layout: {
166
+ readonly kind: "sampler";
167
+ readonly samplerType: "filtering";
168
+ };
169
+ }];
170
+ }];
171
+ readonly uniformBlocks: readonly [{
172
+ readonly id: "frame.camera";
173
+ readonly alignment: 16;
174
+ readonly byteSize: 64;
175
+ readonly fields: readonly [{
176
+ readonly name: "viewProj";
177
+ readonly type: "mat4x4<f32>";
178
+ readonly offset: 0;
179
+ readonly size: 64;
180
+ readonly matrixStride: 16;
181
+ }];
182
+ }, {
183
+ readonly id: "object.animation2d";
184
+ readonly alignment: 16;
185
+ readonly byteSize: 1264;
186
+ readonly fields: readonly [{
187
+ readonly name: "model";
188
+ readonly type: "mat4x4<f32>";
189
+ readonly offset: 0;
190
+ readonly size: 64;
191
+ readonly matrixStride: 16;
192
+ }, {
193
+ readonly name: "color";
194
+ readonly type: "vec4<f32>";
195
+ readonly offset: 64;
196
+ readonly size: 16;
197
+ }, {
198
+ readonly name: "params";
199
+ readonly type: "vec4<f32>";
200
+ readonly offset: 80;
201
+ readonly size: 16;
202
+ }, {
203
+ readonly name: "uvRect";
204
+ readonly type: "vec4<f32>";
205
+ readonly offset: 96;
206
+ readonly size: 16;
207
+ }, {
208
+ readonly name: "compositeParams";
209
+ readonly type: "array<vec4<f32>, 8>";
210
+ readonly offset: 112;
211
+ readonly size: 128;
212
+ }, {
213
+ readonly name: "compositeExpansion0";
214
+ readonly type: "vec4<f32>";
215
+ readonly offset: 240;
216
+ readonly size: 16;
217
+ }, {
218
+ readonly name: "compositeExpansion1";
219
+ readonly type: "vec4<f32>";
220
+ readonly offset: 256;
221
+ readonly size: 16;
222
+ }, {
223
+ readonly name: "gradientParams";
224
+ readonly type: "vec4<f32>";
225
+ readonly offset: 272;
226
+ readonly size: 16;
227
+ }, {
228
+ readonly name: "gradientGeometry";
229
+ readonly type: "vec4<f32>";
230
+ readonly offset: 288;
231
+ readonly size: 16;
232
+ }, {
233
+ readonly name: "gradientColors";
234
+ readonly type: "array<vec4<f32>, 8>";
235
+ readonly offset: 304;
236
+ readonly size: 128;
237
+ }, {
238
+ readonly name: "gradientOffsets0";
239
+ readonly type: "vec4<f32>";
240
+ readonly offset: 432;
241
+ readonly size: 16;
242
+ }, {
243
+ readonly name: "gradientOffsets1";
244
+ readonly type: "vec4<f32>";
245
+ readonly offset: 448;
246
+ readonly size: 16;
247
+ }, {
248
+ readonly name: "effectKinds0";
249
+ readonly type: "vec4<f32>";
250
+ readonly offset: 464;
251
+ readonly size: 16;
252
+ }, {
253
+ readonly name: "effectKinds1";
254
+ readonly type: "vec4<f32>";
255
+ readonly offset: 480;
256
+ readonly size: 16;
257
+ }, {
258
+ readonly name: "effectData";
259
+ readonly type: "array<EffectData, 8>";
260
+ readonly offset: 496;
261
+ readonly size: 768;
262
+ }];
263
+ }];
264
+ readonly vertexBuffers: readonly [{
265
+ readonly arrayStride: 16;
266
+ readonly stepMode: "vertex";
267
+ readonly attributes: readonly [{
268
+ readonly semantic: "POSITION";
269
+ readonly shaderLocation: 0;
270
+ readonly offset: 0;
271
+ readonly format: "float32x2";
272
+ }, {
273
+ readonly semantic: "TEXCOORD_0";
274
+ readonly shaderLocation: 1;
275
+ readonly offset: 8;
276
+ readonly format: "float32x2";
277
+ }];
278
+ }];
279
+ readonly varyings: readonly [{
280
+ readonly semantic: "TEXCOORD_0";
281
+ readonly location: 0;
282
+ readonly type: "vec2<f32>";
283
+ readonly interpolation: "perspective";
284
+ }, {
285
+ readonly semantic: "TEXCOORD_1";
286
+ readonly location: 1;
287
+ readonly type: "vec2<f32>";
288
+ readonly interpolation: "perspective";
289
+ }];
290
+ readonly renderTargets: readonly [{
291
+ readonly location: 0;
292
+ readonly formatClass: "color";
293
+ }];
294
+ readonly capabilities: readonly ["texture-sample"];
295
+ readonly passRequirements: readonly ["alpha-blend", "ordered-composite-stack", "ordered-effect-stack"];
296
+ readonly sourceMap: readonly [{
297
+ readonly sourceId: "builtin.animation-2d";
298
+ readonly sourceName: "shader-language/builtin-components-2d-ui-family.json";
299
+ readonly generatedStartLine: 1;
300
+ readonly generatedEndLine: 243;
301
+ }];
302
+ readonly canonicalHash: "1225970fdaa5c141d69d1ada2cce5c10f040a74e80874808108d169387ef089e";
303
+ };
304
+ readonly "canvas-text-2d": {
305
+ readonly id: "canvas-text-2d";
306
+ readonly code: string;
307
+ readonly entryPoints: {
308
+ readonly vertex: "vs_main";
309
+ readonly fragment: "fs_main";
310
+ };
311
+ readonly bindGroups: readonly [{
312
+ readonly logicalSpace: "frame";
313
+ readonly logicalGroup: 0;
314
+ readonly physicalGroup: 0;
315
+ readonly owner: "renderer";
316
+ readonly bindings: readonly [{
317
+ readonly id: "frame.camera";
318
+ readonly binding: 0;
319
+ readonly visibility: readonly ["vertex"];
320
+ readonly layout: {
321
+ readonly kind: "buffer";
322
+ readonly bufferType: "uniform";
323
+ readonly hasDynamicOffset: false;
324
+ readonly minBindingSize: 64;
325
+ };
326
+ }];
327
+ }, {
328
+ readonly logicalSpace: "object";
329
+ readonly logicalGroup: 1;
330
+ readonly physicalGroup: 1;
331
+ readonly owner: "renderer";
332
+ readonly bindings: readonly [{
333
+ readonly id: "object.transform";
334
+ readonly binding: 0;
335
+ readonly visibility: readonly ["vertex"];
336
+ readonly layout: {
337
+ readonly kind: "buffer";
338
+ readonly bufferType: "uniform";
339
+ readonly hasDynamicOffset: false;
340
+ readonly minBindingSize: 64;
341
+ };
342
+ }];
343
+ }, {
344
+ readonly logicalSpace: "material";
345
+ readonly logicalGroup: 2;
346
+ readonly physicalGroup: 2;
347
+ readonly owner: "renderer";
348
+ readonly bindings: readonly [{
349
+ readonly id: "material.texture";
350
+ readonly binding: 0;
351
+ readonly visibility: readonly ["fragment"];
352
+ readonly layout: {
353
+ readonly kind: "texture";
354
+ readonly sampleType: "float";
355
+ readonly viewDimension: "2d";
356
+ readonly multisampled: false;
357
+ };
358
+ }, {
359
+ readonly id: "material.sampler";
360
+ readonly binding: 1;
361
+ readonly visibility: readonly ["fragment"];
362
+ readonly layout: {
363
+ readonly kind: "sampler";
364
+ readonly samplerType: "filtering";
365
+ };
366
+ }];
367
+ }];
368
+ readonly uniformBlocks: readonly [{
369
+ readonly id: "frame.camera";
370
+ readonly alignment: 16;
371
+ readonly byteSize: 64;
372
+ readonly fields: readonly [{
373
+ readonly name: "viewProj";
374
+ readonly type: "mat4x4<f32>";
375
+ readonly offset: 0;
376
+ readonly size: 64;
377
+ readonly matrixStride: 16;
378
+ }];
379
+ }, {
380
+ readonly id: "object.transform";
381
+ readonly alignment: 16;
382
+ readonly byteSize: 64;
383
+ readonly fields: readonly [{
384
+ readonly name: "model";
385
+ readonly type: "mat4x4<f32>";
386
+ readonly offset: 0;
387
+ readonly size: 64;
388
+ readonly matrixStride: 16;
389
+ }];
390
+ }];
391
+ readonly vertexBuffers: readonly [{
392
+ readonly arrayStride: 16;
393
+ readonly stepMode: "vertex";
394
+ readonly attributes: readonly [{
395
+ readonly semantic: "POSITION";
396
+ readonly shaderLocation: 0;
397
+ readonly offset: 0;
398
+ readonly format: "float32x2";
399
+ }, {
400
+ readonly semantic: "TEXCOORD_0";
401
+ readonly shaderLocation: 1;
402
+ readonly offset: 8;
403
+ readonly format: "float32x2";
404
+ }];
405
+ }];
406
+ readonly varyings: readonly [{
407
+ readonly semantic: "TEXCOORD_0";
408
+ readonly location: 0;
409
+ readonly type: "vec2<f32>";
410
+ readonly interpolation: "perspective";
411
+ }];
412
+ readonly renderTargets: readonly [{
413
+ readonly location: 0;
414
+ readonly formatClass: "color";
415
+ }];
416
+ readonly capabilities: readonly ["texture-sample"];
417
+ readonly passRequirements: readonly ["alpha-blend"];
418
+ readonly sourceMap: readonly [{
419
+ readonly sourceId: "builtin.canvas-text-2d";
420
+ readonly sourceName: "shader-language/builtin-components-2d-ui-family.json";
421
+ readonly generatedStartLine: 1;
422
+ readonly generatedEndLine: 39;
423
+ }];
424
+ readonly canonicalHash: "23dac7ae1d4e1bd8b695cb8261402b4b634d1315bf6a42e1ca04367f5e1cc598";
425
+ };
426
+ readonly spine2d: {
427
+ readonly id: "spine2d";
428
+ readonly code: string;
429
+ readonly entryPoints: {
430
+ readonly vertex: "vs_main";
431
+ readonly fragment: "fs_main";
432
+ };
433
+ readonly bindGroups: readonly [{
434
+ readonly logicalSpace: "frame";
435
+ readonly logicalGroup: 0;
436
+ readonly physicalGroup: 0;
437
+ readonly owner: "renderer";
438
+ readonly bindings: readonly [{
439
+ readonly id: "frame.camera";
440
+ readonly binding: 0;
441
+ readonly visibility: readonly ["vertex"];
442
+ readonly layout: {
443
+ readonly kind: "buffer";
444
+ readonly bufferType: "uniform";
445
+ readonly hasDynamicOffset: false;
446
+ readonly minBindingSize: 64;
447
+ };
448
+ }];
449
+ }, {
450
+ readonly logicalSpace: "object";
451
+ readonly logicalGroup: 1;
452
+ readonly physicalGroup: 1;
453
+ readonly owner: "renderer";
454
+ readonly bindings: readonly [{
455
+ readonly id: "object.transform";
456
+ readonly binding: 0;
457
+ readonly visibility: readonly ["vertex"];
458
+ readonly layout: {
459
+ readonly kind: "buffer";
460
+ readonly bufferType: "uniform";
461
+ readonly hasDynamicOffset: false;
462
+ readonly minBindingSize: 64;
463
+ };
464
+ }];
465
+ }, {
466
+ readonly logicalSpace: "material";
467
+ readonly logicalGroup: 2;
468
+ readonly physicalGroup: 2;
469
+ readonly owner: "renderer";
470
+ readonly bindings: readonly [{
471
+ readonly id: "material.atlasTexture";
472
+ readonly binding: 0;
473
+ readonly visibility: readonly ["fragment"];
474
+ readonly layout: {
475
+ readonly kind: "texture";
476
+ readonly sampleType: "float";
477
+ readonly viewDimension: "2d";
478
+ readonly multisampled: false;
479
+ };
480
+ }, {
481
+ readonly id: "material.atlasSampler";
482
+ readonly binding: 1;
483
+ readonly visibility: readonly ["fragment"];
484
+ readonly layout: {
485
+ readonly kind: "sampler";
486
+ readonly samplerType: "filtering";
487
+ };
488
+ }];
489
+ }];
490
+ readonly uniformBlocks: readonly [{
491
+ readonly id: "frame.camera";
492
+ readonly alignment: 16;
493
+ readonly byteSize: 64;
494
+ readonly fields: readonly [{
495
+ readonly name: "viewProj";
496
+ readonly type: "mat4x4<f32>";
497
+ readonly offset: 0;
498
+ readonly size: 64;
499
+ readonly matrixStride: 16;
500
+ }];
501
+ }, {
502
+ readonly id: "object.transform";
503
+ readonly alignment: 16;
504
+ readonly byteSize: 64;
505
+ readonly fields: readonly [{
506
+ readonly name: "model";
507
+ readonly type: "mat4x4<f32>";
508
+ readonly offset: 0;
509
+ readonly size: 64;
510
+ readonly matrixStride: 16;
511
+ }];
512
+ }];
513
+ readonly vertexBuffers: readonly [{
514
+ readonly arrayStride: 32;
515
+ readonly stepMode: "vertex";
516
+ readonly attributes: readonly [{
517
+ readonly semantic: "POSITION";
518
+ readonly shaderLocation: 0;
519
+ readonly offset: 0;
520
+ readonly format: "float32x2";
521
+ }, {
522
+ readonly semantic: "TEXCOORD_0";
523
+ readonly shaderLocation: 1;
524
+ readonly offset: 8;
525
+ readonly format: "float32x2";
526
+ }, {
527
+ readonly semantic: "COLOR_0";
528
+ readonly shaderLocation: 2;
529
+ readonly offset: 16;
530
+ readonly format: "float32x4";
531
+ }];
532
+ }];
533
+ readonly varyings: readonly [{
534
+ readonly semantic: "TEXCOORD_0";
535
+ readonly location: 0;
536
+ readonly type: "vec2<f32>";
537
+ readonly interpolation: "perspective";
538
+ }, {
539
+ readonly semantic: "COLOR_0";
540
+ readonly location: 1;
541
+ readonly type: "vec4<f32>";
542
+ readonly interpolation: "perspective";
543
+ }];
544
+ readonly renderTargets: readonly [{
545
+ readonly location: 0;
546
+ readonly formatClass: "color";
547
+ }];
548
+ readonly capabilities: readonly ["texture-sample"];
549
+ readonly passRequirements: readonly ["alpha-blend"];
550
+ readonly sourceMap: readonly [{
551
+ readonly sourceId: "builtin.spine2d";
552
+ readonly sourceName: "shader-language/builtin-components-2d-ui-family.json";
553
+ readonly generatedStartLine: 1;
554
+ readonly generatedEndLine: 42;
555
+ }];
556
+ readonly canonicalHash: "8f7a915892dfbfdbc55619aca4a809977622bc6ccbb93b4e7a00950ab56f826a";
557
+ };
558
+ readonly tilemap2d: {
559
+ readonly id: "tilemap2d";
560
+ readonly code: string;
561
+ readonly entryPoints: {
562
+ readonly vertex: "vs_main";
563
+ readonly fragment: "fs_main";
564
+ };
565
+ readonly bindGroups: readonly [{
566
+ readonly logicalSpace: "frame";
567
+ readonly logicalGroup: 0;
568
+ readonly physicalGroup: 0;
569
+ readonly owner: "renderer";
570
+ readonly bindings: readonly [{
571
+ readonly id: "frame.camera";
572
+ readonly binding: 0;
573
+ readonly visibility: readonly ["vertex"];
574
+ readonly layout: {
575
+ readonly kind: "buffer";
576
+ readonly bufferType: "uniform";
577
+ readonly hasDynamicOffset: false;
578
+ readonly minBindingSize: 64;
579
+ };
580
+ }];
581
+ }, {
582
+ readonly logicalSpace: "object";
583
+ readonly logicalGroup: 1;
584
+ readonly physicalGroup: 1;
585
+ readonly owner: "renderer";
586
+ readonly bindings: readonly [{
587
+ readonly id: "object.transform";
588
+ readonly binding: 0;
589
+ readonly visibility: readonly ["vertex"];
590
+ readonly layout: {
591
+ readonly kind: "buffer";
592
+ readonly bufferType: "uniform";
593
+ readonly hasDynamicOffset: false;
594
+ readonly minBindingSize: 64;
595
+ };
596
+ }];
597
+ }];
598
+ readonly uniformBlocks: readonly [{
599
+ readonly id: "frame.camera";
600
+ readonly alignment: 16;
601
+ readonly byteSize: 64;
602
+ readonly fields: readonly [{
603
+ readonly name: "viewProj";
604
+ readonly type: "mat4x4<f32>";
605
+ readonly offset: 0;
606
+ readonly size: 64;
607
+ readonly matrixStride: 16;
608
+ }];
609
+ }, {
610
+ readonly id: "object.transform";
611
+ readonly alignment: 16;
612
+ readonly byteSize: 64;
613
+ readonly fields: readonly [{
614
+ readonly name: "model";
615
+ readonly type: "mat4x4<f32>";
616
+ readonly offset: 0;
617
+ readonly size: 64;
618
+ readonly matrixStride: 16;
619
+ }];
620
+ }];
621
+ readonly vertexBuffers: readonly [{
622
+ readonly arrayStride: 24;
623
+ readonly stepMode: "vertex";
624
+ readonly attributes: readonly [{
625
+ readonly semantic: "POSITION";
626
+ readonly shaderLocation: 0;
627
+ readonly offset: 0;
628
+ readonly format: "float32x2";
629
+ }, {
630
+ readonly semantic: "COLOR_0";
631
+ readonly shaderLocation: 1;
632
+ readonly offset: 8;
633
+ readonly format: "float32x4";
634
+ }];
635
+ }];
636
+ readonly varyings: readonly [{
637
+ readonly semantic: "COLOR_0";
638
+ readonly location: 0;
639
+ readonly type: "vec4<f32>";
640
+ readonly interpolation: "perspective";
641
+ }];
642
+ readonly renderTargets: readonly [{
643
+ readonly location: 0;
644
+ readonly formatClass: "color";
645
+ }];
646
+ readonly capabilities: readonly [];
647
+ readonly passRequirements: readonly ["alpha-blend"];
648
+ readonly sourceMap: readonly [{
649
+ readonly sourceId: "builtin.tilemap2d";
650
+ readonly sourceName: "shader-language/builtin-components-2d-ui-family.json";
651
+ readonly generatedStartLine: 1;
652
+ readonly generatedEndLine: 37;
653
+ }];
654
+ readonly canonicalHash: "4d1ef60104af17bdb6c837bbdb67640c96abf7533f156510de4da5240c8c388e";
655
+ };
656
+ };
657
+ readonly artifactHash: "16ea1e154dc97e70d112d84e6b5bf5515f95ba9cc10c238efc22f8971239137e";
658
+ };