@haiyue/extensions 0.1.0 → 0.2.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 (269) hide show
  1. package/README.md +25 -0
  2. package/dist/animation/Animation2DComponent.d.ts +18 -0
  3. package/dist/animation/Animation2DExtensionRegistry.d.ts +7 -0
  4. package/dist/animation/Animation2DRenderSystem.d.ts +6 -0
  5. package/dist/animation/Animation2DRuntime.d.ts +6 -2
  6. package/dist/animation/AnimationTextRasterizer.d.ts +4 -0
  7. package/dist/animation/AnimationVisual2D.d.ts +58 -2
  8. package/dist/animation/interaction/InteractionRuntime.d.ts +83 -0
  9. package/dist/animation/interaction/runtime-types.d.ts +257 -0
  10. package/dist/animation.d.ts +3 -1
  11. package/dist/animation.js +551 -59
  12. package/dist/animation3d.js +1 -1
  13. package/dist/canvas-text.js +1 -1
  14. package/dist/chunks/2d-ui-animation-2d.generated-FpziAeGJ.js +4 -0
  15. package/dist/chunks/2d-ui-indexed-sprite.generated-DmKR0CC3.js +4 -0
  16. package/dist/chunks/Animation2DStateMachine-BHcA6Cu3.js +18212 -0
  17. package/dist/chunks/{AnimationStateMachineController-BIcAh-sT.js → AnimationStateMachineController-4sKaqh9E.js} +2 -2
  18. package/dist/chunks/AnimationVisual2D-8y3qp0_U.js +230 -0
  19. package/dist/chunks/{RenderSystem2DBase-DDT61dAu.js → RenderSystem2DBase-CF2s00vg.js} +2 -2
  20. package/dist/controls/VirtualJoystickControls.d.ts +46 -0
  21. package/dist/controls/contracts.d.ts +91 -0
  22. package/dist/controls.d.ts +2 -0
  23. package/dist/controls.js +358 -0
  24. package/dist/deformable-animation/runtime/DeformableMesh2DRuntimeExtension.d.ts +11 -0
  25. package/dist/deformable-animation/runtime/DeformableMesh2DSampler.d.ts +11 -0
  26. package/dist/deformable-animation.d.ts +5 -0
  27. package/dist/deformable-animation.js +316 -0
  28. package/dist/experimental-indexed-sprite.d.ts +5 -0
  29. package/dist/experimental-indexed-sprite.js +482 -0
  30. package/dist/gltf-worker-runtime.js +9 -9
  31. package/dist/hya-state-machine.js +3 -2
  32. package/dist/index.js +1 -1
  33. package/dist/indexed-sprite/AtlasLayout.d.ts +2 -0
  34. package/dist/indexed-sprite/IndexedSpriteRenderer.d.ts +23 -0
  35. package/dist/indexed-sprite/contracts.d.ts +89 -0
  36. package/dist/internal/2d-ui-shader-artifact.js +232 -23
  37. package/dist/ray-tracing/acceleration/bvh.d.ts +37 -0
  38. package/dist/ray-tracing/acceleration/index.d.ts +6 -0
  39. package/dist/ray-tracing/acceleration/pack.d.ts +152 -0
  40. package/dist/ray-tracing/acceleration/query.d.ts +4 -0
  41. package/dist/ray-tracing/acceleration/runtime.d.ts +30 -0
  42. package/dist/ray-tracing/acceleration/tlas.d.ts +4 -0
  43. package/dist/ray-tracing/acceleration/types.d.ts +165 -0
  44. package/dist/ray-tracing/denoise/index.d.ts +3 -0
  45. package/dist/ray-tracing/denoise/layout.d.ts +9 -0
  46. package/dist/ray-tracing/denoise/runtime.d.ts +23 -0
  47. package/dist/ray-tracing/denoise/types.d.ts +28 -0
  48. package/dist/ray-tracing/hybrid/contract.d.ts +2 -0
  49. package/dist/ray-tracing/hybrid/index.d.ts +5 -0
  50. package/dist/ray-tracing/hybrid/layout.d.ts +17 -0
  51. package/dist/ray-tracing/hybrid/plan.d.ts +2 -0
  52. package/dist/ray-tracing/hybrid/runtime.d.ts +31 -0
  53. package/dist/ray-tracing/hybrid/shaders/hybrid-artifact.generated.d.ts +625 -0
  54. package/dist/ray-tracing/hybrid/types.d.ts +144 -0
  55. package/dist/ray-tracing/lifecycle/device-recovery.d.ts +31 -0
  56. package/dist/ray-tracing/lifecycle/index.d.ts +2 -0
  57. package/dist/ray-tracing/lifecycle/types.d.ts +37 -0
  58. package/dist/ray-tracing/material/index.d.ts +2 -0
  59. package/dist/ray-tracing/material/pack.d.ts +5 -0
  60. package/dist/ray-tracing/material/types.d.ts +63 -0
  61. package/dist/ray-tracing/reference/index.d.ts +122 -0
  62. package/dist/ray-tracing/renderer/index.d.ts +7 -0
  63. package/dist/ray-tracing/renderer/layout.d.ts +20 -0
  64. package/dist/ray-tracing/renderer/plan.d.ts +2 -0
  65. package/dist/ray-tracing/renderer/reference.d.ts +17 -0
  66. package/dist/ray-tracing/renderer/runtime.d.ts +39 -0
  67. package/dist/ray-tracing/renderer/scene.d.ts +4 -0
  68. package/dist/ray-tracing/renderer/types.d.ts +115 -0
  69. package/dist/ray-tracing/sampling/index.d.ts +8 -0
  70. package/dist/ray-tracing/sampling/layout.d.ts +12 -0
  71. package/dist/ray-tracing/sampling/plan.d.ts +5 -0
  72. package/dist/ray-tracing/sampling/revision.d.ts +15 -0
  73. package/dist/ray-tracing/sampling/runtime.d.ts +44 -0
  74. package/dist/ray-tracing/sampling/sequence.d.ts +2 -0
  75. package/dist/ray-tracing/sampling/types.d.ts +96 -0
  76. package/dist/ray-tracing/scene/index.d.ts +41 -0
  77. package/dist/ray-tracing/traversal/index.d.ts +4 -0
  78. package/dist/ray-tracing/traversal/layout.d.ts +16 -0
  79. package/dist/ray-tracing/traversal/plan.d.ts +2 -0
  80. package/dist/ray-tracing/traversal/runtime.d.ts +25 -0
  81. package/dist/ray-tracing/traversal/types.d.ts +79 -0
  82. package/dist/ray-tracing/worker/client.d.ts +25 -0
  83. package/dist/ray-tracing/worker/index.d.ts +5 -0
  84. package/dist/ray-tracing/worker/runtime.d.ts +11 -0
  85. package/dist/ray-tracing/worker/serialization.d.ts +16 -0
  86. package/dist/ray-tracing/worker/source.d.ts +1 -0
  87. package/dist/ray-tracing/worker/types.d.ts +91 -0
  88. package/dist/ray-tracing.d.ts +17 -0
  89. package/dist/ray-tracing.js +7666 -0
  90. package/dist/spine.js +1 -1
  91. package/dist/tilemap.js +1 -1
  92. package/package.json +26 -23
  93. package/dist/animation/Animation2DStateMachineVisualRuntime.d.ts +0 -27
  94. package/dist/animation/Particle2DDescriptorAdapter.d.ts +0 -5
  95. package/dist/animation3d/Animation3DResource.d.ts +0 -28
  96. package/dist/animation3d/hya/HyaAnimation3DStateMachineRuntime.d.ts +0 -65
  97. package/dist/animation3d/hya/index.d.ts +0 -4
  98. package/dist/animation3d/runtime/integration/Animation3DStateMachineMixerAdapter.d.ts +0 -81
  99. package/dist/animation3d/runtime/integration/Animation3DStateMachineMixerIntegration.d.ts +0 -39
  100. package/dist/animation3d/runtime/integration/index.d.ts +0 -2
  101. package/dist/animation3d/runtime/mixer/Action.d.ts +0 -150
  102. package/dist/animation3d/runtime/mixer/Animation3DMixerRuntimeStore.d.ts +0 -6
  103. package/dist/animation3d/runtime/mixer/Mixer.d.ts +0 -59
  104. package/dist/animation3d/runtime/mixer/PoseBuffer.d.ts +0 -1
  105. package/dist/animation3d/runtime/mixer/TrackSampler.d.ts +0 -24
  106. package/dist/animation3d/runtime/mixer/index.d.ts +0 -4
  107. package/dist/animation3d/runtime/state-machine/Animation3DBlendTreeWeights.d.ts +0 -1
  108. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineCompiler.d.ts +0 -1
  109. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineController.d.ts +0 -1
  110. package/dist/animation3d/runtime/state-machine/Animation3DStateMachineMixerPort.d.ts +0 -1
  111. package/dist/animation3d/runtime/state-machine/index.d.ts +0 -6
  112. package/dist/benchmark.d.ts +0 -30
  113. package/dist/chunks/2d-ui-animation-2d.generated-D4aHzFU2.js +0 -4
  114. package/dist/chunks/Animation2DStateMachine-9IonguNa.js +0 -3245
  115. package/dist/gltf/GltfAccessorReader.d.ts +0 -7
  116. package/dist/gltf/GltfDracoDecoder.d.ts +0 -4
  117. package/dist/gltf/GltfLoaderErrors.d.ts +0 -4
  118. package/dist/gltf/GltfMaterialDescriptor.d.ts +0 -23
  119. package/dist/gltf/GltfMaterialLoader.d.ts +0 -6
  120. package/dist/gltf-worker-runtime.d.ts +0 -7
  121. package/dist/plugins/pluginUtils.d.ts +0 -20
  122. package/dist/plugins.d.ts +0 -6
  123. package/dist/shaders/generated/2d-ui-artifact.generated.d.ts +0 -658
  124. package/dist/spine/Spine2DGpuRenderer.d.ts +0 -65
  125. package/dist/spine/Spine2DRuntime.d.ts +0 -103
  126. package/dist/spine/SpineAnimationBoneTimelines.d.ts +0 -8
  127. package/dist/spine/SpineFloatBuilder.d.ts +0 -15
  128. package/dist/spine/SpinePathConstraintSolver.d.ts +0 -32
  129. package/dist/spine/SpineSkeletonRuntime.d.ts +0 -185
  130. package/dist/spine/SpineSlotAnimation.d.ts +0 -17
  131. package/dist/spine/SpineTimelineRuntime.d.ts +0 -25
  132. package/dist/spine/SpineVertexBuilder.d.ts +0 -61
  133. package/dist/tilemap/Tilemap2DRenderer.d.ts +0 -24
  134. package/dist/utils/arrayAccess.d.ts +0 -4
  135. package/dist/utils/camera2d.d.ts +0 -12
  136. package/src/animation/Animation2DComponent.ts +0 -135
  137. package/src/animation/Animation2DExtensionRegistry.ts +0 -52
  138. package/src/animation/Animation2DRenderSystem.ts +0 -1026
  139. package/src/animation/Animation2DRuntime.ts +0 -1326
  140. package/src/animation/Animation2DStateMachine.ts +0 -39
  141. package/src/animation/Animation2DStateMachineComponent.ts +0 -228
  142. package/src/animation/Animation2DStateMachineRuntime.ts +0 -141
  143. package/src/animation/Animation2DStateMachineSystem.ts +0 -60
  144. package/src/animation/Animation2DStateMachineVisualRuntime.ts +0 -282
  145. package/src/animation/Animation2DSystem.ts +0 -72
  146. package/src/animation/AnimationAssetLoader.ts +0 -84
  147. package/src/animation/AnimationAudioClip.ts +0 -140
  148. package/src/animation/AnimationPathTessellator.ts +0 -691
  149. package/src/animation/AnimationTextRasterizer.ts +0 -340
  150. package/src/animation/AnimationVisual2D.ts +0 -153
  151. package/src/animation/HyaAnimation2DClipAdapter.ts +0 -845
  152. package/src/animation/Particle2DDescriptorAdapter.ts +0 -35
  153. package/src/animation/runtime/mixer/Action.ts +0 -876
  154. package/src/animation/runtime/mixer/Mixer.ts +0 -505
  155. package/src/animation/runtime/mixer/PoseBuffer.ts +0 -105
  156. package/src/animation/runtime/mixer/Sampler.ts +0 -252
  157. package/src/animation/runtime/mixer/Types.ts +0 -138
  158. package/src/animation/runtime/mixer/index.ts +0 -31
  159. package/src/animation-state-machine/AnimationStateMachine.ts +0 -146
  160. package/src/animation-state-machine/AnimationStateMachineChannels.ts +0 -116
  161. package/src/animation-state-machine/runtime/Animation2DStateMachineMixerAdapter.ts +0 -197
  162. package/src/animation-state-machine/runtime/AnimationStateMachineBlendTreeWeights.ts +0 -503
  163. package/src/animation-state-machine/runtime/AnimationStateMachineCompiler.ts +0 -763
  164. package/src/animation-state-machine/runtime/AnimationStateMachineController.ts +0 -987
  165. package/src/animation-state-machine/runtime/AnimationStateMachineMixerPort.ts +0 -54
  166. package/src/animation-state-machine/runtime/index.ts +0 -47
  167. package/src/animation.ts +0 -33
  168. package/src/animation3d/Animation3DAction.ts +0 -73
  169. package/src/animation3d/Animation3DBinding.ts +0 -116
  170. package/src/animation3d/Animation3DClip.ts +0 -22
  171. package/src/animation3d/Animation3DError.ts +0 -34
  172. package/src/animation3d/Animation3DMixer.ts +0 -82
  173. package/src/animation3d/Animation3DPose.ts +0 -100
  174. package/src/animation3d/Animation3DPoseBuffer.ts +0 -85
  175. package/src/animation3d/Animation3DResource.ts +0 -49
  176. package/src/animation3d/Animation3DStateMachine.ts +0 -126
  177. package/src/animation3d/Animation3DStateMachineRuntime.ts +0 -191
  178. package/src/animation3d/Animation3DTrack.ts +0 -29
  179. package/src/animation3d/hya/HyaAnimation3DRuntime.ts +0 -756
  180. package/src/animation3d/hya/HyaAnimation3DStateMachineRuntime.ts +0 -618
  181. package/src/animation3d/hya/HyaAnimation3DTypes.ts +0 -168
  182. package/src/animation3d/hya/index.ts +0 -10
  183. package/src/animation3d/index.ts +0 -76
  184. package/src/animation3d/runtime/integration/Animation3DStateMachineMixerAdapter.ts +0 -325
  185. package/src/animation3d/runtime/integration/Animation3DStateMachineMixerIntegration.ts +0 -158
  186. package/src/animation3d/runtime/integration/index.ts +0 -9
  187. package/src/animation3d/runtime/mixer/Action.ts +0 -833
  188. package/src/animation3d/runtime/mixer/Animation3DMixerRuntimeStore.ts +0 -26
  189. package/src/animation3d/runtime/mixer/Mixer.ts +0 -562
  190. package/src/animation3d/runtime/mixer/PoseBuffer.ts +0 -1
  191. package/src/animation3d/runtime/mixer/TrackSampler.ts +0 -399
  192. package/src/animation3d/runtime/mixer/index.ts +0 -8
  193. package/src/animation3d/runtime/state-machine/Animation3DBlendTreeWeights.ts +0 -4
  194. package/src/animation3d/runtime/state-machine/Animation3DStateMachineCompiler.ts +0 -1
  195. package/src/animation3d/runtime/state-machine/Animation3DStateMachineController.ts +0 -1
  196. package/src/animation3d/runtime/state-machine/Animation3DStateMachineMixerPort.ts +0 -1
  197. package/src/animation3d/runtime/state-machine/index.ts +0 -45
  198. package/src/animation3d.ts +0 -5
  199. package/src/benchmark.ts +0 -168
  200. package/src/canvas-text/CanvasText2DRenderSystem.ts +0 -292
  201. package/src/canvas-text/CanvasTextComponent.ts +0 -47
  202. package/src/canvas-text.ts +0 -4
  203. package/src/experimental-gltf-worker.ts +0 -18
  204. package/src/experimental-spine-worker.ts +0 -9
  205. package/src/gltf/GltfAccessorReader.ts +0 -271
  206. package/src/gltf/GltfAnimation3DAdapter.ts +0 -680
  207. package/src/gltf/GltfAnimationRuntime.ts +0 -392
  208. package/src/gltf/GltfAssetWorkerClient.ts +0 -136
  209. package/src/gltf/GltfCompatibilityReport.ts +0 -214
  210. package/src/gltf/GltfConservativeBounds.ts +0 -219
  211. package/src/gltf/GltfDracoDecoder.ts +0 -251
  212. package/src/gltf/GltfExtensionAdapter.ts +0 -340
  213. package/src/gltf/GltfLoaderContract.ts +0 -333
  214. package/src/gltf/GltfLoaderErrors.ts +0 -59
  215. package/src/gltf/GltfMaterialDescriptor.ts +0 -134
  216. package/src/gltf/GltfMaterialEncoder.ts +0 -173
  217. package/src/gltf/GltfMaterialLoader.ts +0 -293
  218. package/src/gltf/GltfModelComponent.ts +0 -115
  219. package/src/gltf/GltfModelSystem.ts +0 -208
  220. package/src/gltf/GltfPlugin.ts +0 -84
  221. package/src/gltf/GltfSchema.ts +0 -229
  222. package/src/gltf/GltfUvSemanticPlanner.ts +0 -166
  223. package/src/gltf/gltfLoader.ts +0 -910
  224. package/src/gltf-animation3d.ts +0 -10
  225. package/src/gltf-worker-runtime.ts +0 -10
  226. package/src/gltf.ts +0 -56
  227. package/src/grid/Grid2DComponent.ts +0 -69
  228. package/src/grid.ts +0 -2
  229. package/src/hya-state-machine.ts +0 -19
  230. package/src/index.ts +0 -2
  231. package/src/plugins/pluginUtils.ts +0 -50
  232. package/src/plugins.ts +0 -6
  233. package/src/shaders/generated/2d-ui-animation-2d.generated.wgsl +0 -242
  234. package/src/shaders/generated/2d-ui-artifact.generated.ts +0 -867
  235. package/src/shaders/generated/2d-ui-canvas-text-2d.generated.wgsl +0 -38
  236. package/src/shaders/generated/2d-ui-spine2d.generated.wgsl +0 -41
  237. package/src/shaders/generated/2d-ui-tilemap2d.generated.wgsl +0 -36
  238. package/src/spine/Spine2DComponent.ts +0 -168
  239. package/src/spine/Spine2DGpuRenderer.ts +0 -449
  240. package/src/spine/Spine2DRenderSystem.ts +0 -199
  241. package/src/spine/Spine2DRuntime.ts +0 -1529
  242. package/src/spine/SpineAnimationBoneTimelines.ts +0 -30
  243. package/src/spine/SpineAssetParser.ts +0 -20
  244. package/src/spine/SpineAssetWorkerClient.ts +0 -112
  245. package/src/spine/SpineAssetWorkerContract.ts +0 -4
  246. package/src/spine/SpineAtlasParser.ts +0 -127
  247. package/src/spine/SpineFloatBuilder.ts +0 -66
  248. package/src/spine/SpinePathConstraintSolver.ts +0 -582
  249. package/src/spine/SpinePlugin.ts +0 -76
  250. package/src/spine/SpineSkeletonRuntime.ts +0 -521
  251. package/src/spine/SpineSlotAnimation.ts +0 -195
  252. package/src/spine/SpineTimelineRuntime.ts +0 -453
  253. package/src/spine/SpineVertexBuilder.ts +0 -686
  254. package/src/spine.ts +0 -7
  255. package/src/tilemap/Tilemap2DComponent.ts +0 -232
  256. package/src/tilemap/Tilemap2DRenderSystem.ts +0 -58
  257. package/src/tilemap/Tilemap2DRenderer.ts +0 -289
  258. package/src/tilemap/TilemapPlugin.ts +0 -75
  259. package/src/tilemap.ts +0 -6
  260. package/src/tween/Tween2DComponent.ts +0 -83
  261. package/src/tween/Tween2DSystem.ts +0 -78
  262. package/src/tween.ts +0 -4
  263. package/src/types/earcut.d.ts +0 -7
  264. package/src/types/wgsl.d.ts +0 -4
  265. package/src/utils/RenderSystem2DBase.ts +0 -164
  266. package/src/utils/arrayAccess.ts +0 -17
  267. package/src/utils/camera2d.ts +0 -68
  268. package/src/utils/render2dGpu.ts +0 -132
  269. package/test/fixtures/gltf/animation-characterization.gltf +0 -344
@@ -1,867 +0,0 @@
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;