shaders 3.0.443 → 3.0.444

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 (454) hide show
  1. package/dist/cli.js +2 -2
  2. package/dist/core/{AngularBlur-CJsRS1Ri.js → AngularBlur-D-tt4pvi.js} +2 -2
  3. package/dist/core/{Arc-CNesL3S9.js → Arc-DrBTn2ft.js} +2 -2
  4. package/dist/core/{Ascii-z7til0PQ.js → Ascii-cHzx_Cgc.js} +2 -2
  5. package/dist/core/{Aurora-BAuYUYGc.js → Aurora-15z76vsc.js} +3 -3
  6. package/dist/core/{BarShift-qVwbTMcq.js → BarShift-s7HgQwz5.js} +3 -3
  7. package/dist/core/{BarnDoors-DrOAeSqj.js → BarnDoors-CBzse00V.js} +2 -2
  8. package/dist/core/{Beam-BW6yblZw.js → Beam-DZgWUuTC.js} +2 -2
  9. package/dist/core/{Bend-B7PMQ3T5.js → Bend-CHTYK8SA.js} +2 -2
  10. package/dist/core/{Blob-CRJ5N0hK.js → Blob-A8bKkEG1.js} +3 -3
  11. package/dist/core/{BlockDissolve-D-6Wy66g.js → BlockDissolve-Bb4aDV5s.js} +2 -2
  12. package/dist/core/{BlockNoise-Ct9Fae_7.js → BlockNoise-BnnsS95j.js} +3 -3
  13. package/dist/core/{BlueNoise-Cu7rJuP0.js → BlueNoise-DTOarEL0.js} +2 -2
  14. package/dist/core/{Blur-BrdVVSPq.js → Blur-DEwHcGOu.js} +1 -1
  15. package/dist/core/{Boids-DIzUaLGM.js → Boids-BWJXVflR.js} +2 -2
  16. package/dist/core/{BokehBlur-yYb03spN.js → BokehBlur-pQJN6FFd.js} +2 -2
  17. package/dist/core/{BrickPattern-BL_MOS_A.js → BrickPattern-Kwmx3pdx.js} +3 -3
  18. package/dist/core/{BrightnessContrast-CiKimIcA.js → BrightnessContrast-CAkwN3s1.js} +1 -1
  19. package/dist/core/{BrushedMetal-dvYjizvg.js → BrushedMetal-B4qfaTCf.js} +5 -5
  20. package/dist/core/{Bulge-CogpoPKe.js → Bulge-CLBhicOs.js} +2 -2
  21. package/dist/core/{CRTScreen-X64EnHMB.js → CRTScreen-Cj2H2mXK.js} +1 -1
  22. package/dist/core/{CarbonFiber-CTy3P-Qk.js → CarbonFiber-zA6_ZDg8.js} +4 -4
  23. package/dist/core/{Chalkboard-CnHUOHtc.js → Chalkboard-DwkX3ZL3.js} +2 -2
  24. package/dist/core/{ChannelBlur-MwnpNLSZ.js → ChannelBlur-KHDU8WCn.js} +1 -1
  25. package/dist/core/{CheckerWipe-CCNc70ye.js → CheckerWipe-CNlqWp0y.js} +2 -2
  26. package/dist/core/{Checkerboard-C97ZiLyQ.js → Checkerboard-CvP8BKcu.js} +2 -2
  27. package/dist/core/{Chevron-ABT6D1wM.js → Chevron-BFmKhIws.js} +3 -3
  28. package/dist/core/{ChromaFlow-7tJQEFm9.js → ChromaFlow-C8I4PtcP.js} +2 -2
  29. package/dist/core/{ChromaticAberration-D7-fxyEd.js → ChromaticAberration-CGPfHEFI.js} +2 -2
  30. package/dist/core/{Circle-I0DIAypS.js → Circle-ChmepdP_.js} +2 -2
  31. package/dist/core/{ColorWheel-CEqzzrN-.js → ColorWheel-D5V4ozig.js} +3 -3
  32. package/dist/core/{CompressionArtifacts-C24nRoC3.js → CompressionArtifacts--GdHELg8.js} +1 -1
  33. package/dist/core/{ConcentricSpin-CAu-PGNH.js → ConcentricSpin-DIWQ80K5.js} +3 -3
  34. package/dist/core/{ConicGradient-n12K5TLj.js → ConicGradient-DjMQDAT6.js} +3 -3
  35. package/dist/core/{ContourLines-FOStIWDr.js → ContourLines-Pq1zDmlf.js} +2 -2
  36. package/dist/core/{CornerPin-DsUVMFcX.js → CornerPin-C-x2z8H5.js} +2 -2
  37. package/dist/core/{Crescent-9i_5WPA-.js → Crescent-C6COUHa5.js} +2 -2
  38. package/dist/core/{Cross-HiA69xGL.js → Cross-Cgw13Sga.js} +2 -2
  39. package/dist/core/{Crystal-BBjEm9m4.js → Crystal-RnN4Y5Tf.js} +4 -4
  40. package/dist/core/{CurlNoise-1jifziI0.js → CurlNoise-jaIscgOF.js} +3 -3
  41. package/dist/core/{CursorRipples-D4agAYHK.js → CursorRipples-Gv0B1S-h.js} +2 -2
  42. package/dist/core/{CursorTrail-C-FrY0e2.js → CursorTrail-BMHsUYwx.js} +3 -3
  43. package/dist/core/{DataMosh-DXcM1I4Y.js → DataMosh-CaqYFxYA.js} +1 -1
  44. package/dist/core/{DiamondGradient-CQ5jeKEc.js → DiamondGradient-D388xLbc.js} +3 -3
  45. package/dist/core/{DiamondWipe-B1EXgweH.js → DiamondWipe-BRXj3gon.js} +2 -2
  46. package/dist/core/{DiffuseBlur-CmD97dHb.js → DiffuseBlur-CM5Qy5JM.js} +2 -2
  47. package/dist/core/{DisplacementMap-JV_CNJfU.js → DisplacementMap-Cr1fauBv.js} +2 -2
  48. package/dist/core/{Dither-NJDWpGb3.js → Dither-CubXhMES.js} +2 -2
  49. package/dist/core/{DotGrid-B2w7RFcv.js → DotGrid-D6We1dqv.js} +3 -3
  50. package/dist/core/{DropShadow-CLWp-bon.js → DropShadow-C8v9KJgy.js} +2 -2
  51. package/dist/core/{Duotone-Be2jx-jZ.js → Duotone-BfVi04d4.js} +2 -2
  52. package/dist/core/{Ellipse-BR6qXidK.js → Ellipse-fTV0CAVg.js} +2 -2
  53. package/dist/core/{Emboss-C8ElxLo3.js → Emboss-BNhsz2v0.js} +4 -4
  54. package/dist/core/{Engraving-D67DM--1.js → Engraving-DYTr1YbV.js} +2 -2
  55. package/dist/core/{ErosionNoise-FeEMQOkR.js → ErosionNoise-CxsXwPPE.js} +2 -2
  56. package/dist/core/{Exposure-CZ1gfqpf.js → Exposure-DISAOzQ5.js} +1 -1
  57. package/dist/core/{FallingLines-ifuQ01oA.js → FallingLines-DBGk9U7l.js} +3 -3
  58. package/dist/core/{FilmGrain-p5sawa_f.js → FilmGrain-Ban-r5as.js} +1 -1
  59. package/dist/core/{FilmStock-BD5wv1TV.js → FilmStock-BlOwC5zb.js} +1 -1
  60. package/dist/core/{Flip-MKiLH9jJ.js → Flip-CAt9CFWn.js} +2 -2
  61. package/dist/core/{FloatingParticles-Bn8CmtwG.js → FloatingParticles-Cppgg6I0.js} +2 -2
  62. package/dist/core/{FlowField-BdFeRmif.js → FlowField-b0PcB7MV.js} +3 -3
  63. package/dist/core/{Flower-BwDBwcSk.js → Flower-iLK4UwZa.js} +2 -2
  64. package/dist/core/{FlowingGradient-RYOS36eB.js → FlowingGradient-CZc_z9cL.js} +3 -3
  65. package/dist/core/{FlutedGlass-Ong8W4Ih.js → FlutedGlass-DMl2A42x.js} +3 -3
  66. package/dist/core/{Fog-C-X8msRb.js → Fog-BBc52yrL.js} +2 -2
  67. package/dist/core/{Form3D-BZ_vaLWe.js → Form3D-BqMINp_g.js} +3 -3
  68. package/dist/core/{FractalNoise-BPj8RPkE.js → FractalNoise-BjGa9I7_.js} +3 -3
  69. package/dist/core/{Frost-DmxlFu63.js → Frost-ttMO1uGc.js} +5 -5
  70. package/dist/core/{GaborNoise-Boc8ieHd.js → GaborNoise-CSC24alr.js} +3 -3
  71. package/dist/core/{Glass-D5p21MIw.js → Glass-DHkb-2UB.js} +4 -4
  72. package/dist/core/{GlassTiles-BP4CzdI3.js → GlassTiles-CTSmg7gD.js} +1 -1
  73. package/dist/core/{Glitch-cJguD7jS.js → Glitch-O5FZxlBV.js} +1 -1
  74. package/dist/core/{Glow-BabfcnwS.js → Glow-Cj9SzOqq.js} +1 -1
  75. package/dist/core/{Godrays-BpiKSlNR.js → Godrays-XW1fNiSU.js} +3 -3
  76. package/dist/core/{Goo-BaQEtOyr.js → Goo-Bc43zAec.js} +5 -5
  77. package/dist/core/{GradientMap-BtKtW-4M.js → GradientMap-BxSv1OOf.js} +2 -2
  78. package/dist/core/{Grayscale-Bgwugyvv.js → Grayscale-CNM0GlQN.js} +1 -1
  79. package/dist/core/{Grid-5cEDkyWX.js → Grid-reIQAyFU.js} +2 -2
  80. package/dist/core/{GridDistortion-Byf4G720.js → GridDistortion-tJym6OIr.js} +2 -2
  81. package/dist/core/{Group-DUEQSUir.js → Group-8iAuPA0-.js} +1 -1
  82. package/dist/core/{HTMLInCanvas-uW1O3Z-R.js → HTMLInCanvas-CAHfLRAz.js} +1 -1
  83. package/dist/core/{Halftone-BiSLVvGF.js → Halftone-Dlk16PsH.js} +2 -2
  84. package/dist/core/{Heart-RAGeVEVH.js → Heart-C3Uas8c_.js} +2 -2
  85. package/dist/core/{Heatmap-Ds65scO7.js → Heatmap-CE7IB_4g.js} +5 -5
  86. package/dist/core/{HexGrid-H1N5Y1XD.js → HexGrid-BiXYpVNp.js} +2 -2
  87. package/dist/core/{Hologram-DpDfyeSz.js → Hologram-BjKBncw8.js} +5 -5
  88. package/dist/core/{Holographic-Ckubuqn8.js → Holographic-CCTmTYXb.js} +5 -5
  89. package/dist/core/{HueShift-C_a5UVHy.js → HueShift-CE5RgaBc.js} +1 -1
  90. package/dist/core/{ImageTexture-CM-dPJQ4.js → ImageTexture-BrjlwuWY.js} +1 -1
  91. package/dist/core/{InkFlow-CY7sCKpI.js → InkFlow-DS92HgM9.js} +2 -2
  92. package/dist/core/{Invert-DhHrtwHQ.js → Invert-e1Z9IfPo.js} +1 -1
  93. package/dist/core/{IrisWipe-BnOMUdEV.js → IrisWipe-CCK_EamC.js} +2 -2
  94. package/dist/core/{IsometricCubes-CXPz62PB.js → IsometricCubes-BA-cN4bC.js} +2 -2
  95. package/dist/core/{Kaleidoscope-CSgi0E5B.js → Kaleidoscope-Cin7yxd7.js} +2 -2
  96. package/dist/core/{KeyFrames-C3I4poq8.js → KeyFrames-D4-678xR.js} +2 -2
  97. package/dist/core/{LensFlare-DxvbKXgt.js → LensFlare-UNNiSfiz.js} +3 -3
  98. package/dist/core/{LightEdge-niXz_FAk.js → LightEdge-GUFdnqjh.js} +5 -5
  99. package/dist/core/{LightLeak-B7Pt1tt4.js → LightLeak-DWv0ec7B.js} +3 -3
  100. package/dist/core/{LinearBlur-CXNcduWQ.js → LinearBlur-DBKjOKVV.js} +2 -2
  101. package/dist/core/{LinearGradient-CYiaWIXd.js → LinearGradient--Vy79Fs_.js} +3 -3
  102. package/dist/core/{LinearWipe-gwLhEveK.js → LinearWipe-PZcYib77.js} +2 -2
  103. package/dist/core/{LiquidMetal-D0sgLjcd.js → LiquidMetal-cUxfJdju.js} +5 -5
  104. package/dist/core/{Liquify-h08a8S-C.js → Liquify-B1o-_MJZ.js} +2 -2
  105. package/dist/core/{MagneticFilings-BlNWPVwS.js → MagneticFilings-B1Qvnw6t.js} +2 -2
  106. package/dist/core/{Marble-bps2lOWc.js → Marble-CD5fqEce.js} +3 -3
  107. package/dist/core/{Mirror-8miSUAyZ.js → Mirror-QJoYnzu6.js} +2 -2
  108. package/dist/core/{MultiPointGradient-C-9_Q6CM.js → MultiPointGradient-CLRPS8u7.js} +2 -2
  109. package/dist/core/{Neon-RDh1tAjH.js → Neon-DAPbLlBN.js} +4 -4
  110. package/dist/core/{NoiseDissolve-DjlWGdUc.js → NoiseDissolve-jdMIvdYS.js} +2 -2
  111. package/dist/core/{ObjectTracker-DW4aEBRv.js → ObjectTracker-BD_l_g6R.js} +3 -3
  112. package/dist/core/{PagePeel-JsbScYi4.js → PagePeel-YyWAE0am.js} +1 -1
  113. package/dist/core/{Paper-BGTU0GOF.js → Paper-DOFhG3gq.js} +1 -1
  114. package/dist/core/{Parallelogram-RC3MxzlN.js → Parallelogram-CKlvs9a_.js} +2 -2
  115. package/dist/core/{ParticleField-XypD7Eru.js → ParticleField-R--x794f.js} +1 -1
  116. package/dist/core/{ParticleFlow-DBw7m9C6.js → ParticleFlow-DY8g2n2d.js} +2 -2
  117. package/dist/core/{Particles-CvpZvfe3.js → Particles-D6-MCj-7.js} +3 -3
  118. package/dist/core/{PerlinNoise-CHVaarmz.js → PerlinNoise-DKBJst5k.js} +3 -3
  119. package/dist/core/{Perspective-zyCZAb3_.js → Perspective-DH5aV7fh.js} +2 -2
  120. package/dist/core/{PixelSort-B-zefB9S.js → PixelSort-DRd4GE4_.js} +1 -1
  121. package/dist/core/{PixelThrow-BZ6erf3G.js → PixelThrow-CRizzpOr.js} +2 -2
  122. package/dist/core/{Pixelate-D1e7buDQ.js → Pixelate-DgPtCErp.js} +1 -1
  123. package/dist/core/{Plasma-CBrx8Xu-.js → Plasma-8zXLjhIr.js} +3 -3
  124. package/dist/core/{Plastic-CcS4iAJM.js → Plastic-Dv-N6_Nv.js} +5 -5
  125. package/dist/core/{PolarCoordinates-B9SuYLgF.js → PolarCoordinates-lw0yBeJq.js} +2 -2
  126. package/dist/core/{Polygon-N0l1KfIO.js → Polygon-DQxmxfqr.js} +2 -2
  127. package/dist/core/{Posterize-u2et79Pv.js → Posterize-C4qpmou-.js} +1 -1
  128. package/dist/core/{Prism-BnDsPBcD.js → Prism-C0qW3WgL.js} +3 -3
  129. package/dist/core/{ProgressiveBlur-D9FiTJQy.js → ProgressiveBlur-C_xtFzmP.js} +2 -2
  130. package/dist/core/{RadialGradient-C4oB78ya.js → RadialGradient-DetBcKps.js} +3 -3
  131. package/dist/core/{RadialWipe-Dzb7i6wy.js → RadialWipe-Cmv05uxE.js} +2 -2
  132. package/dist/core/{RandomBars-DO9j43mN.js → RandomBars-CrPfWF8l.js} +2 -2
  133. package/dist/core/{ReactionDiffusion-DG1NSPhM.js → ReactionDiffusion-Dc_uVKMg.js} +2 -2
  134. package/dist/core/{RectangularCoordinates-Ck1gXdGx.js → RectangularCoordinates-C1sbpWlI.js} +2 -2
  135. package/dist/core/{ReflectivePlane-DFQDgLYC.js → ReflectivePlane-DyTDDfvN.js} +2 -2
  136. package/dist/core/{Repeater-CT35_BhW.js → Repeater-CzvIt5Gw.js} +2 -2
  137. package/dist/core/{Ring-DywDgKDv.js → Ring-6gd4orX0.js} +2 -2
  138. package/dist/core/{RippleWipe-ePWlg-DT.js → RippleWipe-BU-dDvBK.js} +2 -2
  139. package/dist/core/{Ripples-fTSMeqiE.js → Ripples-D7Y__Ls8.js} +3 -3
  140. package/dist/core/{RoundedRect-B0lxuFfM.js → RoundedRect-DMzr6z4F.js} +2 -2
  141. package/dist/core/{Saturation-ClaD54dk.js → Saturation-BZ5ZmmKo.js} +1 -1
  142. package/dist/core/{Scratches-D8ZIBZ50.js → Scratches-wRRWI1-5.js} +3 -3
  143. package/dist/core/{Sharpness-CsnT4s1o.js → Sharpness-BQu_GeV6.js} +1 -1
  144. package/dist/core/{Shatter-D_V7GBel.js → Shatter-HTHPxq07.js} +2 -2
  145. package/dist/core/{SimplexNoise-tI2G3Wzn.js → SimplexNoise-arMv2IxX.js} +3 -3
  146. package/dist/core/{SineWave-BGsYyEFg.js → SineWave-crFYxXPS.js} +3 -3
  147. package/dist/core/{SliceWipe-s4pWdINK.js → SliceWipe-D-Rnm4ce.js} +1 -1
  148. package/dist/core/{Smoke-C3SLe_rD.js → Smoke-Cyjm_hFb.js} +3 -3
  149. package/dist/core/{SmokeFill-BuKZtbX8.js → SmokeFill-CMBAFeM8.js} +4 -4
  150. package/dist/core/{SmokeFlow-5fnVH2a9.js → SmokeFlow-DfytXLC4.js} +3 -3
  151. package/dist/core/{Solarize-TP85IPV7.js → Solarize-BNuZoWV5.js} +1 -1
  152. package/dist/core/{SolidColor-16e4q89i.js → SolidColor-DB8l6xRl.js} +1 -1
  153. package/dist/core/{Spherize-C4qsnql6.js → Spherize-LIfupaEj.js} +2 -2
  154. package/dist/core/{Spiral-rPHDFACm.js → Spiral-B-Kz6zOG.js} +3 -3
  155. package/dist/core/{Star-BDFhZWLo.js → Star-Bxi6VOuZ.js} +2 -2
  156. package/dist/core/{Stone-CCXo9IgA.js → Stone-CrdhdOWf.js} +2 -2
  157. package/dist/core/{Strands-DCzYUsCX.js → Strands-CgOVvjKk.js} +3 -3
  158. package/dist/core/{Stretch-CjhYXAth.js → Stretch-CWpqkWdT.js} +2 -2
  159. package/dist/core/{Stripes-CN2TFWGw.js → Stripes-DnmkVdJi.js} +3 -3
  160. package/dist/core/{StudioBackground-I_XxtKjr.js → StudioBackground-BR7HA0ot.js} +3 -3
  161. package/dist/core/{SunBurst-CGQkdsXl.js → SunBurst-2tbvTvoR.js} +3 -3
  162. package/dist/core/{Surface3D-CpCPTs0u.js → Surface3D-BDN9t6UU.js} +2 -2
  163. package/dist/core/{Swirl-BCnlG3G8.js → Swirl-BO63keY-.js} +3 -3
  164. package/dist/core/{Teardrop-DX-YZkNC.js → Teardrop-Cj9wbWNj.js} +2 -2
  165. package/dist/core/{Text-oI5d7_UD.js → Text-DDpqrXsw.js} +3 -3
  166. package/dist/core/{ThinFilm-CEYaV4nn.js → ThinFilm-Cfx6eANY.js} +4 -4
  167. package/dist/core/{TiltShift-C8GluqAm.js → TiltShift-DtDGS05n.js} +2 -2
  168. package/dist/core/{TimeTrail-CPiSo5Of.js → TimeTrail-CH7CMyxo.js} +2 -2
  169. package/dist/core/{Tint-NA7BO-Qk.js → Tint-RTSV6Aiu.js} +2 -2
  170. package/dist/core/{Trapezoid-BOGSQvW5.js → Trapezoid-B8YUl-8U.js} +2 -2
  171. package/dist/core/{TriangularGrid-Zx3I4CqA.js → TriangularGrid-B_P_Bn6J.js} +3 -3
  172. package/dist/core/{Tritone-Bl69W4Y4.js → Tritone-zbDA_LBO.js} +2 -2
  173. package/dist/core/{Truchet-RJI0-v6x.js → Truchet-QdRvWfkQ.js} +2 -2
  174. package/dist/core/{Twirl-CrIawDs2.js → Twirl-M1ylLxnB.js} +2 -2
  175. package/dist/core/{VHS-B12KbScc.js → VHS-BbpH5MH8.js} +1 -1
  176. package/dist/core/{VenetianBlinds-CGfPlhGd.js → VenetianBlinds-DyBouRcb.js} +2 -2
  177. package/dist/core/{Vesica-DekjxkHL.js → Vesica-DYkOtRW9.js} +2 -2
  178. package/dist/core/{Vibrance-DKKduAD8.js → Vibrance-DYCb_3Vb.js} +1 -1
  179. package/dist/core/{VideoTexture-1xg_a680.js → VideoTexture-B5QB_7wK.js} +1 -1
  180. package/dist/core/{Vignette-CDRCMNb2.js → Vignette-CWNEqMe7.js} +2 -2
  181. package/dist/core/{Voronoi-EWj3WFqv.js → Voronoi-DJIf5qyN.js} +3 -3
  182. package/dist/core/{Water-BdGrOEuE.js → Water-D7FpFPfD.js} +5 -5
  183. package/dist/core/{Watercolor-BGIcnGZu.js → Watercolor-B4bOV2pY.js} +2 -2
  184. package/dist/core/{WaveDistortion-BNlrOaur.js → WaveDistortion-C9K0iLOy.js} +3 -3
  185. package/dist/core/{WaveletNoise-Jv-694xX.js → WaveletNoise-MxVl5SGH.js} +3 -3
  186. package/dist/core/{Weave-HNS6xvOs.js → Weave-DMvmkoDF.js} +2 -2
  187. package/dist/core/{WebcamTexture-DVKxGpWI.js → WebcamTexture-ylP8AAV1.js} +3 -2
  188. package/dist/core/{Wool-D7uM0JRs.js → Wool-DKuYNXvU.js} +2 -2
  189. package/dist/core/{WorleyNoise-DsDWmRCp.js → WorleyNoise-C-8TphM9.js} +3 -3
  190. package/dist/core/{ZoomBlur-S2GfQojf.js → ZoomBlur-BxPekTQP.js} +2 -2
  191. package/dist/core/{coords-0A7CojvN.js → coords-CLqRuQwC.js} +8 -3
  192. package/dist/core/{glass-BjUqcmHP.js → glass-BLc74dQi.js} +1 -1
  193. package/dist/core/gpu/composer.d.ts.map +1 -1
  194. package/dist/core/gpu/index.d.ts +22 -3
  195. package/dist/core/gpu/index.d.ts.map +1 -1
  196. package/dist/core/gpu/kit/sdf.d.ts.map +1 -1
  197. package/dist/core/gpu/passManager.d.ts +5 -1
  198. package/dist/core/gpu/passManager.d.ts.map +1 -1
  199. package/dist/core/gpu/porters.d.ts +1 -0
  200. package/dist/core/gpu/porters.d.ts.map +1 -1
  201. package/dist/core/gpu/root.d.ts +26 -4
  202. package/dist/core/gpu/root.d.ts.map +1 -1
  203. package/dist/core/gpu/support.d.ts +119 -0
  204. package/dist/core/gpu/support.d.ts.map +1 -0
  205. package/dist/core/gpu/uniformStore.d.ts.map +1 -1
  206. package/dist/core/index.d.ts +3 -0
  207. package/dist/core/index.d.ts.map +1 -1
  208. package/dist/core/index.js +450 -316
  209. package/dist/core/{noiseColor-w3B94vmT.js → noiseColor-CFYtKwDd.js} +2 -2
  210. package/dist/core/{porters-B1jqpcE3.js → porters-u50QU6Yv.js} +2 -2
  211. package/dist/core/presetRenderer.d.ts +13 -1
  212. package/dist/core/presetRenderer.d.ts.map +1 -1
  213. package/dist/core/registry.js +199 -198
  214. package/dist/core/shaderRegistry-QNzuz_fH.js +425 -0
  215. package/dist/core/shaders/AngularBlur/index.js +5 -4
  216. package/dist/core/shaders/Arc/index.js +5 -4
  217. package/dist/core/shaders/Ascii/index.js +5 -4
  218. package/dist/core/shaders/Aurora/index.js +5 -4
  219. package/dist/core/shaders/BarShift/index.js +5 -4
  220. package/dist/core/shaders/BarnDoors/index.js +5 -4
  221. package/dist/core/shaders/Beam/index.js +5 -4
  222. package/dist/core/shaders/Bend/index.js +5 -4
  223. package/dist/core/shaders/Blob/index.js +5 -4
  224. package/dist/core/shaders/BlockDissolve/index.js +5 -4
  225. package/dist/core/shaders/BlockNoise/index.js +6 -5
  226. package/dist/core/shaders/BlueNoise/index.js +6 -5
  227. package/dist/core/shaders/Blur/index.js +5 -4
  228. package/dist/core/shaders/Boids/index.js +5 -4
  229. package/dist/core/shaders/BokehBlur/index.js +5 -4
  230. package/dist/core/shaders/BrickPattern/index.js +5 -4
  231. package/dist/core/shaders/BrightnessContrast/index.js +5 -4
  232. package/dist/core/shaders/BrushedMetal/index.js +7 -6
  233. package/dist/core/shaders/Bulge/index.js +5 -4
  234. package/dist/core/shaders/CRTScreen/index.js +5 -4
  235. package/dist/core/shaders/CarbonFiber/index.js +7 -6
  236. package/dist/core/shaders/Chalkboard/index.js +5 -4
  237. package/dist/core/shaders/ChannelBlur/index.js +5 -4
  238. package/dist/core/shaders/CheckerWipe/index.js +5 -4
  239. package/dist/core/shaders/Checkerboard/index.js +5 -4
  240. package/dist/core/shaders/Chevron/index.js +5 -4
  241. package/dist/core/shaders/ChromaFlow/index.js +5 -4
  242. package/dist/core/shaders/ChromaticAberration/index.js +5 -4
  243. package/dist/core/shaders/Circle/index.js +5 -4
  244. package/dist/core/shaders/ColorWheel/index.js +5 -4
  245. package/dist/core/shaders/CompressionArtifacts/index.js +5 -4
  246. package/dist/core/shaders/ConcentricSpin/index.js +5 -4
  247. package/dist/core/shaders/ConicGradient/index.js +5 -4
  248. package/dist/core/shaders/ContourLines/index.js +5 -4
  249. package/dist/core/shaders/CornerPin/index.js +5 -4
  250. package/dist/core/shaders/Crescent/index.js +5 -4
  251. package/dist/core/shaders/Cross/index.js +5 -4
  252. package/dist/core/shaders/Crystal/index.js +7 -6
  253. package/dist/core/shaders/CurlNoise/index.js +6 -5
  254. package/dist/core/shaders/CursorRipples/index.js +5 -4
  255. package/dist/core/shaders/CursorTrail/index.js +5 -4
  256. package/dist/core/shaders/DataMosh/index.js +5 -4
  257. package/dist/core/shaders/DiamondGradient/index.js +5 -4
  258. package/dist/core/shaders/DiamondWipe/index.js +5 -4
  259. package/dist/core/shaders/DiffuseBlur/index.js +5 -4
  260. package/dist/core/shaders/DisplacementMap/index.js +5 -4
  261. package/dist/core/shaders/Dither/index.js +5 -4
  262. package/dist/core/shaders/DotGrid/index.js +5 -4
  263. package/dist/core/shaders/DropShadow/index.js +5 -4
  264. package/dist/core/shaders/Duotone/index.js +5 -4
  265. package/dist/core/shaders/Ellipse/index.js +5 -4
  266. package/dist/core/shaders/Emboss/index.js +7 -6
  267. package/dist/core/shaders/Engraving/index.js +5 -4
  268. package/dist/core/shaders/ErosionNoise/index.js +6 -5
  269. package/dist/core/shaders/Exposure/index.js +5 -4
  270. package/dist/core/shaders/FallingLines/index.js +5 -4
  271. package/dist/core/shaders/FilmGrain/index.js +5 -4
  272. package/dist/core/shaders/FilmStock/index.js +5 -4
  273. package/dist/core/shaders/Flip/index.js +5 -4
  274. package/dist/core/shaders/FloatingParticles/index.js +5 -4
  275. package/dist/core/shaders/FlowField/index.js +5 -4
  276. package/dist/core/shaders/Flower/index.js +5 -4
  277. package/dist/core/shaders/FlowingGradient/index.js +5 -4
  278. package/dist/core/shaders/FlutedGlass/index.js +5 -4
  279. package/dist/core/shaders/Fog/index.js +5 -4
  280. package/dist/core/shaders/Form3D/index.js +5 -4
  281. package/dist/core/shaders/FractalNoise/index.js +5 -4
  282. package/dist/core/shaders/Frost/index.js +7 -6
  283. package/dist/core/shaders/GaborNoise/index.js +6 -5
  284. package/dist/core/shaders/Glass/index.js +7 -6
  285. package/dist/core/shaders/GlassTiles/index.js +5 -4
  286. package/dist/core/shaders/Glitch/index.js +5 -4
  287. package/dist/core/shaders/Glow/index.js +5 -4
  288. package/dist/core/shaders/Godrays/index.js +5 -4
  289. package/dist/core/shaders/Goo/index.js +7 -6
  290. package/dist/core/shaders/GradientMap/index.js +5 -4
  291. package/dist/core/shaders/Grayscale/index.js +5 -4
  292. package/dist/core/shaders/Grid/index.js +5 -4
  293. package/dist/core/shaders/GridDistortion/index.js +5 -4
  294. package/dist/core/shaders/Group/index.js +5 -4
  295. package/dist/core/shaders/HTMLInCanvas/index.js +5 -4
  296. package/dist/core/shaders/Halftone/index.js +5 -4
  297. package/dist/core/shaders/Heart/index.js +5 -4
  298. package/dist/core/shaders/Heatmap/index.js +7 -6
  299. package/dist/core/shaders/HexGrid/index.js +5 -4
  300. package/dist/core/shaders/Hologram/index.js +7 -6
  301. package/dist/core/shaders/Holographic/index.js +7 -6
  302. package/dist/core/shaders/HueShift/index.js +5 -4
  303. package/dist/core/shaders/ImageTexture/index.js +5 -4
  304. package/dist/core/shaders/InkFlow/index.js +5 -4
  305. package/dist/core/shaders/Invert/index.js +5 -4
  306. package/dist/core/shaders/IrisWipe/index.js +5 -4
  307. package/dist/core/shaders/IsometricCubes/index.js +5 -4
  308. package/dist/core/shaders/Kaleidoscope/index.js +5 -4
  309. package/dist/core/shaders/KeyFrames/index.js +5 -4
  310. package/dist/core/shaders/LensFlare/index.js +5 -4
  311. package/dist/core/shaders/LightEdge/index.js +7 -6
  312. package/dist/core/shaders/LightLeak/index.js +5 -4
  313. package/dist/core/shaders/LinearBlur/index.js +5 -4
  314. package/dist/core/shaders/LinearGradient/index.js +5 -4
  315. package/dist/core/shaders/LinearWipe/index.js +5 -4
  316. package/dist/core/shaders/LiquidMetal/index.js +7 -6
  317. package/dist/core/shaders/Liquify/index.js +5 -4
  318. package/dist/core/shaders/MagneticFilings/index.js +5 -4
  319. package/dist/core/shaders/Marble/index.js +5 -4
  320. package/dist/core/shaders/Mirror/index.js +5 -4
  321. package/dist/core/shaders/MultiPointGradient/index.js +5 -4
  322. package/dist/core/shaders/Neon/index.js +6 -5
  323. package/dist/core/shaders/NoiseDissolve/index.js +5 -4
  324. package/dist/core/shaders/ObjectTracker/index.js +6 -5
  325. package/dist/core/shaders/PagePeel/index.js +5 -4
  326. package/dist/core/shaders/Paper/index.js +5 -4
  327. package/dist/core/shaders/Parallelogram/index.js +5 -4
  328. package/dist/core/shaders/ParticleField/index.js +5 -4
  329. package/dist/core/shaders/ParticleFlow/index.js +5 -4
  330. package/dist/core/shaders/Particles/index.js +6 -5
  331. package/dist/core/shaders/PerlinNoise/index.js +6 -5
  332. package/dist/core/shaders/Perspective/index.js +5 -4
  333. package/dist/core/shaders/PixelSort/index.js +5 -4
  334. package/dist/core/shaders/PixelThrow/index.js +5 -4
  335. package/dist/core/shaders/Pixelate/index.js +5 -4
  336. package/dist/core/shaders/Plasma/index.js +5 -4
  337. package/dist/core/shaders/Plastic/index.js +7 -6
  338. package/dist/core/shaders/PolarCoordinates/index.js +5 -4
  339. package/dist/core/shaders/Polygon/index.js +5 -4
  340. package/dist/core/shaders/Posterize/index.js +5 -4
  341. package/dist/core/shaders/Prism/index.js +5 -4
  342. package/dist/core/shaders/ProgressiveBlur/index.js +5 -4
  343. package/dist/core/shaders/RadialGradient/index.js +5 -4
  344. package/dist/core/shaders/RadialWipe/index.js +5 -4
  345. package/dist/core/shaders/RandomBars/index.js +5 -4
  346. package/dist/core/shaders/ReactionDiffusion/index.js +5 -4
  347. package/dist/core/shaders/RectangularCoordinates/index.js +5 -4
  348. package/dist/core/shaders/ReflectivePlane/index.js +5 -4
  349. package/dist/core/shaders/Repeater/index.js +5 -4
  350. package/dist/core/shaders/Ring/index.js +5 -4
  351. package/dist/core/shaders/RippleWipe/index.js +5 -4
  352. package/dist/core/shaders/Ripples/index.js +5 -4
  353. package/dist/core/shaders/RoundedRect/index.js +5 -4
  354. package/dist/core/shaders/Saturation/index.js +5 -4
  355. package/dist/core/shaders/Scratches/index.js +6 -5
  356. package/dist/core/shaders/Sharpness/index.js +5 -4
  357. package/dist/core/shaders/Shatter/index.js +5 -4
  358. package/dist/core/shaders/SimplexNoise/index.js +5 -4
  359. package/dist/core/shaders/SineWave/index.js +5 -4
  360. package/dist/core/shaders/SliceWipe/index.js +5 -4
  361. package/dist/core/shaders/Smoke/index.js +5 -4
  362. package/dist/core/shaders/SmokeFill/index.js +7 -6
  363. package/dist/core/shaders/SmokeFlow/index.js +5 -4
  364. package/dist/core/shaders/Solarize/index.js +5 -4
  365. package/dist/core/shaders/SolidColor/index.js +2 -2
  366. package/dist/core/shaders/Spherize/index.js +5 -4
  367. package/dist/core/shaders/Spiral/index.js +5 -4
  368. package/dist/core/shaders/Star/index.js +5 -4
  369. package/dist/core/shaders/Stone/index.js +4 -3
  370. package/dist/core/shaders/Strands/index.js +5 -4
  371. package/dist/core/shaders/Stretch/index.js +5 -4
  372. package/dist/core/shaders/Stripes/index.js +5 -4
  373. package/dist/core/shaders/StudioBackground/index.js +5 -4
  374. package/dist/core/shaders/SunBurst/index.js +5 -4
  375. package/dist/core/shaders/Surface3D/index.js +5 -4
  376. package/dist/core/shaders/Swirl/index.js +5 -4
  377. package/dist/core/shaders/Teardrop/index.js +5 -4
  378. package/dist/core/shaders/Text/index.js +6 -5
  379. package/dist/core/shaders/ThinFilm/index.js +6 -5
  380. package/dist/core/shaders/TiltShift/index.js +5 -4
  381. package/dist/core/shaders/TimeTrail/index.js +5 -4
  382. package/dist/core/shaders/Tint/index.js +5 -4
  383. package/dist/core/shaders/Trapezoid/index.js +5 -4
  384. package/dist/core/shaders/TriangularGrid/index.js +5 -4
  385. package/dist/core/shaders/Tritone/index.js +5 -4
  386. package/dist/core/shaders/Truchet/index.js +5 -4
  387. package/dist/core/shaders/Twirl/index.js +5 -4
  388. package/dist/core/shaders/VHS/index.js +5 -4
  389. package/dist/core/shaders/VenetianBlinds/index.js +5 -4
  390. package/dist/core/shaders/Vesica/index.js +5 -4
  391. package/dist/core/shaders/Vibrance/index.js +5 -4
  392. package/dist/core/shaders/VideoTexture/index.js +5 -4
  393. package/dist/core/shaders/Vignette/index.js +5 -4
  394. package/dist/core/shaders/Voronoi/index.js +5 -4
  395. package/dist/core/shaders/Water/index.js +7 -6
  396. package/dist/core/shaders/Watercolor/index.js +5 -4
  397. package/dist/core/shaders/WaveDistortion/index.js +5 -4
  398. package/dist/core/shaders/WaveletNoise/index.js +6 -5
  399. package/dist/core/shaders/Weave/index.js +5 -4
  400. package/dist/core/shaders/WebcamTexture/index.js +5 -4
  401. package/dist/core/shaders/Wool/index.js +4 -3
  402. package/dist/core/shaders/WorleyNoise/index.js +5 -4
  403. package/dist/core/shaders/ZoomBlur/index.js +5 -4
  404. package/dist/core/{shapeEffectBounds-DRyn6AvG.js → shapeEffectBounds-DIjA_-15.js} +1 -1
  405. package/dist/core/support-6QRFK3xB.js +74 -0
  406. package/dist/core/telemetry/collector.d.ts.map +1 -1
  407. package/dist/core/telemetry/index.js +6 -5
  408. package/dist/core/utilities/transformations/index.js +1 -1
  409. package/dist/js/bundle.js +84 -84
  410. package/dist/js/createShader.d.ts.map +1 -1
  411. package/dist/js/createShader.js +43 -13
  412. package/dist/js/createSharedDevice.d.ts +11 -9
  413. package/dist/js/createSharedDevice.d.ts.map +1 -1
  414. package/dist/js/createSharedDevice.js +2 -1
  415. package/dist/js/index.d.ts +2 -0
  416. package/dist/js/index.d.ts.map +1 -1
  417. package/dist/js/index.js +2 -1
  418. package/dist/js/types.d.ts +40 -10
  419. package/dist/js/types.d.ts.map +1 -1
  420. package/dist/react/Shader.js +27 -11
  421. package/dist/react/bundle.js +79 -79
  422. package/dist/react/engine/Shader.d.ts +7 -0
  423. package/dist/react/engine/Shader.d.ts.map +1 -1
  424. package/dist/react/index.d.ts +2 -0
  425. package/dist/react/index.d.ts.map +1 -1
  426. package/dist/react/index.js +2 -1
  427. package/dist/solid/engine/Preview.js +1 -0
  428. package/dist/solid/engine/Shader.d.ts +7 -0
  429. package/dist/solid/engine/Shader.d.ts.map +1 -1
  430. package/dist/solid/engine/Shader.js +29 -10
  431. package/dist/solid/index.d.ts +2 -0
  432. package/dist/solid/index.d.ts.map +1 -1
  433. package/dist/solid/index.js +6 -1
  434. package/dist/svelte/engine/Shader.svelte.d.ts +7 -0
  435. package/dist/svelte/index.d.ts +2 -0
  436. package/dist/svelte/index.js +27 -11
  437. package/dist/svelte/source/engine/Shader.svelte +49 -13
  438. package/dist/svelte/source/index.js +2 -0
  439. package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +41 -24
  440. package/dist/vue/engine/Shader.vue.d.ts +9 -1
  441. package/dist/vue/engine/Shader.vue.d.ts.map +1 -1
  442. package/dist/vue/index.d.ts +2 -0
  443. package/dist/vue/index.d.ts.map +1 -1
  444. package/dist/vue/index.js +2 -1
  445. package/package.json +1 -13
  446. package/dist/core/shaderRegistry-BrbiIqjD.js +0 -425
  447. package/dist/pixi/createShaderSprite.d.ts +0 -54
  448. package/dist/pixi/createShaderSprite.d.ts.map +0 -1
  449. package/dist/pixi/index.d.ts +0 -20
  450. package/dist/pixi/index.d.ts.map +0 -1
  451. package/dist/pixi/index.js +0 -153
  452. /package/dist/core/{fonts-BLmvxkGd.js → fonts-BtGjHq1w.js} +0 -0
  453. /package/dist/core/{noiseStylize-4za6Obes.js → noiseStylize-BsZQT7ig.js} +0 -0
  454. /package/dist/core/{transformations-P50Uo_Ju.js → transformations-t0d2-uSX.js} +0 -0
@@ -1,264 +1,280 @@
1
- import { Dt as packConvertedStops, Ht as composeNodeTree, Lt as SHARED_SAMPLER_LAYOUT, Ot as packStops, S as maxPixelRatioForDevice, Vt as collectStructuralHashInputs, Xt as needsTransformation, Y as createComputeDispatcher, Yt as boundingBoxToUVParams, Zt as screenUVToBoxLocal$1, kt as getAnimatedTimeState, t as SystemUniforms, vn as FieldHandle, xn as updateFieldValue, yn as createUniformStore } from "./coords-0A7CojvN.js";
2
- import "./glass-BjUqcmHP.js";
3
- import "./Neon-RDh1tAjH.js";
4
- import "./Emboss-C8ElxLo3.js";
5
- import "./Form3D-BZ_vaLWe.js";
6
- import "./ThinFilm-CEYaV4nn.js";
7
- import { o as transformColorSpace } from "./transformations-P50Uo_Ju.js";
8
- import { _ as sortStops, a as buildDimensionalPlan, c as isDimensionalValue, d as colorToRGBA, f as setColorSpaceModeGpu, g as resolveStops, h as colorStopsTransform, i as boxHalfExtentsUV, l as resolveDimensionalProp, n as rootPassthrough, o as buildExtraSizeProps, p as MAX_COLOR_STOPS, r as createGpuUniformsMap, s as isDimensionalProp, u as setShaderCanvasDimensions } from "./porters-B1jqpcE3.js";
9
- import "./AngularBlur-CJsRS1Ri.js";
10
- import "./Arc-CNesL3S9.js";
11
- import "./Ascii-z7til0PQ.js";
12
- import "./Aurora-BAuYUYGc.js";
13
- import "./BarnDoors-DrOAeSqj.js";
14
- import "./BarShift-qVwbTMcq.js";
15
- import "./Beam-BW6yblZw.js";
16
- import "./Bend-B7PMQ3T5.js";
17
- import "./Blob-CRJ5N0hK.js";
18
- import "./BlockDissolve-D-6Wy66g.js";
19
- import "./noiseColor-w3B94vmT.js";
20
- import "./BlockNoise-Ct9Fae_7.js";
21
- import "./BlueNoise-Cu7rJuP0.js";
22
- import "./Blur-BrdVVSPq.js";
23
- import "./Boids-DIzUaLGM.js";
24
- import "./BokehBlur-yYb03spN.js";
25
- import "./BrickPattern-BL_MOS_A.js";
26
- import "./BrightnessContrast-CiKimIcA.js";
27
- import { a as SVG3D_TYPES, c as isVolumetricShapeType, i as SVG3D_DEFAULTS, l as shape3dBoundingRadius, n as SHAPE3D_DEFAULTS, o as is3dShapeType, r as SHAPE3D_TYPES, s as isSvg3dShapeType } from "./shapeEffectBounds-DRyn6AvG.js";
28
- import "./BrushedMetal-dvYjizvg.js";
29
- import "./Bulge-CogpoPKe.js";
30
- import "./CarbonFiber-CTy3P-Qk.js";
31
- import "./Chalkboard-CnHUOHtc.js";
32
- import "./ChannelBlur-MwnpNLSZ.js";
33
- import "./Checkerboard-C97ZiLyQ.js";
34
- import "./CheckerWipe-CCNc70ye.js";
35
- import "./Chevron-ABT6D1wM.js";
36
- import "./ChromaFlow-7tJQEFm9.js";
37
- import "./ChromaticAberration-D7-fxyEd.js";
38
- import "./Circle-I0DIAypS.js";
39
- import "./ColorWheel-CEqzzrN-.js";
40
- import "./CompressionArtifacts-C24nRoC3.js";
41
- import "./ConcentricSpin-CAu-PGNH.js";
42
- import "./ConicGradient-n12K5TLj.js";
43
- import "./ContourLines-FOStIWDr.js";
44
- import "./CornerPin-DsUVMFcX.js";
45
- import "./Crescent-9i_5WPA-.js";
46
- import "./Cross-HiA69xGL.js";
47
- import "./CRTScreen-X64EnHMB.js";
48
- import "./Crystal-BBjEm9m4.js";
49
- import "./CurlNoise-1jifziI0.js";
50
- import "./CursorRipples-D4agAYHK.js";
51
- import "./CursorTrail-C-FrY0e2.js";
52
- import "./DataMosh-DXcM1I4Y.js";
53
- import "./DiamondGradient-CQ5jeKEc.js";
54
- import "./DiamondWipe-B1EXgweH.js";
55
- import "./DiffuseBlur-CmD97dHb.js";
56
- import "./DisplacementMap-JV_CNJfU.js";
57
- import "./Dither-NJDWpGb3.js";
58
- import "./DotGrid-B2w7RFcv.js";
59
- import "./DropShadow-CLWp-bon.js";
60
- import "./Duotone-Be2jx-jZ.js";
61
- import "./Ellipse-BR6qXidK.js";
62
- import "./Engraving-D67DM--1.js";
63
- import "./ErosionNoise-FeEMQOkR.js";
64
- import "./Exposure-CZ1gfqpf.js";
65
- import "./FallingLines-ifuQ01oA.js";
66
- import "./FilmGrain-p5sawa_f.js";
67
- import "./FilmStock-BD5wv1TV.js";
68
- import "./Flip-MKiLH9jJ.js";
69
- import "./FloatingParticles-Bn8CmtwG.js";
70
- import "./Flower-BwDBwcSk.js";
71
- import "./FlowField-BdFeRmif.js";
72
- import "./FlowingGradient-RYOS36eB.js";
73
- import "./FlutedGlass-Ong8W4Ih.js";
74
- import "./Fog-C-X8msRb.js";
75
- import "./FractalNoise-BPj8RPkE.js";
76
- import "./Frost-DmxlFu63.js";
77
- import "./GaborNoise-Boc8ieHd.js";
78
- import "./Glass-D5p21MIw.js";
79
- import "./GlassTiles-BP4CzdI3.js";
80
- import "./Glitch-cJguD7jS.js";
81
- import "./Glow-BabfcnwS.js";
82
- import "./Godrays-BpiKSlNR.js";
83
- import "./Goo-BaQEtOyr.js";
84
- import "./GradientMap-BtKtW-4M.js";
85
- import "./Grayscale-Bgwugyvv.js";
86
- import "./Grid-5cEDkyWX.js";
87
- import "./GridDistortion-Byf4G720.js";
88
- import "./Group-DUEQSUir.js";
89
- import "./Halftone-BiSLVvGF.js";
90
- import "./Heart-RAGeVEVH.js";
91
- import "./Heatmap-Ds65scO7.js";
92
- import "./HexGrid-H1N5Y1XD.js";
93
- import "./Hologram-DpDfyeSz.js";
94
- import "./Holographic-Ckubuqn8.js";
95
- import "./HTMLInCanvas-uW1O3Z-R.js";
96
- import "./HueShift-C_a5UVHy.js";
97
- import "./ImageTexture-CM-dPJQ4.js";
98
- import "./InkFlow-CY7sCKpI.js";
99
- import "./Invert-DhHrtwHQ.js";
100
- import "./IrisWipe-BnOMUdEV.js";
101
- import "./IsometricCubes-CXPz62PB.js";
102
- import "./Kaleidoscope-CSgi0E5B.js";
103
- import "./KeyFrames-C3I4poq8.js";
104
- import "./LensFlare-DxvbKXgt.js";
105
- import "./LightEdge-niXz_FAk.js";
106
- import "./LightLeak-B7Pt1tt4.js";
107
- import "./LinearBlur-CXNcduWQ.js";
108
- import "./LinearGradient-CYiaWIXd.js";
109
- import "./LinearWipe-gwLhEveK.js";
110
- import "./LiquidMetal-D0sgLjcd.js";
111
- import "./Liquify-h08a8S-C.js";
112
- import "./MagneticFilings-BlNWPVwS.js";
113
- import "./Marble-bps2lOWc.js";
114
- import "./Mirror-8miSUAyZ.js";
115
- import "./MultiPointGradient-C-9_Q6CM.js";
116
- import "./NoiseDissolve-DjlWGdUc.js";
117
- import "./fonts-BLmvxkGd.js";
118
- import "./ObjectTracker-DW4aEBRv.js";
119
- import "./PagePeel-JsbScYi4.js";
120
- import "./Paper-BGTU0GOF.js";
121
- import "./Parallelogram-RC3MxzlN.js";
122
- import "./ParticleField-XypD7Eru.js";
123
- import "./ParticleFlow-DBw7m9C6.js";
124
- import "./Particles-CvpZvfe3.js";
125
- import "./PerlinNoise-CHVaarmz.js";
126
- import "./Perspective-zyCZAb3_.js";
127
- import "./Pixelate-D1e7buDQ.js";
128
- import "./PixelSort-B-zefB9S.js";
129
- import "./PixelThrow-BZ6erf3G.js";
130
- import "./Plasma-CBrx8Xu-.js";
131
- import "./Plastic-CcS4iAJM.js";
132
- import "./PolarCoordinates-B9SuYLgF.js";
133
- import "./Polygon-N0l1KfIO.js";
134
- import "./Posterize-u2et79Pv.js";
135
- import "./Prism-BnDsPBcD.js";
136
- import "./ProgressiveBlur-D9FiTJQy.js";
137
- import "./RadialGradient-C4oB78ya.js";
138
- import "./RadialWipe-Dzb7i6wy.js";
139
- import "./RandomBars-DO9j43mN.js";
140
- import "./ReactionDiffusion-DG1NSPhM.js";
141
- import "./RectangularCoordinates-Ck1gXdGx.js";
142
- import "./ReflectivePlane-DFQDgLYC.js";
143
- import "./Repeater-CT35_BhW.js";
144
- import "./Ring-DywDgKDv.js";
145
- import "./Ripples-fTSMeqiE.js";
146
- import "./RippleWipe-ePWlg-DT.js";
147
- import "./RoundedRect-B0lxuFfM.js";
148
- import "./Saturation-ClaD54dk.js";
149
- import "./Scratches-D8ZIBZ50.js";
150
- import "./Sharpness-CsnT4s1o.js";
151
- import "./Shatter-D_V7GBel.js";
152
- import "./SimplexNoise-tI2G3Wzn.js";
153
- import "./SineWave-BGsYyEFg.js";
154
- import "./SliceWipe-s4pWdINK.js";
155
- import "./Smoke-C3SLe_rD.js";
156
- import "./SmokeFill-BuKZtbX8.js";
157
- import "./SmokeFlow-5fnVH2a9.js";
158
- import "./Solarize-TP85IPV7.js";
159
- import "./SolidColor-16e4q89i.js";
160
- import "./Spherize-C4qsnql6.js";
161
- import "./Spiral-rPHDFACm.js";
162
- import "./Star-BDFhZWLo.js";
163
- import "./noiseStylize-4za6Obes.js";
164
- import "./Stone-CCXo9IgA.js";
165
- import "./Strands-DCzYUsCX.js";
166
- import "./Stretch-CjhYXAth.js";
167
- import "./Stripes-CN2TFWGw.js";
168
- import "./StudioBackground-I_XxtKjr.js";
169
- import "./SunBurst-CGQkdsXl.js";
170
- import "./Surface3D-CpCPTs0u.js";
171
- import "./Swirl-BCnlG3G8.js";
172
- import "./Teardrop-DX-YZkNC.js";
173
- import "./Text-oI5d7_UD.js";
174
- import "./TiltShift-C8GluqAm.js";
175
- import "./TimeTrail-CPiSo5Of.js";
176
- import "./Tint-NA7BO-Qk.js";
177
- import "./Trapezoid-BOGSQvW5.js";
178
- import "./TriangularGrid-Zx3I4CqA.js";
179
- import "./Tritone-Bl69W4Y4.js";
180
- import "./Truchet-RJI0-v6x.js";
181
- import "./Twirl-CrIawDs2.js";
182
- import "./VenetianBlinds-CGfPlhGd.js";
183
- import "./Vesica-DekjxkHL.js";
184
- import "./VHS-B12KbScc.js";
185
- import "./Vibrance-DKKduAD8.js";
186
- import "./VideoTexture-1xg_a680.js";
187
- import "./Vignette-CDRCMNb2.js";
188
- import "./Voronoi-EWj3WFqv.js";
189
- import "./Water-BdGrOEuE.js";
190
- import "./Watercolor-BGIcnGZu.js";
191
- import "./WaveDistortion-BNlrOaur.js";
192
- import "./WaveletNoise-Jv-694xX.js";
193
- import "./Weave-HNS6xvOs.js";
194
- import "./WebcamTexture-DVKxGpWI.js";
195
- import "./Wool-D7uM0JRs.js";
196
- import "./WorleyNoise-DsDWmRCp.js";
197
- import "./ZoomBlur-S2GfQojf.js";
198
- import { t as getAllShaders } from "./shaderRegistry-BrbiIqjD.js";
1
+ import { Dt as packConvertedStops, Ht as composeNodeTree, Lt as SHARED_SAMPLER_LAYOUT, Ot as packStops, S as maxPixelRatioForDevice, Vt as collectStructuralHashInputs, Xt as needsTransformation, Y as createComputeDispatcher, Yt as boundingBoxToUVParams, Zt as screenUVToBoxLocal$1, kt as getAnimatedTimeState, t as SystemUniforms, vn as FieldHandle, xn as updateFieldValue, yn as createUniformStore } from "./coords-CLqRuQwC.js";
2
+ import { a as getWebGPUSupport, c as isWebGPUSupported, i as getGpuUnusableReason, l as markGpuUnusable, n as debugError, o as isGpuUnavailableError, r as debugWarn, s as isShadersDebug, t as GpuUnavailableError, u as setShadersDebug } from "./support-6QRFK3xB.js";
3
+ import "./glass-BLc74dQi.js";
4
+ import "./Neon-DAPbLlBN.js";
5
+ import "./Emboss-BNhsz2v0.js";
6
+ import "./Form3D-BqMINp_g.js";
7
+ import "./ThinFilm-Cfx6eANY.js";
8
+ import { o as transformColorSpace } from "./transformations-t0d2-uSX.js";
9
+ import { _ as sortStops, a as buildDimensionalPlan, c as isDimensionalValue, d as colorToRGBA, f as setColorSpaceModeGpu, g as resolveStops, h as colorStopsTransform, i as boxHalfExtentsUV, l as resolveDimensionalProp, n as rootPassthrough, o as buildExtraSizeProps, p as MAX_COLOR_STOPS, r as createGpuUniformsMap, s as isDimensionalProp, u as setShaderCanvasDimensions } from "./porters-u50QU6Yv.js";
10
+ import "./AngularBlur-D-tt4pvi.js";
11
+ import "./Arc-DrBTn2ft.js";
12
+ import "./Ascii-cHzx_Cgc.js";
13
+ import "./Aurora-15z76vsc.js";
14
+ import "./BarnDoors-CBzse00V.js";
15
+ import "./BarShift-s7HgQwz5.js";
16
+ import "./Beam-DZgWUuTC.js";
17
+ import "./Bend-CHTYK8SA.js";
18
+ import "./Blob-A8bKkEG1.js";
19
+ import "./BlockDissolve-Bb4aDV5s.js";
20
+ import "./noiseColor-CFYtKwDd.js";
21
+ import "./BlockNoise-BnnsS95j.js";
22
+ import "./BlueNoise-DTOarEL0.js";
23
+ import "./Blur-DEwHcGOu.js";
24
+ import "./Boids-BWJXVflR.js";
25
+ import "./BokehBlur-pQJN6FFd.js";
26
+ import "./BrickPattern-Kwmx3pdx.js";
27
+ import "./BrightnessContrast-CAkwN3s1.js";
28
+ import { a as SVG3D_TYPES, c as isVolumetricShapeType, i as SVG3D_DEFAULTS, l as shape3dBoundingRadius, n as SHAPE3D_DEFAULTS, o as is3dShapeType, r as SHAPE3D_TYPES, s as isSvg3dShapeType } from "./shapeEffectBounds-DIjA_-15.js";
29
+ import "./BrushedMetal-B4qfaTCf.js";
30
+ import "./Bulge-CLBhicOs.js";
31
+ import "./CarbonFiber-zA6_ZDg8.js";
32
+ import "./Chalkboard-DwkX3ZL3.js";
33
+ import "./ChannelBlur-KHDU8WCn.js";
34
+ import "./Checkerboard-CvP8BKcu.js";
35
+ import "./CheckerWipe-CNlqWp0y.js";
36
+ import "./Chevron-BFmKhIws.js";
37
+ import "./ChromaFlow-C8I4PtcP.js";
38
+ import "./ChromaticAberration-CGPfHEFI.js";
39
+ import "./Circle-ChmepdP_.js";
40
+ import "./ColorWheel-D5V4ozig.js";
41
+ import "./CompressionArtifacts--GdHELg8.js";
42
+ import "./ConcentricSpin-DIWQ80K5.js";
43
+ import "./ConicGradient-DjMQDAT6.js";
44
+ import "./ContourLines-Pq1zDmlf.js";
45
+ import "./CornerPin-C-x2z8H5.js";
46
+ import "./Crescent-C6COUHa5.js";
47
+ import "./Cross-Cgw13Sga.js";
48
+ import "./CRTScreen-Cj2H2mXK.js";
49
+ import "./Crystal-RnN4Y5Tf.js";
50
+ import "./CurlNoise-jaIscgOF.js";
51
+ import "./CursorRipples-Gv0B1S-h.js";
52
+ import "./CursorTrail-BMHsUYwx.js";
53
+ import "./DataMosh-CaqYFxYA.js";
54
+ import "./DiamondGradient-D388xLbc.js";
55
+ import "./DiamondWipe-BRXj3gon.js";
56
+ import "./DiffuseBlur-CM5Qy5JM.js";
57
+ import "./DisplacementMap-Cr1fauBv.js";
58
+ import "./Dither-CubXhMES.js";
59
+ import "./DotGrid-D6We1dqv.js";
60
+ import "./DropShadow-C8v9KJgy.js";
61
+ import "./Duotone-BfVi04d4.js";
62
+ import "./Ellipse-fTV0CAVg.js";
63
+ import "./Engraving-DYTr1YbV.js";
64
+ import "./ErosionNoise-CxsXwPPE.js";
65
+ import "./Exposure-DISAOzQ5.js";
66
+ import "./FallingLines-DBGk9U7l.js";
67
+ import "./FilmGrain-Ban-r5as.js";
68
+ import "./FilmStock-BlOwC5zb.js";
69
+ import "./Flip-CAt9CFWn.js";
70
+ import "./FloatingParticles-Cppgg6I0.js";
71
+ import "./Flower-iLK4UwZa.js";
72
+ import "./FlowField-b0PcB7MV.js";
73
+ import "./FlowingGradient-CZc_z9cL.js";
74
+ import "./FlutedGlass-DMl2A42x.js";
75
+ import "./Fog-BBc52yrL.js";
76
+ import "./FractalNoise-BjGa9I7_.js";
77
+ import "./Frost-ttMO1uGc.js";
78
+ import "./GaborNoise-CSC24alr.js";
79
+ import "./Glass-DHkb-2UB.js";
80
+ import "./GlassTiles-CTSmg7gD.js";
81
+ import "./Glitch-O5FZxlBV.js";
82
+ import "./Glow-Cj9SzOqq.js";
83
+ import "./Godrays-XW1fNiSU.js";
84
+ import "./Goo-Bc43zAec.js";
85
+ import "./GradientMap-BxSv1OOf.js";
86
+ import "./Grayscale-CNM0GlQN.js";
87
+ import "./Grid-reIQAyFU.js";
88
+ import "./GridDistortion-tJym6OIr.js";
89
+ import "./Group-8iAuPA0-.js";
90
+ import "./Halftone-Dlk16PsH.js";
91
+ import "./Heart-C3Uas8c_.js";
92
+ import "./Heatmap-CE7IB_4g.js";
93
+ import "./HexGrid-BiXYpVNp.js";
94
+ import "./Hologram-BjKBncw8.js";
95
+ import "./Holographic-CCTmTYXb.js";
96
+ import "./HTMLInCanvas-CAHfLRAz.js";
97
+ import "./HueShift-CE5RgaBc.js";
98
+ import "./ImageTexture-BrjlwuWY.js";
99
+ import "./InkFlow-DS92HgM9.js";
100
+ import "./Invert-e1Z9IfPo.js";
101
+ import "./IrisWipe-CCK_EamC.js";
102
+ import "./IsometricCubes-BA-cN4bC.js";
103
+ import "./Kaleidoscope-Cin7yxd7.js";
104
+ import "./KeyFrames-D4-678xR.js";
105
+ import "./LensFlare-UNNiSfiz.js";
106
+ import "./LightEdge-GUFdnqjh.js";
107
+ import "./LightLeak-DWv0ec7B.js";
108
+ import "./LinearBlur-DBKjOKVV.js";
109
+ import "./LinearGradient--Vy79Fs_.js";
110
+ import "./LinearWipe-PZcYib77.js";
111
+ import "./LiquidMetal-cUxfJdju.js";
112
+ import "./Liquify-B1o-_MJZ.js";
113
+ import "./MagneticFilings-B1Qvnw6t.js";
114
+ import "./Marble-CD5fqEce.js";
115
+ import "./Mirror-QJoYnzu6.js";
116
+ import "./MultiPointGradient-CLRPS8u7.js";
117
+ import "./NoiseDissolve-jdMIvdYS.js";
118
+ import "./fonts-BtGjHq1w.js";
119
+ import "./ObjectTracker-BD_l_g6R.js";
120
+ import "./PagePeel-YyWAE0am.js";
121
+ import "./Paper-DOFhG3gq.js";
122
+ import "./Parallelogram-CKlvs9a_.js";
123
+ import "./ParticleField-R--x794f.js";
124
+ import "./ParticleFlow-DY8g2n2d.js";
125
+ import "./Particles-D6-MCj-7.js";
126
+ import "./PerlinNoise-DKBJst5k.js";
127
+ import "./Perspective-DH5aV7fh.js";
128
+ import "./Pixelate-DgPtCErp.js";
129
+ import "./PixelSort-DRd4GE4_.js";
130
+ import "./PixelThrow-CRizzpOr.js";
131
+ import "./Plasma-8zXLjhIr.js";
132
+ import "./Plastic-Dv-N6_Nv.js";
133
+ import "./PolarCoordinates-lw0yBeJq.js";
134
+ import "./Polygon-DQxmxfqr.js";
135
+ import "./Posterize-C4qpmou-.js";
136
+ import "./Prism-C0qW3WgL.js";
137
+ import "./ProgressiveBlur-C_xtFzmP.js";
138
+ import "./RadialGradient-DetBcKps.js";
139
+ import "./RadialWipe-Cmv05uxE.js";
140
+ import "./RandomBars-CrPfWF8l.js";
141
+ import "./ReactionDiffusion-Dc_uVKMg.js";
142
+ import "./RectangularCoordinates-C1sbpWlI.js";
143
+ import "./ReflectivePlane-DyTDDfvN.js";
144
+ import "./Repeater-CzvIt5Gw.js";
145
+ import "./Ring-6gd4orX0.js";
146
+ import "./Ripples-D7Y__Ls8.js";
147
+ import "./RippleWipe-BU-dDvBK.js";
148
+ import "./RoundedRect-DMzr6z4F.js";
149
+ import "./Saturation-BZ5ZmmKo.js";
150
+ import "./Scratches-wRRWI1-5.js";
151
+ import "./Sharpness-BQu_GeV6.js";
152
+ import "./Shatter-HTHPxq07.js";
153
+ import "./SimplexNoise-arMv2IxX.js";
154
+ import "./SineWave-crFYxXPS.js";
155
+ import "./SliceWipe-D-Rnm4ce.js";
156
+ import "./Smoke-Cyjm_hFb.js";
157
+ import "./SmokeFill-CMBAFeM8.js";
158
+ import "./SmokeFlow-DfytXLC4.js";
159
+ import "./Solarize-BNuZoWV5.js";
160
+ import "./SolidColor-DB8l6xRl.js";
161
+ import "./Spherize-LIfupaEj.js";
162
+ import "./Spiral-B-Kz6zOG.js";
163
+ import "./Star-Bxi6VOuZ.js";
164
+ import "./noiseStylize-BsZQT7ig.js";
165
+ import "./Stone-CrdhdOWf.js";
166
+ import "./Strands-CgOVvjKk.js";
167
+ import "./Stretch-CWpqkWdT.js";
168
+ import "./Stripes-DnmkVdJi.js";
169
+ import "./StudioBackground-BR7HA0ot.js";
170
+ import "./SunBurst-2tbvTvoR.js";
171
+ import "./Surface3D-BDN9t6UU.js";
172
+ import "./Swirl-BO63keY-.js";
173
+ import "./Teardrop-Cj9wbWNj.js";
174
+ import "./Text-DDpqrXsw.js";
175
+ import "./TiltShift-DtDGS05n.js";
176
+ import "./TimeTrail-CH7CMyxo.js";
177
+ import "./Tint-RTSV6Aiu.js";
178
+ import "./Trapezoid-B8YUl-8U.js";
179
+ import "./TriangularGrid-B_P_Bn6J.js";
180
+ import "./Tritone-zbDA_LBO.js";
181
+ import "./Truchet-QdRvWfkQ.js";
182
+ import "./Twirl-M1ylLxnB.js";
183
+ import "./VenetianBlinds-DyBouRcb.js";
184
+ import "./Vesica-DYkOtRW9.js";
185
+ import "./VHS-BbpH5MH8.js";
186
+ import "./Vibrance-DYCb_3Vb.js";
187
+ import "./VideoTexture-B5QB_7wK.js";
188
+ import "./Vignette-CWNEqMe7.js";
189
+ import "./Voronoi-DJIf5qyN.js";
190
+ import "./Water-D7FpFPfD.js";
191
+ import "./Watercolor-B4bOV2pY.js";
192
+ import "./WaveDistortion-C9K0iLOy.js";
193
+ import "./WaveletNoise-MxVl5SGH.js";
194
+ import "./Weave-DMvmkoDF.js";
195
+ import "./WebcamTexture-ylP8AAV1.js";
196
+ import "./Wool-DKuYNXvU.js";
197
+ import "./WorleyNoise-C-8TphM9.js";
198
+ import "./ZoomBlur-BxPekTQP.js";
199
+ import { t as getAllShaders } from "./shaderRegistry-QNzuz_fH.js";
199
200
  import * as d from "typegpu/data";
200
201
  import tgpu, { common } from "typegpu";
201
202
  var OPTIONAL_FEATURES = ["float32-filterable", "timestamp-query"];
202
203
  var rootsByDevice = /* @__PURE__ */ new WeakMap();
203
204
  var lostCallbacks = /* @__PURE__ */ new WeakMap();
204
205
  var lostDevices = /* @__PURE__ */ new WeakSet();
205
- var replacementRoots = /* @__PURE__ */ new WeakMap();
206
+ var defaultRootPromise = null;
207
+ var destroyedDefaultRoots = /* @__PURE__ */ new WeakSet();
206
208
  async function acquireRoot(options = {}) {
207
- if (options.device) {
209
+ if (options.device && !lostDevices.has(options.device)) {
208
210
  const device = options.device;
209
- if (!lostDevices.has(device)) {
210
- let root = rootsByDevice.get(device);
211
- if (!root) {
212
- root = tgpu.initFromDevice({ device });
213
- rootsByDevice.set(device, root);
214
- }
215
- wireDeviceLost(root, options.onDeviceLost);
216
- return {
217
- root,
218
- device,
219
- adapter: options.adapter,
220
- createdDevice: false
221
- };
222
- }
223
- let replacement;
224
- for (;;) {
225
- const cached = replacementRoots.get(device);
226
- if (!cached) break;
227
- const cachedCtx = await cached.catch(() => null);
228
- if (cachedCtx && !lostDevices.has(cachedCtx.device)) {
229
- replacement = cached;
230
- break;
231
- }
232
- if (replacementRoots.get(device) === cached) replacementRoots.delete(device);
233
- }
234
- if (!replacement) {
235
- console.warn("[gpu] injected GPU device was lost — creating a replacement device for recovery");
236
- replacement = createOwnRoot();
237
- replacementRoots.set(device, replacement);
211
+ let root = rootsByDevice.get(device);
212
+ if (!root) {
213
+ root = tgpu.initFromDevice({ device });
214
+ rootsByDevice.set(device, root);
238
215
  }
239
- const ctx$1 = await replacement;
240
- wireDeviceLost(ctx$1.root, options.onDeviceLost);
216
+ const release$1 = wireDeviceLost(root, options.onDeviceLost);
241
217
  return {
242
- root: ctx$1.root,
243
- device: ctx$1.device,
244
- adapter: ctx$1.adapter,
245
- createdDevice: false
218
+ root,
219
+ device,
220
+ adapter: options.adapter,
221
+ createdDevice: false,
222
+ release: release$1
246
223
  };
247
224
  }
248
- const ctx = await createOwnRoot();
249
- wireDeviceLost(ctx.root, options.onDeviceLost);
225
+ if (options.device) debugWarn("[gpu] injected GPU device was lost — falling back to the shared default device");
226
+ const ctx = await acquireDefaultRoot();
227
+ const release = wireDeviceLost(ctx.root, options.onDeviceLost);
250
228
  return {
251
- ...ctx,
252
- adapter: options.adapter,
253
- createdDevice: true
229
+ root: ctx.root,
230
+ device: ctx.device,
231
+ adapter: ctx.adapter,
232
+ createdDevice: false,
233
+ release
254
234
  };
255
235
  }
236
+ async function acquireDefaultRoot() {
237
+ for (;;) {
238
+ const cached = defaultRootPromise;
239
+ if (!cached) break;
240
+ const ctx = await cached.catch(() => null);
241
+ if (ctx && !destroyedDefaultRoots.has(cached) && !lostDevices.has(ctx.device)) return ctx;
242
+ if (defaultRootPromise === cached) defaultRootPromise = null;
243
+ }
244
+ const pending = createOwnRoot();
245
+ defaultRootPromise = pending;
246
+ try {
247
+ return await pending;
248
+ } catch (error) {
249
+ if (defaultRootPromise === pending) defaultRootPromise = null;
250
+ throw error;
251
+ }
252
+ }
253
+ function destroyDefaultGpuDevice() {
254
+ const pending = defaultRootPromise;
255
+ defaultRootPromise = null;
256
+ if (!pending) return;
257
+ destroyedDefaultRoots.add(pending);
258
+ pending.then((ctx) => {
259
+ lostDevices.add(ctx.device);
260
+ try {
261
+ ctx.root.destroy();
262
+ } catch {}
263
+ }).catch(() => {});
264
+ }
256
265
  async function createOwnRoot() {
257
- if (typeof navigator === "undefined" || !navigator.gpu) throw new Error("[gpu] WebGPU is not available in this environment (navigator.gpu is undefined). This renderer is WebGPU-only.");
258
- const root = await tgpu.init({
259
- adapter: { powerPreference: "high-performance" },
260
- device: { optionalFeatures: OPTIONAL_FEATURES }
261
- });
266
+ if (typeof navigator === "undefined" || !navigator.gpu) throw new GpuUnavailableError("unsupported", "[gpu] WebGPU is not available in this environment (navigator.gpu is undefined).");
267
+ let root;
268
+ try {
269
+ root = await tgpu.init({
270
+ adapter: { powerPreference: "high-performance" },
271
+ device: { optionalFeatures: OPTIONAL_FEATURES }
272
+ });
273
+ } catch (error) {
274
+ const info = await getWebGPUSupport();
275
+ throw new GpuUnavailableError(info.supported ? "no-device" : info.reason ?? "init-failed", void 0, { cause: error });
276
+ }
277
+ if (!root.device) throw new GpuUnavailableError("no-device", "[gpu] adapter returned no device.");
262
278
  rootsByDevice.set(root.device, root);
263
279
  return {
264
280
  root,
@@ -282,10 +298,13 @@ function wireDeviceLost(root, onDeviceLost) {
282
298
  root.device.lost.then((info) => {
283
299
  lostDevices.add(device);
284
300
  if (info.reason === "destroyed") return;
285
- for (const cb of lostCallbacks.get(device) ?? []) cb(info);
301
+ for (const cb of [...lostCallbacks.get(device) ?? []]) cb(info);
286
302
  });
287
303
  }
288
- if (onDeviceLost) callbacks.add(onDeviceLost);
304
+ if (!onDeviceLost) return () => {};
305
+ const set = callbacks;
306
+ set.add(onDeviceLost);
307
+ return () => set.delete(onDeviceLost);
289
308
  }
290
309
  function structuralHash(inputs) {
291
310
  let h = 2166136261;
@@ -387,7 +406,8 @@ function createPassManager(root, options) {
387
406
  const { textureManager, dispatcher } = options;
388
407
  const canvasFormat = options.canvasFormat ?? preferredCanvasFormat();
389
408
  const rttFormat = options.rttFormat ?? "rgba16float";
390
- const maxSampled = options.maxSampledTextures ?? 16;
409
+ const deviceMaxSampled = root.device?.limits?.maxSampledTexturesPerShaderStage;
410
+ const maxSampled = options.maxSampledTextures ?? (typeof deviceMaxSampled === "number" && deviceMaxSampled > 0 ? deviceMaxSampled : 16);
391
411
  const vertex = options.fullScreenTriangle ?? common.fullScreenTriangle;
392
412
  const rttTextures = /* @__PURE__ */ new Map();
393
413
  const liveTextures = /* @__PURE__ */ new Set();
@@ -402,7 +422,7 @@ function createPassManager(root, options) {
402
422
  nearestRepeat: s.nearestRepeat
403
423
  });
404
424
  } catch (e) {
405
- console.error(`[${LABEL}] failed to build sampler bind group:`, e);
425
+ debugError(`[${LABEL}] failed to build sampler bind group:`, e);
406
426
  return;
407
427
  }
408
428
  }
@@ -436,16 +456,16 @@ function createPassManager(root, options) {
436
456
  const media = mediaResources?.[key];
437
457
  const resource = rt ?? media;
438
458
  if (!resource) {
439
- console.error(`[${LABEL}] pass "${fragment.entry}" reads unknown texture "${key}"`);
459
+ debugError(`[${LABEL}] pass "${fragment.entry}" reads unknown texture "${key}"`);
440
460
  return;
441
461
  }
442
462
  entries[key] = resource.texture;
443
463
  }
444
- if (fragment.reads.length > maxSampled) console.warn(`[${LABEL}] pass samples ${fragment.reads.length} textures (> device limit ~${maxSampled}); composition may fail on this device.`);
464
+ if (fragment.reads.length > maxSampled) debugWarn(`[${LABEL}] pass samples ${fragment.reads.length} textures (> device limit ~${maxSampled}); composition may fail on this device.`);
445
465
  try {
446
466
  return root.createBindGroup(fragment.textureLayout, entries);
447
467
  } catch (e) {
448
- console.error(`[${LABEL}] failed to build texture bind group:`, e);
468
+ debugError(`[${LABEL}] failed to build texture bind group:`, e);
449
469
  return;
450
470
  }
451
471
  }
@@ -462,7 +482,7 @@ function createPassManager(root, options) {
462
482
  if (keys.length === 1) {
463
483
  const getSource = externalSources.get(keys[0]);
464
484
  if (!getSource) {
465
- console.error(`[${LABEL}] external read "${keys[0]}" has no registered source`);
485
+ debugError(`[${LABEL}] external read "${keys[0]}" has no registered source`);
466
486
  return;
467
487
  }
468
488
  return textureManager.createExternalTextureBinding({
@@ -552,7 +572,7 @@ function createPassManager(root, options) {
552
572
  const bg = pass.externalBinding?.update() ?? null;
553
573
  if (!bg) {
554
574
  if (!pass.externalSkipLogged) {
555
- console.warn(`[${LABEL}] external texture not ready — skipping pass (${pass.fragment.externalReads.join(", ")})`);
575
+ debugWarn(`[${LABEL}] external texture not ready — skipping pass (${pass.fragment.externalReads.join(", ")})`);
556
576
  pass.externalSkipLogged = true;
557
577
  }
558
578
  return;
@@ -1141,6 +1161,8 @@ var PerformanceTracker = class {
1141
1161
  this.lastGpuTime = null;
1142
1162
  }
1143
1163
  };
1164
+ var MAX_UNCAPTURED_VALIDATION_ERRORS = 32;
1165
+ var MAX_CONSECUTIVE_RENDER_ERRORS = 5;
1144
1166
  var globalEventManager = (() => {
1145
1167
  let instanceCount = 0;
1146
1168
  const callbacks = /* @__PURE__ */ new Set();
@@ -1149,7 +1171,7 @@ var globalEventManager = (() => {
1149
1171
  try {
1150
1172
  cb[key](arg);
1151
1173
  } catch (error) {
1152
- console.error("[Shaders] Error in pointer handler:", error);
1174
+ debugError("[Shaders] Error in pointer handler:", error);
1153
1175
  }
1154
1176
  });
1155
1177
  };
@@ -1261,6 +1283,13 @@ function shaderRendererGPU() {
1261
1283
  let firstRenderPending = false;
1262
1284
  let onDeviceLostCallback = null;
1263
1285
  let deviceLostFired = false;
1286
+ let failureReason = null;
1287
+ let onUnavailableCallback = null;
1288
+ let hasNotifiedUnavailable = false;
1289
+ let uncapturedErrorDevice = null;
1290
+ let uncapturedErrorHandler = null;
1291
+ let uncapturedValidationErrors = 0;
1292
+ let consecutiveRenderErrors = 0;
1264
1293
  const performanceTracker = new PerformanceTracker();
1265
1294
  const frameParams = {
1266
1295
  deltaTime: 0,
@@ -1816,17 +1845,17 @@ function shaderRendererGPU() {
1816
1845
  try {
1817
1846
  for (const cb of bc.ir.onCleanup) cb();
1818
1847
  } catch (e) {
1819
- console.error("[gpu] composition onCleanup error:", e);
1848
+ debugError("[gpu] composition onCleanup error:", e);
1820
1849
  }
1821
1850
  try {
1822
1851
  bc.passManager.dispose();
1823
1852
  } catch (e) {
1824
- console.error("[gpu] passManager dispose error:", e);
1853
+ debugError("[gpu] passManager dispose error:", e);
1825
1854
  }
1826
1855
  try {
1827
1856
  bc.store.destroy();
1828
1857
  } catch (e) {
1829
- console.error("[gpu] store destroy error:", e);
1858
+ debugError("[gpu] store destroy error:", e);
1830
1859
  }
1831
1860
  liveCompositions.delete(bc);
1832
1861
  if (boundComposition === bc) boundComposition = null;
@@ -1858,6 +1887,7 @@ function shaderRendererGPU() {
1858
1887
  requestRender();
1859
1888
  };
1860
1889
  const requestRender = () => {
1890
+ if (failureReason) return;
1861
1891
  if (frameLoop.running) return;
1862
1892
  if (pendingRenderRAF !== null) return;
1863
1893
  if (typeof requestAnimationFrame !== "function") return;
@@ -1867,6 +1897,7 @@ function shaderRendererGPU() {
1867
1897
  });
1868
1898
  };
1869
1899
  const registerNode = (id, fragmentNodeFunc, parentId, metadata, uniforms = {}, componentDefinition, domCanvas) => {
1900
+ if (failureReason) return;
1870
1901
  if (fragmentNodeFunc === null) {
1871
1902
  const queueIndex = pendingRegistrationQueue.findIndex((item) => item.id === id);
1872
1903
  if (queueIndex !== -1) {
@@ -2287,7 +2318,7 @@ function shaderRendererGPU() {
2287
2318
  height: bufH
2288
2319
  });
2289
2320
  } catch (e) {
2290
- console.error("[gpu] composition onResize error:", e);
2321
+ debugError("[gpu] composition onResize error:", e);
2291
2322
  }
2292
2323
  for (const node of nodes.values()) {
2293
2324
  if (transformActive(node)) writeSyntheticScalar(node, "_xform_aspectRatio", aspectRatio());
@@ -2371,11 +2402,11 @@ function shaderRendererGPU() {
2371
2402
  for (const cb of callbacks) try {
2372
2403
  cb(frameParams);
2373
2404
  } catch (e) {
2374
- console.error("[gpu] render callback error:", e);
2405
+ debugError("[gpu] render callback error:", e);
2375
2406
  }
2376
2407
  };
2377
2408
  const renderFrameInternal = (overrideDeltaTime) => {
2378
- if (!canRender()) return;
2409
+ if (failureReason || !canRender()) return;
2379
2410
  const now = performance.now();
2380
2411
  let delta;
2381
2412
  if (overrideDeltaTime !== void 0) delta = overrideDeltaTime;
@@ -2398,29 +2429,29 @@ function shaderRendererGPU() {
2398
2429
  frameParams.dimensions.height = currentHeight;
2399
2430
  let built = null;
2400
2431
  let renderComp = null;
2401
- runFrameSequence({
2402
- updateDrivers: () => {
2403
- updateMouseDrivers();
2404
- updateAnimatedTime();
2405
- updateChildBounds();
2406
- },
2407
- ensureComposition: () => {
2408
- if (structuralDirty || desiredHash === null) {
2409
- desiredHash = computeStructuralHash();
2410
- structuralDirty = false;
2411
- }
2412
- if (desiredHash === null) return false;
2413
- built = pipelineCache.getOrBuild(desiredHash, () => buildComposition(desiredHash));
2414
- bindComposition(built);
2415
- return !!boundComposition;
2416
- },
2417
- beforeRender: () => runCallbacks(boundComposition.ir.onBeforeRender),
2418
- flush: () => {
2419
- writeSystemUniforms(boundComposition.store);
2420
- boundComposition.store.flush();
2421
- },
2422
- render: () => {
2423
- try {
2432
+ try {
2433
+ runFrameSequence({
2434
+ updateDrivers: () => {
2435
+ updateMouseDrivers();
2436
+ updateAnimatedTime();
2437
+ updateChildBounds();
2438
+ },
2439
+ ensureComposition: () => {
2440
+ if (structuralDirty || desiredHash === null) {
2441
+ desiredHash = computeStructuralHash();
2442
+ structuralDirty = false;
2443
+ }
2444
+ if (desiredHash === null) return false;
2445
+ built = pipelineCache.getOrBuild(desiredHash, () => buildComposition(desiredHash));
2446
+ bindComposition(built);
2447
+ return !!boundComposition;
2448
+ },
2449
+ beforeRender: () => runCallbacks(boundComposition.ir.onBeforeRender),
2450
+ flush: () => {
2451
+ writeSystemUniforms(boundComposition.store);
2452
+ boundComposition.store.flush();
2453
+ },
2454
+ render: () => {
2424
2455
  if (enablePerformanceTracking) performance.mark("shader-gpu-start");
2425
2456
  renderComp = pipelineCache.renderValue ?? built;
2426
2457
  renderComp?.passManager.render(context, frameParams);
@@ -2435,20 +2466,22 @@ function shaderRendererGPU() {
2435
2466
  performance.clearMarks("shader-gpu-end");
2436
2467
  } catch {}
2437
2468
  }
2438
- } catch (error) {
2439
- console.error("[gpu] render frame error:", error);
2440
- }
2441
- },
2442
- markReady: () => {
2443
- pipelineCache.markReady(desiredHash);
2444
- if (firstRenderPending && !hasEmittedReady) {
2445
- hasEmittedReady = true;
2446
- firstRenderPending = false;
2447
- if (onReadyCallback) queueMicrotask(onReadyCallback);
2448
- }
2449
- },
2450
- afterRender: () => runCallbacks((renderComp ?? boundComposition).ir.onAfterRender)
2451
- });
2469
+ },
2470
+ markReady: () => {
2471
+ pipelineCache.markReady(desiredHash);
2472
+ if (firstRenderPending && !hasEmittedReady) {
2473
+ hasEmittedReady = true;
2474
+ firstRenderPending = false;
2475
+ if (onReadyCallback) queueMicrotask(onReadyCallback);
2476
+ }
2477
+ },
2478
+ afterRender: () => runCallbacks((renderComp ?? boundComposition).ir.onAfterRender)
2479
+ });
2480
+ consecutiveRenderErrors = 0;
2481
+ } catch (error) {
2482
+ noteRenderFailure(error);
2483
+ return;
2484
+ }
2452
2485
  if (enablePerformanceTracking) {
2453
2486
  performance.mark("shader-cpu-end");
2454
2487
  try {
@@ -2463,21 +2496,22 @@ function shaderRendererGPU() {
2463
2496
  performanceTracker.recordFrame(performance.now() - now);
2464
2497
  };
2465
2498
  const renderFrame = () => renderFrameInternal(void 0);
2466
- const renderAndWait = async () => {
2499
+ const renderAndWait = async (options) => {
2500
+ if (failureReason) return;
2467
2501
  if (!canRender()) throw new Error("Renderer is not ready");
2468
2502
  const wasAnimating = frameLoop.running;
2469
2503
  if (wasAnimating) stopAnimation();
2470
2504
  lastRenderTime = 0;
2471
2505
  renderFrame();
2472
- if (root) await awaitGpuIdle(root);
2506
+ if (root && options?.waitForGpu !== false) await awaitGpuIdle(root);
2473
2507
  if (wasAnimating) startAnimation();
2474
2508
  };
2475
- const renderSyntheticFrame = async (deltaSeconds) => {
2509
+ const renderSyntheticFrame = async (deltaSeconds, options) => {
2476
2510
  renderFrameInternal(deltaSeconds);
2477
- if (root) await awaitGpuIdle(root);
2511
+ if (root && options?.waitForGpu !== false) await awaitGpuIdle(root);
2478
2512
  };
2479
2513
  const startAnimation = () => {
2480
- if (frameLoop.running || !shouldAnimate) return;
2514
+ if (failureReason || frameLoop.running || !shouldAnimate) return;
2481
2515
  performanceTracker.setRendering(true);
2482
2516
  frameLoop.start();
2483
2517
  };
@@ -2587,22 +2621,94 @@ function shaderRendererGPU() {
2587
2621
  pendingRegistrationQueue = [];
2588
2622
  for (const q of queue) registerNode(q.id, q.definition.fragment, q.parentId, q.metadata, q.uniforms, q.definition, q.domCanvas);
2589
2623
  };
2624
+ const fail = (reason, error) => {
2625
+ if (failureReason) return;
2626
+ failureReason = reason;
2627
+ markGpuUnusable(reason);
2628
+ debugError(`[gpu] renderer stopped (${reason}):`, error);
2629
+ try {
2630
+ cleanup();
2631
+ } catch (e) {
2632
+ debugError("[gpu] cleanup during failure threw:", e);
2633
+ }
2634
+ if (!hasNotifiedUnavailable && onUnavailableCallback) {
2635
+ hasNotifiedUnavailable = true;
2636
+ const cb = onUnavailableCallback;
2637
+ queueMicrotask(() => {
2638
+ try {
2639
+ cb(reason, error);
2640
+ } catch (e) {
2641
+ debugError("[gpu] onUnavailable callback threw:", e);
2642
+ }
2643
+ });
2644
+ }
2645
+ };
2646
+ const noteRenderFailure = (error) => {
2647
+ if (isGpuUnavailableError(error)) {
2648
+ fail(error.reason, error);
2649
+ return;
2650
+ }
2651
+ consecutiveRenderErrors++;
2652
+ if (consecutiveRenderErrors === 1) debugError("[gpu] render error:", error);
2653
+ if (consecutiveRenderErrors >= MAX_CONSECUTIVE_RENDER_ERRORS) fail("render-failed", error);
2654
+ };
2655
+ const attachUncapturedErrorHandler = (device) => {
2656
+ if (!device || typeof device.addEventListener !== "function") return;
2657
+ detachUncapturedErrorHandler();
2658
+ uncapturedErrorDevice = device;
2659
+ uncapturedErrorHandler = (event) => {
2660
+ try {
2661
+ event.preventDefault();
2662
+ } catch {}
2663
+ const gpuError = event.error;
2664
+ debugError("[gpu] uncaptured device error:", gpuError);
2665
+ if (typeof GPUOutOfMemoryError !== "undefined" && gpuError instanceof GPUOutOfMemoryError) {
2666
+ fail("out-of-memory", gpuError);
2667
+ return;
2668
+ }
2669
+ if (typeof GPUInternalError !== "undefined" && gpuError instanceof GPUInternalError) {
2670
+ fail("gpu-error", gpuError);
2671
+ return;
2672
+ }
2673
+ uncapturedValidationErrors++;
2674
+ if (uncapturedValidationErrors >= MAX_UNCAPTURED_VALIDATION_ERRORS) fail("gpu-error", gpuError);
2675
+ };
2676
+ device.addEventListener("uncapturederror", uncapturedErrorHandler);
2677
+ };
2678
+ const detachUncapturedErrorHandler = () => {
2679
+ if (uncapturedErrorDevice && uncapturedErrorHandler) try {
2680
+ uncapturedErrorDevice.removeEventListener("uncapturederror", uncapturedErrorHandler);
2681
+ } catch {}
2682
+ uncapturedErrorDevice = null;
2683
+ uncapturedErrorHandler = null;
2684
+ };
2590
2685
  const fireDeviceLost = (reason) => {
2591
2686
  if (deviceLostFired) return;
2592
2687
  deviceLostFired = true;
2593
2688
  try {
2594
2689
  stopAnimation();
2595
2690
  } catch {}
2596
- if (onDeviceLostCallback) queueMicrotask(() => {
2597
- try {
2598
- onDeviceLostCallback?.(reason);
2599
- } catch (e) {
2600
- console.error("[gpu] onDeviceLost callback threw:", e);
2601
- }
2602
- });
2691
+ if (onDeviceLostCallback) {
2692
+ const cb = onDeviceLostCallback;
2693
+ queueMicrotask(() => {
2694
+ try {
2695
+ cb(reason);
2696
+ } catch (e) {
2697
+ debugError("[gpu] onDeviceLost callback threw:", e);
2698
+ }
2699
+ });
2700
+ return;
2701
+ }
2702
+ fail("device-lost", reason);
2603
2703
  };
2604
2704
  const initialize = async (options) => {
2605
2705
  if (options.context !== void 0) throw new Error("[gpu] initialize({ context }) is not supported — this renderer is WebGPU-only. Remove the WebGL `context` option.");
2706
+ if (failureReason) return;
2707
+ const pageWide = getGpuUnusableReason();
2708
+ if (pageWide) {
2709
+ fail(pageWide);
2710
+ return;
2711
+ }
2606
2712
  if (isInitialized || isInitializing) return;
2607
2713
  const { canvas, resizeTarget, enablePerformanceTracking: enableTracking = false, colorSpace = "p3-linear", toneMapping = "linear", gpu, forceFullFrameRate: forceFullFps = false, observeElement: shouldObserveElement = true, timeOrigin: initialTimeOrigin } = options;
2608
2714
  if (initialTimeOrigin != null) sharedTimeOrigin = initialTimeOrigin;
@@ -2625,6 +2731,7 @@ function shaderRendererGPU() {
2625
2731
  });
2626
2732
  if (abort.signal.aborted) return;
2627
2733
  root = rootCtx.root;
2734
+ attachUncapturedErrorHandler(root.device);
2628
2735
  pixelRatio = basePixelRatio();
2629
2736
  const lim = root.device.limits?.maxTextureDimension2D;
2630
2737
  if (typeof lim === "number" && lim > 0) cachedMaxTextureDim = lim;
@@ -2688,7 +2795,11 @@ function shaderRendererGPU() {
2688
2795
  if (currentWidth > 0 && currentHeight > 0) renderFrame();
2689
2796
  if (shouldAnimate) startAnimation();
2690
2797
  } catch (error) {
2691
- console.error("[gpu] initialization error:", error);
2798
+ const reason = isGpuUnavailableError(error) ? error.reason : "init-failed";
2799
+ isInitializing = false;
2800
+ if (initializationAbortController === abort) initializationAbortController = null;
2801
+ fail(reason, error);
2802
+ return;
2692
2803
  } finally {
2693
2804
  isInitializing = false;
2694
2805
  if (initializationAbortController === abort) initializationAbortController = null;
@@ -2721,6 +2832,10 @@ function shaderRendererGPU() {
2721
2832
  pendingRenderRAF = null;
2722
2833
  }
2723
2834
  stopAnimation();
2835
+ detachUncapturedErrorHandler();
2836
+ try {
2837
+ rootCtx?.release?.();
2838
+ } catch {}
2724
2839
  pipelineCache.clear();
2725
2840
  for (const c of [...liveCompositions]) disposeComposition(c);
2726
2841
  boundComposition = null;
@@ -2764,6 +2879,8 @@ function shaderRendererGPU() {
2764
2879
  firstRenderPending = false;
2765
2880
  onDeviceLostCallback = null;
2766
2881
  deviceLostFired = false;
2882
+ uncapturedValidationErrors = 0;
2883
+ consecutiveRenderErrors = 0;
2767
2884
  };
2768
2885
  const getPerformanceStats = () => {
2769
2886
  const nodeCount = Math.max(0, nodes.size - 1);
@@ -2866,6 +2983,21 @@ function shaderRendererGPU() {
2866
2983
  setOnDeviceLost: (callback) => {
2867
2984
  onDeviceLostCallback = callback;
2868
2985
  },
2986
+ setOnUnavailable: (callback) => {
2987
+ onUnavailableCallback = callback;
2988
+ if (callback && failureReason && !hasNotifiedUnavailable) {
2989
+ hasNotifiedUnavailable = true;
2990
+ const reason = failureReason;
2991
+ queueMicrotask(() => {
2992
+ try {
2993
+ callback(reason);
2994
+ } catch (e) {
2995
+ debugError("[gpu] onUnavailable callback threw:", e);
2996
+ }
2997
+ });
2998
+ }
2999
+ },
3000
+ getFailureReason: () => failureReason,
2869
3001
  __testing: {
2870
3002
  needsTransformation,
2871
3003
  findChildNodes,
@@ -2957,12 +3089,12 @@ function createRendererFromJSON(preset, options) {
2957
3089
  registerPresetNodes();
2958
3090
  coreRenderer.stopAnimation();
2959
3091
  }
2960
- async function renderFrame() {
3092
+ async function renderFrame(options$1) {
2961
3093
  if (!coreRenderer.isInitialized()) {
2962
- console.warn("[presetRenderer] Renderer not yet initialized, skipping frame");
3094
+ debugWarn("[presetRenderer] Renderer not yet initialized, skipping frame");
2963
3095
  return;
2964
3096
  }
2965
- await coreRenderer.renderAndWait();
3097
+ await coreRenderer.renderAndWait(options$1);
2966
3098
  }
2967
3099
  function updatePreset(newPreset) {
2968
3100
  nodeIdMap.forEach((_, nodeId) => {
@@ -3031,7 +3163,9 @@ function createRendererFromJSON(preset, options) {
3031
3163
  renderFrame,
3032
3164
  updatePreset,
3033
3165
  getGPUContext,
3034
- dispose
3166
+ dispose,
3167
+ setOnUnavailable: coreRenderer.setOnUnavailable,
3168
+ getFailureReason: coreRenderer.getFailureReason
3035
3169
  };
3036
3170
  }
3037
3171
  function resolveMaskDependencies(nodes) {
@@ -3148,4 +3282,4 @@ function resolveBoundingBox(bbox) {
3148
3282
  ...bbox.lockAspect !== void 0 ? { lockAspect: bbox.lockAspect } : {}
3149
3283
  };
3150
3284
  }
3151
- export { DEFAULT_BOUNDING_BOX, MAX_COLOR_STOPS, SHAPE3D_DEFAULTS, SHAPE3D_TYPES, SVG3D_DEFAULTS, SVG3D_TYPES, boxLocalToScreenUV, createGpuUniformsMap, createRendererFromJSON, is3dShapeType, isDimensionalValue, isSvg3dShapeType, isVolumetricShapeType, resolveBoundingBox, resolveMaskDependencies, resolveStops, rootPassthrough, screenUVToBoxLocal, shaderRendererGPU, shape3dBoundingRadius, sortStops };
3285
+ export { DEFAULT_BOUNDING_BOX, GpuUnavailableError, MAX_COLOR_STOPS, SHAPE3D_DEFAULTS, SHAPE3D_TYPES, SVG3D_DEFAULTS, SVG3D_TYPES, boxLocalToScreenUV, createGpuUniformsMap, createRendererFromJSON, debugError, debugWarn, destroyDefaultGpuDevice, getWebGPUSupport, is3dShapeType, isDimensionalValue, isGpuUnavailableError, isShadersDebug, isSvg3dShapeType, isVolumetricShapeType, isWebGPUSupported, resolveBoundingBox, resolveMaskDependencies, resolveStops, rootPassthrough, screenUVToBoxLocal, setShadersDebug, shaderRendererGPU, shape3dBoundingRadius, sortStops };