shaders 3.1.456 → 3.1.458
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.
- package/dist/cli.js +2 -2
- package/dist/core/{AngularBlur-CIw_xeFr.js → AngularBlur-BzY7RJ8k.js} +16 -32
- package/dist/core/{Arc-Dh0gjBrJ.js → Arc-mmJuqIrG.js} +15 -26
- package/dist/core/{Ascii-CUk527uY.js → Ascii-D67jsGPT.js} +64 -165
- package/dist/core/{Aurora-A5yag1_A.js → Aurora-CpHlaOfW.js} +93 -289
- package/dist/core/{BarShift-BrOamln6.js → BarShift-B9wsOKYJ.js} +33 -68
- package/dist/core/{BarnDoors-D_lVAMPJ.js → BarnDoors-C7Uzc1at.js} +16 -28
- package/dist/core/{Beam-CgpfMTUq.js → Beam-8CoTk23e.js} +22 -62
- package/dist/core/{Bend-CRuu6NuH.js → Bend-BYVoLE8C.js} +50 -161
- package/dist/core/{Blob-1mhEIcv5.js → Blob--way9kNy.js} +62 -189
- package/dist/core/{BlockDissolve-B9xWZC6U.js → BlockDissolve-f5fwwXWH.js} +17 -32
- package/dist/core/{BlockNoise-Csb39Mqw.js → BlockNoise-BpIuLPlC.js} +17 -29
- package/dist/core/{BlueNoise-CnSe6lOE.js → BlueNoise-C2tYHQRB.js} +14 -23
- package/dist/core/{Blur-Bc8evwsz.js → Blur-CmE46Bvp.js} +41 -114
- package/dist/core/{Boids-C7NstB5L.js → Boids-BgsVOmp1.js} +227 -734
- package/dist/core/{BokehBlur-CWQm00ut.js → BokehBlur-CU5Qphip.js} +197 -722
- package/dist/core/{BrickPattern-DomddM0C.js → BrickPattern-BIpInb0P.js} +41 -99
- package/dist/core/{BrightnessContrast-Bs8AV0he.js → BrightnessContrast-BAJYnvFu.js} +12 -22
- package/dist/core/{BrushedMetal-D2X_nM8z.js → BrushedMetal-C4a9G-dt.js} +113 -358
- package/dist/core/{Bulge-CdhRTWSH.js → Bulge-C7eYFYDP.js} +19 -46
- package/dist/core/{CRTScreen-BxnPxDw9.js → CRTScreen-CfCxUiP4.js} +34 -94
- package/dist/core/{CarbonFiber-BFogRBFa.js → CarbonFiber-CDWj-Oc3.js} +123 -420
- package/dist/core/{Chalkboard-DEuq4TWm.js → Chalkboard-BfiyhSfN.js} +86 -212
- package/dist/core/{ChannelBlur-Oz40DKPZ.js → ChannelBlur-D2pxXWLQ.js} +17 -45
- package/dist/core/{CheckerWipe-yv4dK6n5.js → CheckerWipe-Cxy0pc7v.js} +18 -36
- package/dist/core/{Checkerboard-Ynfnt3oJ.js → Checkerboard-Bdaf19G4.js} +12 -17
- package/dist/core/{Chevron-CEwNP2vt.js → Chevron-BsdILsaY.js} +28 -57
- package/dist/core/{ChromaFlow-BXw1jQkn.js → ChromaFlow-DGTgGdzI.js} +31 -86
- package/dist/core/{ChromaticAberration-CWhYEGDU.js → ChromaticAberration-npr_Zzu7.js} +15 -30
- package/dist/core/{Chrome-DdV9RY9D.js → Chrome-DirY2YRZ.js} +156 -546
- package/dist/core/{Circle-DGvP0Svo.js → Circle-CLO08218.js} +15 -31
- package/dist/core/{ColorWheel-BCReEdLZ.js → ColorWheel-D5Hfl4t7.js} +57 -128
- package/dist/core/{CompressionArtifacts-Cm0iOzys.js → CompressionArtifacts-DVlRMU-H.js} +119 -374
- package/dist/core/{ConcentricSpin-B3GHzoS1.js → ConcentricSpin-Dls_rak9.js} +41 -98
- package/dist/core/{ConicGradient-C3zzgyV4.js → ConicGradient-BjVmRAul.js} +18 -31
- package/dist/core/{ContourLines-DDzxvg9k.js → ContourLines-BKcyS-lX.js} +37 -81
- package/dist/core/{CornerPin-VFPI_Jzq.js → CornerPin-CrTdyHSy.js} +96 -268
- package/dist/core/{Crescent-DL6EeZZp.js → Crescent-C77DCA2i.js} +14 -23
- package/dist/core/{Cross-DQIgZt-C.js → Cross-C8SURmac.js} +14 -23
- package/dist/core/{Crystal-CB_U2g2k.js → Crystal-WbJgiOqh.js} +206 -753
- package/dist/core/{CurlNoise-CFAQHy-5.js → CurlNoise-BiFV2K5L.js} +17 -34
- package/dist/core/{CursorRipples-C1hLNWzZ.js → CursorRipples-hIYlb09k.js} +73 -200
- package/dist/core/{CursorTrail-CPW8orHG.js → CursorTrail-CjTJ9OJ0.js} +81 -172
- package/dist/core/{DataMosh-C_esIK54.js → DataMosh-Cmo5-E5_.js} +134 -521
- package/dist/core/{DiamondGradient-BkrLPdAd.js → DiamondGradient-DIxg1EP9.js} +31 -66
- package/dist/core/{DiamondWipe-Cscn7Dyy.js → DiamondWipe-D4T1q5ia.js} +17 -36
- package/dist/core/{DiffuseBlur-DmPHOfr_.js → DiffuseBlur-okj7zVss.js} +13 -22
- package/dist/core/{DisplacementMap-B-cVoGbC.js → DisplacementMap-CHB6_h0f.js} +31 -69
- package/dist/core/{Dither-CBsFenFW.js → Dither-DTnkeWP0.js} +161 -438
- package/dist/core/{DotGrid-CJJXTOk6.js → DotGrid-BJBEwt4L.js} +36 -77
- package/dist/core/{DropShadow-B4msUftn.js → DropShadow-CPT5vr4K.js} +39 -86
- package/dist/core/{Duotone-DF3dn0kC.js → Duotone-BWuTPBIw.js} +14 -26
- package/dist/core/{Ellipse-WuGsM7Gr.js → Ellipse-gVe3stQJ.js} +14 -23
- package/dist/core/{Emboss-D5RYAc-U.js → Emboss-DOPfz-ox.js} +85 -200
- package/dist/core/{Engraving-CmNKAHmF.js → Engraving-YNrPy-c7.js} +82 -222
- package/dist/core/{ErosionNoise-BjD0wAyD.js → ErosionNoise-X_2sjC-x.js} +14 -23
- package/dist/core/{Exposure-BSsbosYN.js → Exposure-xVgsHAWw.js} +7 -12
- package/dist/core/{FallingLines-C1YT49dj.js → FallingLines-DPHJRCvy.js} +68 -205
- package/dist/core/{FilmGrain-CgvcPFDC.js → FilmGrain-CDuL4T8C.js} +22 -51
- package/dist/core/{FilmStock-Bgn9OyQY.js → FilmStock-BmMC2ewO.js} +89 -264
- package/dist/core/{Flip-DJuox9qR.js → Flip-DhpEvnT7.js} +13 -26
- package/dist/core/{FloatingParticles-BGig0_Ks.js → FloatingParticles-Dx3J-Pbe.js} +177 -459
- package/dist/core/{FlowField-0I_PwtkD.js → FlowField-CLbiu5Xo.js} +38 -120
- package/dist/core/{Flower--1qeeCuA.js → Flower-nF4Zq0eP.js} +14 -23
- package/dist/core/{FlowingGradient-ClUwpsZJ.js → FlowingGradient-aNCwZ9nh.js} +61 -185
- package/dist/core/{FlutedGlass-CqSVa4kd.js → FlutedGlass-m19MvmKj.js} +44 -124
- package/dist/core/{Fog-DxFsHnT2.js → Fog-DVclS-y4.js} +125 -330
- package/dist/core/{Form3D-CabM27VZ.js → Form3D-Cv6l3hHQ.js} +328 -974
- package/dist/core/{FractalNoise-CgR9wvoG.js → FractalNoise-BMRqE4LG.js} +26 -55
- package/dist/core/{Frost-BL4zkGjj.js → Frost-Cqc7t9TR.js} +115 -422
- package/dist/core/{GaborNoise-BHDznYFh.js → GaborNoise-BL4TH_Yh.js} +15 -24
- package/dist/core/{Glass-DPa3OWjZ.js → Glass-D5jcM7J7.js} +6 -6
- package/dist/core/{GlassTiles-B4Y8x78X.js → GlassTiles-BeKB3vfh.js} +29 -90
- package/dist/core/{Glitch-D-QTlz5D.js → Glitch-BmJj_vgQ.js} +83 -295
- package/dist/core/{Glow-C3VfGUb6.js → Glow-wdFqXqWh.js} +11 -20
- package/dist/core/{Godrays-Bh6Idg3p.js → Godrays-CQ7Gpeni.js} +68 -179
- package/dist/core/{Goo-BPaUKk1S.js → Goo-nc_51UOr.js} +92 -323
- package/dist/core/{GradientMap-DQ4IbzIx.js → GradientMap-BU9r1enO.js} +61 -141
- package/dist/core/{Grayscale-Bpp1Q2KT.js → Grayscale-CGtMggTH.js} +13 -25
- package/dist/core/{Grid-BneV9T3T.js → Grid-BFx6ufzG.js} +51 -122
- package/dist/core/{GridDistortion-CAKSKhII.js → GridDistortion-B-Hq3rLo.js} +80 -195
- package/dist/core/{Group-UvbIuzy-.js → Group-DnA_clLB.js} +1 -1
- package/dist/core/{HTMLInCanvas-CMxSuq5H.js → HTMLInCanvas-DhCIQ97w.js} +2 -2
- package/dist/core/{Halftone-SiFx0wAg.js → Halftone-eX0AaYyB.js} +114 -283
- package/dist/core/{Heart-DLQnxsbQ.js → Heart-98zfiijj.js} +14 -23
- package/dist/core/{Heatmap-DhvtrL45.js → Heatmap-BCV4Pq0O.js} +92 -271
- package/dist/core/{HexGrid-LGx240mZ.js → HexGrid-BlRlo8z4.js} +46 -117
- package/dist/core/{Hologram-DR88qD5X.js → Hologram-B5iMaK95.js} +87 -258
- package/dist/core/{Holographic-DKc_nNnT.js → Holographic-DBdODPjj.js} +99 -333
- package/dist/core/{HueShift-B7l4vcZP.js → HueShift-AsoQKt_z.js} +16 -33
- package/dist/core/{ImageTexture-D41xKACO.js → ImageTexture-CRL52DxI.js} +3 -3
- package/dist/core/{InkFlow-Bd4RXQmm.js → InkFlow-JMUVdkv1.js} +60 -148
- package/dist/core/{Invert-CEfJB0WN.js → Invert-BWV7zcBe.js} +7 -12
- package/dist/core/{IrisWipe-O6dc-Aq2.js → IrisWipe-5LICL9Oq.js} +14 -23
- package/dist/core/{IsometricCubes-BQFwe-5s.js → IsometricCubes-DGFF6e8t.js} +61 -180
- package/dist/core/{Kaleidoscope-DQFV4-lX.js → Kaleidoscope-B7F2_L9x.js} +28 -69
- package/dist/core/{KeyFrames-BjH6gHSf.js → KeyFrames-CVH9NNY6.js} +298 -1172
- package/dist/core/{LensDistortion-BcodYk7_.js → LensDistortion-_QcaFbkh.js} +3 -3
- package/dist/core/{LensFlare-B4F0dq7O.js → LensFlare-h0EG0UVt.js} +119 -396
- package/dist/core/{LightEdge-CF0k0vMa.js → LightEdge-DO7stYlD.js} +169 -491
- package/dist/core/{LightLeak-Bu6xFjg-.js → LightLeak-BxqXrUyh.js} +80 -268
- package/dist/core/{Line-CRGYWOyW.js → Line-BtfkwqKJ.js} +79 -315
- package/dist/core/{LinearBlur-DGfbbIWb.js → LinearBlur-D0_W0tKF.js} +17 -33
- package/dist/core/{LinearGradient-DOWwm0bP.js → LinearGradient-BiATK9p7.js} +63 -145
- package/dist/core/{LinearWipe-0nTDgTcZ.js → LinearWipe-B1GFY0IT.js} +14 -23
- package/dist/core/{LiquidMetal-Bhenyeg-.js → LiquidMetal-07eJWR7z.js} +106 -341
- package/dist/core/{Liquify-Bg2tEc64.js → Liquify-CfPGxRC3.js} +72 -194
- package/dist/core/{MagneticFilings-Bn5DZWor.js → MagneticFilings-5iGBn4fr.js} +191 -545
- package/dist/core/{Marble-CSOGQ6C0.js → Marble-RK87t7fT.js} +30 -88
- package/dist/core/MeshGradient-DxUlAoDr.js +1508 -0
- package/dist/core/{Mirror-B_2eQT6d.js → Mirror-Bn0fpWtr.js} +26 -67
- package/dist/core/{MultiPointGradient-NJZfFGVb.js → MultiPointGradient-C44VD_6j.js} +26 -50
- package/dist/core/{Neon-m8PtEGdE.js → Neon-aO0w94H6.js} +119 -337
- package/dist/core/{NoiseDissolve-B-fFjiGJ.js → NoiseDissolve-BYyXZMjF.js} +23 -64
- package/dist/core/{ObjectTracker-DlVNN9LJ.js → ObjectTracker-ZgeKRvaK.js} +5 -5
- package/dist/core/{PagePeel-BZOvdHFV.js → PagePeel-DqrIEWWF.js} +67 -215
- package/dist/core/{Paper-w8M4w_Sm.js → Paper-q-nDnqsG.js} +19 -45
- package/dist/core/{Parallelogram-a6zB6mY9.js → Parallelogram-Cppv2GJm.js} +14 -23
- package/dist/core/{ParticleField-UGf3Daat.js → ParticleField-B-O9nxdw.js} +247 -765
- package/dist/core/{ParticleFlow-C7vEbMS3.js → ParticleFlow-DVgTyGq4.js} +283 -840
- package/dist/core/{Particles-CumYpD-5.js → Particles-B49_QWS_.js} +381 -1131
- package/dist/core/{PerlinNoise-sjc342lu.js → PerlinNoise-CZVb7VEh.js} +17 -29
- package/dist/core/{Perspective-S94umCQn.js → Perspective-Bl3AmawJ.js} +27 -73
- package/dist/core/{PixelSort-C7tv3A5u.js → PixelSort-7VoL4Ck8.js} +174 -500
- package/dist/core/{PixelThrow-2WPijuDY.js → PixelThrow-CPqOSAmc.js} +25 -56
- package/dist/core/{Pixelate-BLdO8qAT.js → Pixelate-jMtbtFMG.js} +35 -109
- package/dist/core/{Plasma-DBzZcfQN.js → Plasma-DbilAdXY.js} +23 -47
- package/dist/core/{Plastic-C0Sl_sV1.js → Plastic-DX61wGBx.js} +125 -379
- package/dist/core/{PolarCoordinates-DZNOyHmN.js → PolarCoordinates-KOCO2sd-.js} +19 -44
- package/dist/core/{Polygon-BM3xGxOC.js → Polygon-Citu4Kgl.js} +18 -36
- package/dist/core/{Posterize-BJl7Irml.js → Posterize-D2-WcAiP.js} +18 -45
- package/dist/core/{Prism-CaJyExNA.js → Prism-DYPWHdaf.js} +52 -144
- package/dist/core/{ProgressiveBlur-B1Ur87dm.js → ProgressiveBlur-CTxD1yoj.js} +87 -223
- package/dist/core/{RadialGradient-C1Fb8TaL.js → RadialGradient-B6I7KijG.js} +30 -63
- package/dist/core/{RadialWipe-CA5xWWPN.js → RadialWipe-CtjMG_pj.js} +14 -23
- package/dist/core/{RandomBars-B66TF6V8.js → RandomBars-C6ksDuSF.js} +21 -47
- package/dist/core/{ReactionDiffusion-cYvl6ks9.js → ReactionDiffusion-BzipteCn.js} +274 -755
- package/dist/core/{RectangularCoordinates-BEOFurXt.js → RectangularCoordinates-CfdZ347a.js} +18 -39
- package/dist/core/{ReflectivePlane-wERmyiKx.js → ReflectivePlane-Cpv1p9O3.js} +48 -109
- package/dist/core/{Repeater-Cy8up7cj.js → Repeater-H17zapDG.js} +2 -2
- package/dist/core/{Ring-Cogdtn-0.js → Ring-CDpyGwQ6.js} +15 -31
- package/dist/core/{RippleWipe-fJwyE4vj.js → RippleWipe-BqL3WbjT.js} +20 -41
- package/dist/core/{Ripples-BSHfhVG1.js → Ripples-OFXx87jz.js} +16 -31
- package/dist/core/{RoundedRect-D3intNNI.js → RoundedRect-CuFSyEfW.js} +14 -23
- package/dist/core/{Saturation-D42Bfc5P.js → Saturation-DjHX8rx2.js} +18 -45
- package/dist/core/{Scratches-CChXWpPg.js → Scratches-Glgspe1m.js} +16 -33
- package/dist/core/{Sharpness-Dyh6312-.js → Sharpness-CSOtgpDq.js} +19 -40
- package/dist/core/{Shatter-Qc5aMkWj.js → Shatter-ydD72wnA.js} +79 -199
- package/dist/core/{SimplexNoise-bCC60yB9.js → SimplexNoise-hkOBRbAM.js} +19 -35
- package/dist/core/{SineWave-CnPtZLSs.js → SineWave-Bp_0CoHZ.js} +20 -42
- package/dist/core/{SliceWipe-Byb46V6I.js → SliceWipe-B77JxKQI.js} +31 -86
- package/dist/core/{Smoke-5x6IAk2_.js → Smoke-BMhBhfbI.js} +50 -142
- package/dist/core/{SmokeFill-DOQpTlCv.js → SmokeFill-L_3k9mKj.js} +173 -497
- package/dist/core/{SmokeFlow-B4fdM2M-.js → SmokeFlow-BNzNH5BF.js} +41 -102
- package/dist/core/{Solarize-BB0bXhP0.js → Solarize-C7kAzXW_.js} +20 -50
- package/dist/core/{SolidColor-D-6N9JmI.js → SolidColor-Bp_KSGbp.js} +1 -1
- package/dist/core/{Spherize-aWpru70e.js → Spherize-Bj2nPPwK.js} +43 -125
- package/dist/core/{Spiral-Dbm2j7mM.js → Spiral-D3pxBQUb.js} +46 -115
- package/dist/core/{Star-XtB9FBhQ.js → Star-CEH9XN1n.js} +14 -23
- package/dist/core/{Stone-xSVm7jNc.js → Stone-DwYVLkb6.js} +2 -2
- package/dist/core/{Strands-BFaZBnNo.js → Strands-C3KJK5qj.js} +73 -224
- package/dist/core/{Stretch-BKg0gjm4.js → Stretch-D4dxm3Eq.js} +25 -62
- package/dist/core/{Stripes-B_SkTR2m.js → Stripes-C189VJJp.js} +27 -46
- package/dist/core/{StudioBackground-CUsUWJ2L.js → StudioBackground-DBftmr1t.js} +63 -207
- package/dist/core/{SunBurst-DiqSzz5A.js → SunBurst-BWiu3_T9.js} +20 -43
- package/dist/core/{Surface3D-Dd_T3xvt.js → Surface3D-BHj5scrr.js} +236 -806
- package/dist/core/{Swirl-DBxZ6Wud.js → Swirl-CG20s_S3.js} +35 -126
- package/dist/core/{Teardrop-CnhwMyQx.js → Teardrop-CaZaZqiU.js} +14 -23
- package/dist/core/{Text-Cb6QJNWo.js → Text-BbSkUuRh.js} +26 -64
- package/dist/core/{ThinFilm-B7CTONK1.js → ThinFilm-DT5F71JM.js} +77 -202
- package/dist/core/{TiltShift-DqEFOoJG.js → TiltShift-Bkj3TL8G.js} +90 -238
- package/dist/core/{TimeTrail-G_JamlY8.js → TimeTrail-DNI1as8t.js} +173 -403
- package/dist/core/{Tint-Dj1rSoJ0.js → Tint-C9ivnlbq.js} +35 -89
- package/dist/core/{Trapezoid-D2PMU9G3.js → Trapezoid-Ba413G93.js} +14 -23
- package/dist/core/{TriangularGrid-C3DBCmaj.js → TriangularGrid-Cq7BdUyV.js} +50 -126
- package/dist/core/{Tritone-DfULv51I.js → Tritone-C4qZhK3A.js} +17 -41
- package/dist/core/{Truchet-yjZm8xe3.js → Truchet-BXK_Ot95.js} +60 -152
- package/dist/core/{Twirl-DfRsql00.js → Twirl-BZDpTksa.js} +18 -41
- package/dist/core/{VHS-CGffLHVk.js → VHS-Ge_vluLk.js} +97 -295
- package/dist/core/{VenetianBlinds-CCucT73e.js → VenetianBlinds-Dp92230V.js} +16 -28
- package/dist/core/{Vesica-BIGpXjWv.js → Vesica-5kOz3lTP.js} +14 -23
- package/dist/core/{Vibrance-CtlvCONz.js → Vibrance-B0y3zjRl.js} +18 -45
- package/dist/core/{VideoTexture-DW6bQduh.js → VideoTexture-COYSXvPe.js} +3 -3
- package/dist/core/{Vignette-Dz3pPnPR.js → Vignette-BD_9PM6J.js} +23 -56
- package/dist/core/{Voronoi-5QA-0zme.js → Voronoi-DIpQvBqc.js} +21 -46
- package/dist/core/{Water-CGBvuzXj.js → Water-D6Y7PaqY.js} +179 -639
- package/dist/core/{Watercolor-CGOpgWt8.js → Watercolor-gXjW0cmP.js} +59 -184
- package/dist/core/{WaveDistortion-CRQzZDLP.js → WaveDistortion-CFVOiujJ.js} +84 -178
- package/dist/core/{WaveletNoise-B8MeveW8.js → WaveletNoise-Bm_C1dRt.js} +15 -24
- package/dist/core/{Weave-DpwAU5Rn.js → Weave-a9i8xeTZ.js} +34 -74
- package/dist/core/{WebcamTexture-DauLQjCl.js → WebcamTexture-BFP7WQuM.js} +13 -22
- package/dist/core/{Wool-CuhWR2jo.js → Wool-BwM9vbek.js} +2 -2
- package/dist/core/{WorleyNoise-CjRMr7xP.js → WorleyNoise-DsKMQk7S.js} +30 -56
- package/dist/core/{ZoomBlur-DgG9JA7a.js → ZoomBlur-DiEaGrqE.js} +10 -19
- package/dist/core/{aa-C8WSqiNB.js → aa-C759fSpb.js} +109 -278
- package/dist/core/{agents-C_kohsYu.js → agents-BrNOCcxk.js} +246 -298
- package/dist/core/{bevel-ogqjoZKV.js → bevel-1wa44FF7.js} +14 -34
- package/dist/core/{blur-CZuIxzX6.js → blur-fsxhpklK.js} +314 -925
- package/dist/core/{cells-CM9mfnTr.js → cells-CmYMp4aV.js} +92 -191
- package/dist/core/{cellular-qYnxKdPx.js → cellular-7Xgxfk7O.js} +134 -385
- package/dist/core/derivative-p1TouwZG.js +93 -0
- package/dist/core/{device-B0ZwBfOg.js → device-DWPzs8TD.js} +528 -778
- package/dist/core/{edges-CD7gCAto.js → edges-BvIjDyJK.js} +11467 -13731
- package/dist/core/{fields-CC0756V2.js → fields-DORoQP7V.js} +96 -260
- package/dist/core/{geom-90G-d_hc.js → geom-D1eEB6WE.js} +111 -220
- package/dist/core/{glass-D8xs_kIG.js → glass-DEHkelE5.js} +164 -391
- package/dist/core/index.js +253 -245
- package/dist/core/{lightfields-ffHoLyJn.js → lightfields-Btxs_pA3.js} +125 -320
- package/dist/core/{lighting-D3jc6qOc.js → lighting-CT_di0hW.js} +111 -248
- package/dist/core/{media-fQMXfvXd.js → media-B4AiE8Wu.js} +63 -141
- package/dist/core/{mediaLifecycle-yHZ8w5aj.js → mediaLifecycle-DHrjB2zB.js} +1 -1
- package/dist/core/{noise-DX5Y_I--.js → noise-Be9_Xz5F.js} +939 -2742
- package/dist/core/{noiseColor-DYhX5Js1.js → noiseColor-CCePJCFN.js} +3 -3
- package/dist/core/{noiseColor-DRDY44sf.js → noiseColor-D0SCfBYp.js} +2 -2
- package/dist/core/{noiseStylize-BZD5cOJl.js → noiseStylize-B7Mis4X3.js} +20 -35
- package/dist/core/{porters-DUtQounc.js → porters-BnG6v9YC.js} +762 -2282
- package/dist/core/{propConfigs-k3hs8KYL.js → propConfigs-CvzF7Ot8.js} +1 -1
- package/dist/core/registry.js +225 -223
- package/dist/core/{reveal-DhktaT1C.js → reveal-BPF3DkX1.js} +99 -258
- package/dist/core/{sdf3d-CP87OlsQ.js → sdf3d-OWBwV8hi.js} +931 -3004
- package/dist/core/shaderRegistry-CnWd3DKN.js +433 -0
- package/dist/core/shaderRegistry.d.ts.map +1 -1
- package/dist/core/shaders/AngularBlur/index.js +8 -8
- package/dist/core/shaders/Arc/index.js +7 -7
- package/dist/core/shaders/Ascii/index.js +9 -9
- package/dist/core/shaders/Aurora/index.js +11 -10
- package/dist/core/shaders/BarShift/index.js +8 -8
- package/dist/core/shaders/BarnDoors/index.js +9 -9
- package/dist/core/shaders/Beam/index.js +10 -10
- package/dist/core/shaders/Bend/index.js +8 -8
- package/dist/core/shaders/Blob/index.js +7 -7
- package/dist/core/shaders/BlockDissolve/index.js +11 -10
- package/dist/core/shaders/BlockNoise/index.js +15 -14
- package/dist/core/shaders/BlueNoise/index.js +15 -14
- package/dist/core/shaders/Blur/index.js +8 -8
- package/dist/core/shaders/Boids/index.js +11 -10
- package/dist/core/shaders/BokehBlur/index.js +9 -9
- package/dist/core/shaders/BrickPattern/index.js +12 -11
- package/dist/core/shaders/BrightnessContrast/index.js +7 -7
- package/dist/core/shaders/BrushedMetal/index.js +14 -13
- package/dist/core/shaders/Bulge/index.js +7 -7
- package/dist/core/shaders/CRTScreen/index.js +7 -7
- package/dist/core/shaders/CarbonFiber/index.js +14 -13
- package/dist/core/shaders/Chalkboard/index.js +9 -8
- package/dist/core/shaders/ChannelBlur/index.js +8 -8
- package/dist/core/shaders/CheckerWipe/index.js +9 -9
- package/dist/core/shaders/Checkerboard/index.js +10 -9
- package/dist/core/shaders/Chevron/index.js +10 -9
- package/dist/core/shaders/ChromaFlow/index.js +7 -7
- package/dist/core/shaders/ChromaticAberration/index.js +7 -7
- package/dist/core/shaders/Chrome/index.js +14 -13
- package/dist/core/shaders/Circle/index.js +7 -7
- package/dist/core/shaders/ColorWheel/index.js +9 -9
- package/dist/core/shaders/CompressionArtifacts/index.js +7 -7
- package/dist/core/shaders/ConcentricSpin/index.js +8 -8
- package/dist/core/shaders/ConicGradient/index.js +11 -11
- package/dist/core/shaders/ContourLines/index.js +9 -8
- package/dist/core/shaders/CornerPin/index.js +7 -7
- package/dist/core/shaders/Crescent/index.js +7 -7
- package/dist/core/shaders/Cross/index.js +7 -7
- package/dist/core/shaders/Crystal/index.js +13 -12
- package/dist/core/shaders/CurlNoise/index.js +15 -14
- package/dist/core/shaders/CursorRipples/index.js +8 -8
- package/dist/core/shaders/CursorTrail/index.js +8 -8
- package/dist/core/shaders/DataMosh/index.js +9 -8
- package/dist/core/shaders/DiamondGradient/index.js +11 -11
- package/dist/core/shaders/DiamondWipe/index.js +9 -9
- package/dist/core/shaders/DiffuseBlur/index.js +9 -8
- package/dist/core/shaders/DisplacementMap/index.js +8 -8
- package/dist/core/shaders/Dither/index.js +9 -8
- package/dist/core/shaders/DotGrid/index.js +12 -11
- package/dist/core/shaders/DropShadow/index.js +9 -9
- package/dist/core/shaders/Duotone/index.js +7 -7
- package/dist/core/shaders/Ellipse/index.js +7 -7
- package/dist/core/shaders/Emboss/index.js +9 -9
- package/dist/core/shaders/Engraving/index.js +10 -9
- package/dist/core/shaders/ErosionNoise/index.js +15 -14
- package/dist/core/shaders/Exposure/index.js +7 -7
- package/dist/core/shaders/FallingLines/index.js +10 -9
- package/dist/core/shaders/FilmGrain/index.js +9 -8
- package/dist/core/shaders/FilmStock/index.js +8 -8
- package/dist/core/shaders/Flip/index.js +7 -7
- package/dist/core/shaders/FloatingParticles/index.js +11 -10
- package/dist/core/shaders/FlowField/index.js +10 -9
- package/dist/core/shaders/Flower/index.js +7 -7
- package/dist/core/shaders/FlowingGradient/index.js +10 -9
- package/dist/core/shaders/FlutedGlass/index.js +8 -8
- package/dist/core/shaders/Fog/index.js +11 -10
- package/dist/core/shaders/Form3D/index.js +8 -8
- package/dist/core/shaders/FractalNoise/index.js +14 -13
- package/dist/core/shaders/Frost/index.js +13 -12
- package/dist/core/shaders/GaborNoise/index.js +15 -14
- package/dist/core/shaders/Glass/index.js +10 -10
- package/dist/core/shaders/GlassTiles/index.js +8 -8
- package/dist/core/shaders/Glitch/index.js +9 -8
- package/dist/core/shaders/Glow/index.js +8 -8
- package/dist/core/shaders/Godrays/index.js +12 -11
- package/dist/core/shaders/Goo/index.js +10 -10
- package/dist/core/shaders/GradientMap/index.js +8 -8
- package/dist/core/shaders/Grayscale/index.js +7 -7
- package/dist/core/shaders/Grid/index.js +12 -11
- package/dist/core/shaders/GridDistortion/index.js +7 -7
- package/dist/core/shaders/Group/index.js +7 -7
- package/dist/core/shaders/HTMLInCanvas/index.js +8 -8
- package/dist/core/shaders/Halftone/index.js +8 -8
- package/dist/core/shaders/Heart/index.js +7 -7
- package/dist/core/shaders/Heatmap/index.js +12 -11
- package/dist/core/shaders/HexGrid/index.js +12 -11
- package/dist/core/shaders/Hologram/index.js +12 -11
- package/dist/core/shaders/Holographic/index.js +13 -12
- package/dist/core/shaders/HueShift/index.js +8 -8
- package/dist/core/shaders/ImageTexture/index.js +7 -7
- package/dist/core/shaders/InkFlow/index.js +8 -8
- package/dist/core/shaders/Invert/index.js +7 -7
- package/dist/core/shaders/IrisWipe/index.js +9 -9
- package/dist/core/shaders/IsometricCubes/index.js +12 -11
- package/dist/core/shaders/Kaleidoscope/index.js +8 -8
- package/dist/core/shaders/KeyFrames/index.js +8 -8
- package/dist/core/shaders/LensDistortion/index.js +7 -7
- package/dist/core/shaders/LensFlare/index.js +11 -11
- package/dist/core/shaders/LightEdge/index.js +12 -11
- package/dist/core/shaders/LightLeak/index.js +12 -11
- package/dist/core/shaders/Line/index.js +7 -7
- package/dist/core/shaders/LinearBlur/index.js +9 -9
- package/dist/core/shaders/LinearGradient/index.js +9 -9
- package/dist/core/shaders/LinearWipe/index.js +9 -9
- package/dist/core/shaders/LiquidMetal/index.js +14 -13
- package/dist/core/shaders/Liquify/index.js +7 -7
- package/dist/core/shaders/MagneticFilings/index.js +11 -10
- package/dist/core/shaders/Marble/index.js +11 -10
- package/dist/core/shaders/MeshGradient/index.d.ts +87 -0
- package/dist/core/shaders/MeshGradient/index.d.ts.map +1 -0
- package/dist/core/shaders/MeshGradient/index.js +16 -0
- package/dist/core/shaders/Mirror/index.js +8 -8
- package/dist/core/shaders/MultiPointGradient/index.js +8 -8
- package/dist/core/shaders/Neon/index.js +7 -7
- package/dist/core/shaders/NoiseDissolve/index.js +11 -10
- package/dist/core/shaders/ObjectTracker/index.js +10 -10
- package/dist/core/shaders/PagePeel/index.js +8 -8
- package/dist/core/shaders/Paper/index.js +9 -8
- package/dist/core/shaders/Parallelogram/index.js +7 -7
- package/dist/core/shaders/ParticleField/index.js +11 -10
- package/dist/core/shaders/ParticleFlow/index.js +11 -10
- package/dist/core/shaders/Particles/index.js +12 -11
- package/dist/core/shaders/PerlinNoise/index.js +15 -14
- package/dist/core/shaders/Perspective/index.js +8 -8
- package/dist/core/shaders/PixelSort/index.js +9 -8
- package/dist/core/shaders/PixelThrow/index.js +7 -7
- package/dist/core/shaders/Pixelate/index.js +7 -7
- package/dist/core/shaders/Plasma/index.js +14 -13
- package/dist/core/shaders/Plastic/index.js +13 -12
- package/dist/core/shaders/PolarCoordinates/index.js +8 -8
- package/dist/core/shaders/Polygon/index.js +7 -7
- package/dist/core/shaders/Posterize/index.js +7 -7
- package/dist/core/shaders/Prism/index.js +7 -7
- package/dist/core/shaders/ProgressiveBlur/index.js +9 -9
- package/dist/core/shaders/RadialGradient/index.js +11 -11
- package/dist/core/shaders/RadialWipe/index.js +9 -9
- package/dist/core/shaders/RandomBars/index.js +11 -10
- package/dist/core/shaders/ReactionDiffusion/index.js +11 -10
- package/dist/core/shaders/RectangularCoordinates/index.js +8 -8
- package/dist/core/shaders/ReflectivePlane/index.js +8 -8
- package/dist/core/shaders/Repeater/index.js +7 -7
- package/dist/core/shaders/Ring/index.js +7 -7
- package/dist/core/shaders/RippleWipe/index.js +9 -9
- package/dist/core/shaders/Ripples/index.js +7 -7
- package/dist/core/shaders/RoundedRect/index.js +7 -7
- package/dist/core/shaders/Saturation/index.js +7 -7
- package/dist/core/shaders/Scratches/index.js +12 -11
- package/dist/core/shaders/Sharpness/index.js +7 -7
- package/dist/core/shaders/Shatter/index.js +7 -7
- package/dist/core/shaders/SimplexNoise/index.js +15 -14
- package/dist/core/shaders/SineWave/index.js +8 -8
- package/dist/core/shaders/SliceWipe/index.js +8 -8
- package/dist/core/shaders/Smoke/index.js +8 -8
- package/dist/core/shaders/SmokeFill/index.js +10 -10
- package/dist/core/shaders/SmokeFlow/index.js +8 -8
- package/dist/core/shaders/Solarize/index.js +7 -7
- package/dist/core/shaders/SolidColor/index.js +2 -2
- package/dist/core/shaders/Spherize/index.js +7 -7
- package/dist/core/shaders/Spiral/index.js +9 -8
- package/dist/core/shaders/Star/index.js +7 -7
- package/dist/core/shaders/Stone/index.js +6 -5
- package/dist/core/shaders/Strands/index.js +8 -8
- package/dist/core/shaders/Stretch/index.js +8 -8
- package/dist/core/shaders/Stripes/index.js +11 -10
- package/dist/core/shaders/StudioBackground/index.js +10 -10
- package/dist/core/shaders/SunBurst/index.js +10 -10
- package/dist/core/shaders/Surface3D/index.js +10 -9
- package/dist/core/shaders/Swirl/index.js +7 -7
- package/dist/core/shaders/Teardrop/index.js +7 -7
- package/dist/core/shaders/Text/index.js +11 -11
- package/dist/core/shaders/ThinFilm/index.js +9 -9
- package/dist/core/shaders/TiltShift/index.js +9 -9
- package/dist/core/shaders/TimeTrail/index.js +7 -7
- package/dist/core/shaders/Tint/index.js +7 -7
- package/dist/core/shaders/Trapezoid/index.js +7 -7
- package/dist/core/shaders/TriangularGrid/index.js +12 -11
- package/dist/core/shaders/Tritone/index.js +7 -7
- package/dist/core/shaders/Truchet/index.js +12 -11
- package/dist/core/shaders/Twirl/index.js +7 -7
- package/dist/core/shaders/VHS/index.js +9 -8
- package/dist/core/shaders/VenetianBlinds/index.js +9 -9
- package/dist/core/shaders/Vesica/index.js +7 -7
- package/dist/core/shaders/Vibrance/index.js +7 -7
- package/dist/core/shaders/VideoTexture/index.js +7 -7
- package/dist/core/shaders/Vignette/index.js +7 -7
- package/dist/core/shaders/Voronoi/index.js +12 -12
- package/dist/core/shaders/Water/index.js +13 -12
- package/dist/core/shaders/Watercolor/index.js +9 -8
- package/dist/core/shaders/WaveDistortion/index.js +8 -8
- package/dist/core/shaders/WaveletNoise/index.js +15 -14
- package/dist/core/shaders/Weave/index.js +12 -11
- package/dist/core/shaders/WebcamTexture/index.js +9 -9
- package/dist/core/shaders/Wool/index.js +6 -5
- package/dist/core/shaders/WorleyNoise/index.js +13 -13
- package/dist/core/shaders/ZoomBlur/index.js +8 -8
- package/dist/core/telemetry/index.js +1 -1
- package/dist/core/{tone-DPUvX6X0.js → tone-DgOOeWNY.js} +67 -137
- package/dist/core/utilities/transformations/index.js +1 -1
- package/dist/js/bundle.js +202 -187
- package/dist/js/createShader.js +1 -1
- package/dist/js/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/js/utils/generatePresetCode.js +38 -0
- package/dist/react/MeshGradient.js +226 -0
- package/dist/react/Preview.js +1 -0
- package/dist/react/Shader.js +1 -1
- package/dist/react/bundle.js +120 -105
- package/dist/react/components/MeshGradient.d.ts +41 -0
- package/dist/react/components/MeshGradient.d.ts.map +1 -0
- package/dist/react/engine/Preview.d.ts.map +1 -1
- package/dist/react/index.d.ts +1 -0
- package/dist/react/index.d.ts.map +1 -1
- package/dist/react/index.js +2 -1
- package/dist/react/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/react/utils/generatePresetCode.js +38 -0
- package/dist/registry.js +418 -0
- package/dist/solid/components/MeshGradient.d.ts +38 -0
- package/dist/solid/components/MeshGradient.d.ts.map +1 -0
- package/dist/solid/components/MeshGradient.js +232 -0
- package/dist/solid/engine/Preview.d.ts.map +1 -1
- package/dist/solid/engine/Preview.js +219 -217
- package/dist/solid/engine/Shader.js +1 -1
- package/dist/solid/index.d.ts +1 -0
- package/dist/solid/index.d.ts.map +1 -1
- package/dist/solid/index.js +174 -172
- package/dist/solid/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/solid/utils/generatePresetCode.js +38 -0
- package/dist/svelte/components/MeshGradient.svelte.d.ts +28 -0
- package/dist/svelte/index.d.ts +1 -0
- package/dist/svelte/index.js +2663 -2456
- package/dist/svelte/source/components/MeshGradient.svelte +352 -0
- package/dist/svelte/source/engine/Preview.svelte +2 -0
- package/dist/svelte/source/index.js +1 -0
- package/dist/svelte/utils/generatePresetCode.js +38 -0
- package/dist/vue/MeshGradient.js +3 -0
- package/dist/vue/MeshGradient.vue_vue_type_script_setup_true_lang.js +237 -0
- package/dist/vue/Preview.vue_vue_type_script_setup_true_lang.js +2 -0
- package/dist/vue/Shader.vue_vue_type_script_setup_true_lang.js +1 -1
- package/dist/vue/components/MeshGradient.vue.d.ts +63 -0
- package/dist/vue/components/MeshGradient.vue.d.ts.map +1 -0
- package/dist/vue/index.d.ts +1 -0
- package/dist/vue/index.d.ts.map +1 -1
- package/dist/vue/index.js +2 -1
- package/dist/vue/utils/generatePresetCode.d.ts.map +1 -1
- package/dist/vue/utils/generatePresetCode.js +38 -0
- package/package.json +10 -2
- package/dist/core/shaderRegistry-IG9k35Qx.js +0 -431
- /package/dist/core/{canvasRaster-BB2bNhS7.js → canvasRaster-B41z007g.js} +0 -0
- /package/dist/core/{constants-DoOzbl5b.js → constants-BKlzQFdJ.js} +0 -0
- /package/dist/core/{fonts-ScBvKolx.js → fonts-BMxmjoBM.js} +0 -0
- /package/dist/core/{pointer-DGDGF-yO.js → pointer-DKBz1Qcc.js} +0 -0
- /package/dist/core/{support-6QRFK3xB.js → support-DVuLvN48.js} +0 -0
- /package/dist/core/{transformations-B-zNWNdd.js → transformations-u-UZrXjj.js} +0 -0
|
@@ -1,31 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { M as createGuardedCompute } from "./device-
|
|
3
|
-
var blur_exports = /* @__PURE__ */ __export({
|
|
4
|
-
BLUR_MAP_FORMAT: () => BLUR_MAP_FORMAT,
|
|
5
|
-
DEFAULT_COMPUTE_HEIGHT: () => 640,
|
|
6
|
-
DEFAULT_COMPUTE_WIDTH: () => DEFAULT_COMPUTE_WIDTH,
|
|
7
|
-
MAP_SOURCE_DIM_FIELDS: () => MAP_SOURCE_DIM_FIELDS,
|
|
8
|
-
REMAP_WINDOW_FIELDS: () => REMAP_WINDOW_FIELDS,
|
|
9
|
-
applyRemapWindow: () => applyRemapWindow,
|
|
10
|
-
aspectAwareComputeRes: () => aspectAwareComputeRes,
|
|
11
|
-
bloomExtractSoftKnee: () => bloomExtractSoftKnee,
|
|
12
|
-
buildBloomExtractGraph: () => buildBloomExtractGraph,
|
|
13
|
-
buildBloomExtractMapGraph: () => buildBloomExtractMapGraph,
|
|
14
|
-
buildFixedBlurGraph: () => buildFixedBlurGraph,
|
|
15
|
-
buildFixedWeights: () => buildFixedWeights,
|
|
16
|
-
buildTruncatedWeights: () => buildTruncatedWeights,
|
|
17
|
-
buildVariableBlurGraph: () => buildVariableBlurGraph,
|
|
18
|
-
composeBlurredOverSharp: () => composeBlurredOverSharp,
|
|
19
|
-
createGaussianBlurCompute: () => createGaussianBlurCompute,
|
|
20
|
-
createVariableGaussianBlurCompute: () => createVariableGaussianBlurCompute,
|
|
21
|
-
gaussianTapWeights: () => gaussianTapWeights,
|
|
22
|
-
mapSourceScalar: () => mapSourceScalar,
|
|
23
|
-
remapWindowValues: () => remapWindowValues,
|
|
24
|
-
unrolledTapGather: () => unrolledTapGather,
|
|
25
|
-
withBloomCompute: () => withBloomCompute,
|
|
26
|
-
withFixedBlurCompute: () => withFixedBlurCompute,
|
|
27
|
-
withVariableBlurCompute: () => withVariableBlurCompute
|
|
28
|
-
});
|
|
1
|
+
import { Ft as vec3f, Gt as textureStorage2d, Kt as arrayOf, Lt as vec4f, Mt as vec2f, P as unpremultiplyAlpha, Pt as vec2u, Tt as round, Wt as texture2d, _t as max, cn as i32, ct as clamp, d as ZERO, dt as dot, et as typegpu_default, ht as fract, ln as u32, m as call, qt as struct, sn as f32, xt as pow, yt as mix } from "./edges-BvIjDyJK.js";
|
|
2
|
+
import { I as textureLoad, M as createGuardedCompute, R as textureStore } from "./device-DWPzs8TD.js";
|
|
29
3
|
var DEFAULT_HALF_KERNEL = 24;
|
|
30
4
|
const DEFAULT_COMPUTE_WIDTH = 1024;
|
|
31
5
|
const DEFAULT_COMPUTE_HEIGHT = 640;
|
|
@@ -77,7 +51,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
77
51
|
const HALF_KERNEL = halfKernel;
|
|
78
52
|
const HParams = fixedHParams();
|
|
79
53
|
const VParams = fixedVParams();
|
|
80
|
-
const hLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
54
|
+
const hLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
81
55
|
input: { texture: texture2d(f32) },
|
|
82
56
|
intermediate: { storageTexture: textureStorage2d(INTERMEDIATE_FORMAT, "write-only") },
|
|
83
57
|
weights: {
|
|
@@ -86,7 +60,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
86
60
|
},
|
|
87
61
|
params: { uniform: HParams }
|
|
88
62
|
}), "hLayout");
|
|
89
|
-
const vLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
63
|
+
const vLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
90
64
|
src: { storageTexture: textureStorage2d(INTERMEDIATE_FORMAT, "read-only") },
|
|
91
65
|
output: { storageTexture: textureStorage2d(OUTPUT_FORMAT, "write-only") },
|
|
92
66
|
weights: {
|
|
@@ -98,7 +72,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
98
72
|
return {
|
|
99
73
|
hLayout,
|
|
100
74
|
vLayout,
|
|
101
|
-
kernelH:
|
|
75
|
+
kernelH: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
102
76
|
"use gpu";
|
|
103
77
|
const p = hLayout.$.params;
|
|
104
78
|
const inputCx = __tsover_sub(__tsover_div(__tsover_mul(__tsover_add(f32(cx), .5), p.inputWidth), computeWidth), .5);
|
|
@@ -118,7 +92,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
118
92
|
}
|
|
119
93
|
textureStore(hLayout.$.intermediate, vec2u(cx, cy), sum);
|
|
120
94
|
}), {
|
|
121
|
-
v:
|
|
95
|
+
v: 2,
|
|
122
96
|
name: void 0,
|
|
123
97
|
ast: {
|
|
124
98
|
"params": [{
|
|
@@ -155,11 +129,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
155
129
|
1,
|
|
156
130
|
[
|
|
157
131
|
6,
|
|
158
|
-
|
|
159
|
-
7,
|
|
160
|
-
"d",
|
|
161
|
-
"f32"
|
|
162
|
-
],
|
|
132
|
+
"d.f32",
|
|
163
133
|
["cx"]
|
|
164
134
|
],
|
|
165
135
|
"+",
|
|
@@ -192,11 +162,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
192
162
|
1,
|
|
193
163
|
[
|
|
194
164
|
6,
|
|
195
|
-
|
|
196
|
-
7,
|
|
197
|
-
"d",
|
|
198
|
-
"f32"
|
|
199
|
-
],
|
|
165
|
+
"d.f32",
|
|
200
166
|
["cy"]
|
|
201
167
|
],
|
|
202
168
|
"+",
|
|
@@ -221,11 +187,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
221
187
|
"inputWm1",
|
|
222
188
|
[
|
|
223
189
|
6,
|
|
224
|
-
|
|
225
|
-
7,
|
|
226
|
-
"d",
|
|
227
|
-
"i32"
|
|
228
|
-
],
|
|
190
|
+
"d.i32",
|
|
229
191
|
[[
|
|
230
192
|
1,
|
|
231
193
|
[
|
|
@@ -243,11 +205,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
243
205
|
"inputHm1",
|
|
244
206
|
[
|
|
245
207
|
6,
|
|
246
|
-
|
|
247
|
-
7,
|
|
248
|
-
"d",
|
|
249
|
-
"i32"
|
|
250
|
-
],
|
|
208
|
+
"d.i32",
|
|
251
209
|
[[
|
|
252
210
|
1,
|
|
253
211
|
[
|
|
@@ -265,18 +223,10 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
265
223
|
"inputCxI",
|
|
266
224
|
[
|
|
267
225
|
6,
|
|
268
|
-
|
|
269
|
-
7,
|
|
270
|
-
"d",
|
|
271
|
-
"i32"
|
|
272
|
-
],
|
|
226
|
+
"d.i32",
|
|
273
227
|
[[
|
|
274
228
|
6,
|
|
275
|
-
|
|
276
|
-
7,
|
|
277
|
-
"std",
|
|
278
|
-
"round"
|
|
279
|
-
],
|
|
229
|
+
"std.round",
|
|
280
230
|
["inputCx"]
|
|
281
231
|
]]
|
|
282
232
|
]
|
|
@@ -286,26 +236,14 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
286
236
|
"inputCyI",
|
|
287
237
|
[
|
|
288
238
|
6,
|
|
289
|
-
|
|
290
|
-
7,
|
|
291
|
-
"std",
|
|
292
|
-
"clamp"
|
|
293
|
-
],
|
|
239
|
+
"std.clamp",
|
|
294
240
|
[
|
|
295
241
|
[
|
|
296
242
|
6,
|
|
297
|
-
|
|
298
|
-
7,
|
|
299
|
-
"d",
|
|
300
|
-
"i32"
|
|
301
|
-
],
|
|
243
|
+
"d.i32",
|
|
302
244
|
[[
|
|
303
245
|
6,
|
|
304
|
-
|
|
305
|
-
7,
|
|
306
|
-
"std",
|
|
307
|
-
"round"
|
|
308
|
-
],
|
|
246
|
+
"std.round",
|
|
309
247
|
["inputCy"]
|
|
310
248
|
]]
|
|
311
249
|
],
|
|
@@ -343,11 +281,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
343
281
|
"sum",
|
|
344
282
|
[
|
|
345
283
|
6,
|
|
346
|
-
|
|
347
|
-
7,
|
|
348
|
-
"d",
|
|
349
|
-
"vec4f"
|
|
350
|
-
],
|
|
284
|
+
"d.vec4f",
|
|
351
285
|
[
|
|
352
286
|
[5, "0"],
|
|
353
287
|
[5, "0"],
|
|
@@ -390,11 +324,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
390
324
|
"sampleX",
|
|
391
325
|
[
|
|
392
326
|
6,
|
|
393
|
-
|
|
394
|
-
7,
|
|
395
|
-
"std",
|
|
396
|
-
"clamp"
|
|
397
|
-
],
|
|
327
|
+
"std.clamp",
|
|
398
328
|
[
|
|
399
329
|
[
|
|
400
330
|
1,
|
|
@@ -412,11 +342,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
412
342
|
"texel",
|
|
413
343
|
[
|
|
414
344
|
6,
|
|
415
|
-
|
|
416
|
-
7,
|
|
417
|
-
"std",
|
|
418
|
-
"textureLoad"
|
|
419
|
-
],
|
|
345
|
+
"std.textureLoad",
|
|
420
346
|
[
|
|
421
347
|
[
|
|
422
348
|
7,
|
|
@@ -429,26 +355,14 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
429
355
|
],
|
|
430
356
|
[
|
|
431
357
|
6,
|
|
432
|
-
|
|
433
|
-
7,
|
|
434
|
-
"d",
|
|
435
|
-
"vec2u"
|
|
436
|
-
],
|
|
358
|
+
"d.vec2u",
|
|
437
359
|
[[
|
|
438
360
|
6,
|
|
439
|
-
|
|
440
|
-
7,
|
|
441
|
-
"d",
|
|
442
|
-
"u32"
|
|
443
|
-
],
|
|
361
|
+
"d.u32",
|
|
444
362
|
["sampleX"]
|
|
445
363
|
], [
|
|
446
364
|
6,
|
|
447
|
-
|
|
448
|
-
7,
|
|
449
|
-
"d",
|
|
450
|
-
"u32"
|
|
451
|
-
],
|
|
365
|
+
"d.u32",
|
|
452
366
|
["inputCyI"]
|
|
453
367
|
]]
|
|
454
368
|
],
|
|
@@ -499,11 +413,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
499
413
|
],
|
|
500
414
|
[
|
|
501
415
|
6,
|
|
502
|
-
|
|
503
|
-
7,
|
|
504
|
-
"std",
|
|
505
|
-
"textureStore"
|
|
506
|
-
],
|
|
416
|
+
"std.textureStore",
|
|
507
417
|
[
|
|
508
418
|
[
|
|
509
419
|
7,
|
|
@@ -516,36 +426,31 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
516
426
|
],
|
|
517
427
|
[
|
|
518
428
|
6,
|
|
519
|
-
|
|
520
|
-
7,
|
|
521
|
-
"d",
|
|
522
|
-
"vec2u"
|
|
523
|
-
],
|
|
429
|
+
"d.vec2u",
|
|
524
430
|
["cx", "cy"]
|
|
525
431
|
],
|
|
526
432
|
"sum"
|
|
527
433
|
]
|
|
528
434
|
]
|
|
529
|
-
]]
|
|
530
|
-
"externalNames": [
|
|
531
|
-
"hLayout",
|
|
532
|
-
"d",
|
|
533
|
-
"computeWidth",
|
|
534
|
-
"computeHeight",
|
|
535
|
-
"std",
|
|
536
|
-
"HALF_KERNEL"
|
|
537
|
-
]
|
|
435
|
+
]]
|
|
538
436
|
},
|
|
539
|
-
externals:
|
|
540
|
-
hLayout,
|
|
541
|
-
d:
|
|
542
|
-
computeWidth,
|
|
543
|
-
computeHeight,
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
437
|
+
externals: {
|
|
438
|
+
"hLayout": () => hLayout,
|
|
439
|
+
"d.f32": () => f32,
|
|
440
|
+
"computeWidth": () => computeWidth,
|
|
441
|
+
"computeHeight": () => computeHeight,
|
|
442
|
+
"d.i32": () => i32,
|
|
443
|
+
"std.round": () => round,
|
|
444
|
+
"std.clamp": () => clamp,
|
|
445
|
+
"d.vec4f": () => vec4f,
|
|
446
|
+
"std.textureLoad": () => textureLoad,
|
|
447
|
+
"d.vec2u": () => vec2u,
|
|
448
|
+
"d.u32": () => u32,
|
|
449
|
+
"HALF_KERNEL": () => HALF_KERNEL,
|
|
450
|
+
"std.textureStore": () => textureStore
|
|
451
|
+
}
|
|
547
452
|
}) && $.f)({})).$name("gaussianBlurH"),
|
|
548
|
-
kernelV:
|
|
453
|
+
kernelV: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
549
454
|
"use gpu";
|
|
550
455
|
const av = vLayout.$.params.activeHalf;
|
|
551
456
|
const count = __tsover_add(__tsover_mul(av, 2), 1);
|
|
@@ -559,7 +464,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
559
464
|
}
|
|
560
465
|
textureStore(vLayout.$.output, vec2u(cx, cy), sum);
|
|
561
466
|
}), {
|
|
562
|
-
v:
|
|
467
|
+
v: 2,
|
|
563
468
|
name: void 0,
|
|
564
469
|
ast: {
|
|
565
470
|
"params": [{
|
|
@@ -607,11 +512,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
607
512
|
"cyi",
|
|
608
513
|
[
|
|
609
514
|
6,
|
|
610
|
-
|
|
611
|
-
7,
|
|
612
|
-
"d",
|
|
613
|
-
"i32"
|
|
614
|
-
],
|
|
515
|
+
"d.i32",
|
|
615
516
|
["cy"]
|
|
616
517
|
]
|
|
617
518
|
],
|
|
@@ -620,11 +521,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
620
521
|
"sum",
|
|
621
522
|
[
|
|
622
523
|
6,
|
|
623
|
-
|
|
624
|
-
7,
|
|
625
|
-
"d",
|
|
626
|
-
"vec4f"
|
|
627
|
-
],
|
|
524
|
+
"d.vec4f",
|
|
628
525
|
[
|
|
629
526
|
[5, "0"],
|
|
630
527
|
[5, "0"],
|
|
@@ -667,11 +564,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
667
564
|
"sampleY",
|
|
668
565
|
[
|
|
669
566
|
6,
|
|
670
|
-
|
|
671
|
-
7,
|
|
672
|
-
"std",
|
|
673
|
-
"clamp"
|
|
674
|
-
],
|
|
567
|
+
"std.clamp",
|
|
675
568
|
[
|
|
676
569
|
[
|
|
677
570
|
1,
|
|
@@ -694,11 +587,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
694
587
|
"texel",
|
|
695
588
|
[
|
|
696
589
|
6,
|
|
697
|
-
|
|
698
|
-
7,
|
|
699
|
-
"std",
|
|
700
|
-
"textureLoad"
|
|
701
|
-
],
|
|
590
|
+
"std.textureLoad",
|
|
702
591
|
[[
|
|
703
592
|
7,
|
|
704
593
|
[
|
|
@@ -709,18 +598,10 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
709
598
|
"src"
|
|
710
599
|
], [
|
|
711
600
|
6,
|
|
712
|
-
|
|
713
|
-
7,
|
|
714
|
-
"d",
|
|
715
|
-
"vec2u"
|
|
716
|
-
],
|
|
601
|
+
"d.vec2u",
|
|
717
602
|
["cx", [
|
|
718
603
|
6,
|
|
719
|
-
|
|
720
|
-
7,
|
|
721
|
-
"d",
|
|
722
|
-
"u32"
|
|
723
|
-
],
|
|
604
|
+
"d.u32",
|
|
724
605
|
["sampleY"]
|
|
725
606
|
]]
|
|
726
607
|
]]
|
|
@@ -769,11 +650,7 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
769
650
|
],
|
|
770
651
|
[
|
|
771
652
|
6,
|
|
772
|
-
|
|
773
|
-
7,
|
|
774
|
-
"std",
|
|
775
|
-
"textureStore"
|
|
776
|
-
],
|
|
653
|
+
"std.textureStore",
|
|
777
654
|
[
|
|
778
655
|
[
|
|
779
656
|
7,
|
|
@@ -786,32 +663,26 @@ function buildFixedBlurGraph(halfKernel, computeWidth, computeHeight) {
|
|
|
786
663
|
],
|
|
787
664
|
[
|
|
788
665
|
6,
|
|
789
|
-
|
|
790
|
-
7,
|
|
791
|
-
"d",
|
|
792
|
-
"vec2u"
|
|
793
|
-
],
|
|
666
|
+
"d.vec2u",
|
|
794
667
|
["cx", "cy"]
|
|
795
668
|
],
|
|
796
669
|
"sum"
|
|
797
670
|
]
|
|
798
671
|
]
|
|
799
|
-
]]
|
|
800
|
-
"externalNames": [
|
|
801
|
-
"vLayout",
|
|
802
|
-
"d",
|
|
803
|
-
"std",
|
|
804
|
-
"computeHeight",
|
|
805
|
-
"HALF_KERNEL"
|
|
806
|
-
]
|
|
672
|
+
]]
|
|
807
673
|
},
|
|
808
|
-
externals:
|
|
809
|
-
vLayout,
|
|
810
|
-
d:
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
674
|
+
externals: {
|
|
675
|
+
"vLayout": () => vLayout,
|
|
676
|
+
"d.i32": () => i32,
|
|
677
|
+
"d.vec4f": () => vec4f,
|
|
678
|
+
"std.clamp": () => clamp,
|
|
679
|
+
"computeHeight": () => computeHeight,
|
|
680
|
+
"std.textureLoad": () => textureLoad,
|
|
681
|
+
"d.vec2u": () => vec2u,
|
|
682
|
+
"d.u32": () => u32,
|
|
683
|
+
"HALF_KERNEL": () => HALF_KERNEL,
|
|
684
|
+
"std.textureStore": () => textureStore
|
|
685
|
+
}
|
|
815
686
|
}) && $.f)({})).$name("gaussianBlurV"),
|
|
816
687
|
HParams,
|
|
817
688
|
VParams,
|
|
@@ -848,7 +719,7 @@ function createGaussianBlurCompute(root, inputTexture, inputWidth, inputHeight,
|
|
|
848
719
|
"use gpu";
|
|
849
720
|
kernelH(cx, cy);
|
|
850
721
|
}), {
|
|
851
|
-
v:
|
|
722
|
+
v: 2,
|
|
852
723
|
name: void 0,
|
|
853
724
|
ast: {
|
|
854
725
|
"params": [{
|
|
@@ -862,16 +733,15 @@ function createGaussianBlurCompute(root, inputTexture, inputWidth, inputHeight,
|
|
|
862
733
|
6,
|
|
863
734
|
"kernelH",
|
|
864
735
|
["cx", "cy"]
|
|
865
|
-
]]]
|
|
866
|
-
"externalNames": ["kernelH"]
|
|
736
|
+
]]]
|
|
867
737
|
},
|
|
868
|
-
externals: () =>
|
|
738
|
+
externals: { "kernelH": () => kernelH }
|
|
869
739
|
}) && $.f)({}), { size: [computeWidth, computeHeight] });
|
|
870
740
|
const computeSteps = [hPipeline, createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
871
741
|
"use gpu";
|
|
872
742
|
kernelV(cx, cy);
|
|
873
743
|
}), {
|
|
874
|
-
v:
|
|
744
|
+
v: 2,
|
|
875
745
|
name: void 0,
|
|
876
746
|
ast: {
|
|
877
747
|
"params": [{
|
|
@@ -885,10 +755,9 @@ function createGaussianBlurCompute(root, inputTexture, inputWidth, inputHeight,
|
|
|
885
755
|
6,
|
|
886
756
|
"kernelV",
|
|
887
757
|
["cx", "cy"]
|
|
888
|
-
]]]
|
|
889
|
-
"externalNames": ["kernelV"]
|
|
758
|
+
]]]
|
|
890
759
|
},
|
|
891
|
-
externals: () =>
|
|
760
|
+
externals: { "kernelV": () => kernelV }
|
|
892
761
|
}) && $.f)({}), {
|
|
893
762
|
size: [computeWidth, computeHeight],
|
|
894
763
|
bindGroup: vBindGroup
|
|
@@ -965,7 +834,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
965
834
|
const invHalf = 1 / HALF_KERNEL;
|
|
966
835
|
const HParams = variableHParams();
|
|
967
836
|
const VParams = variableVParams();
|
|
968
|
-
const hLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
837
|
+
const hLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
969
838
|
blurMap: { storageTexture: textureStorage2d(BLUR_MAP_FORMAT, "read-only") },
|
|
970
839
|
input: { texture: texture2d(f32) },
|
|
971
840
|
intermediate: { storageTexture: textureStorage2d(INTERMEDIATE_FORMAT, "write-only") },
|
|
@@ -975,7 +844,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
975
844
|
},
|
|
976
845
|
params: { uniform: HParams }
|
|
977
846
|
}), "hLayout");
|
|
978
|
-
const vLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
847
|
+
const vLayout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
979
848
|
blurMap: { storageTexture: textureStorage2d(BLUR_MAP_FORMAT, "read-only") },
|
|
980
849
|
src: { storageTexture: textureStorage2d(INTERMEDIATE_FORMAT, "read-only") },
|
|
981
850
|
output: { storageTexture: textureStorage2d(OUTPUT_FORMAT, "write-only") },
|
|
@@ -988,7 +857,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
988
857
|
return {
|
|
989
858
|
hLayout,
|
|
990
859
|
vLayout,
|
|
991
|
-
kernelH:
|
|
860
|
+
kernelH: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
992
861
|
"use gpu";
|
|
993
862
|
const p = hLayout.$.params;
|
|
994
863
|
const blurRadius = textureLoad(hLayout.$.blurMap, vec2u(cx, cy)).r;
|
|
@@ -1013,7 +882,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1013
882
|
textureStore(hLayout.$.intermediate, vec2u(cx, cy), sum);
|
|
1014
883
|
}
|
|
1015
884
|
}), {
|
|
1016
|
-
v:
|
|
885
|
+
v: 2,
|
|
1017
886
|
name: void 0,
|
|
1018
887
|
ast: {
|
|
1019
888
|
"params": [{
|
|
@@ -1044,11 +913,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1044
913
|
7,
|
|
1045
914
|
[
|
|
1046
915
|
6,
|
|
1047
|
-
|
|
1048
|
-
7,
|
|
1049
|
-
"std",
|
|
1050
|
-
"textureLoad"
|
|
1051
|
-
],
|
|
916
|
+
"std.textureLoad",
|
|
1052
917
|
[[
|
|
1053
918
|
7,
|
|
1054
919
|
[
|
|
@@ -1059,11 +924,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1059
924
|
"blurMap"
|
|
1060
925
|
], [
|
|
1061
926
|
6,
|
|
1062
|
-
|
|
1063
|
-
7,
|
|
1064
|
-
"d",
|
|
1065
|
-
"vec2u"
|
|
1066
|
-
],
|
|
927
|
+
"d.vec2u",
|
|
1067
928
|
["cx", "cy"]
|
|
1068
929
|
]]
|
|
1069
930
|
],
|
|
@@ -1083,11 +944,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1083
944
|
1,
|
|
1084
945
|
[
|
|
1085
946
|
6,
|
|
1086
|
-
|
|
1087
|
-
7,
|
|
1088
|
-
"d",
|
|
1089
|
-
"f32"
|
|
1090
|
-
],
|
|
947
|
+
"d.f32",
|
|
1091
948
|
["cx"]
|
|
1092
949
|
],
|
|
1093
950
|
"+",
|
|
@@ -1120,11 +977,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1120
977
|
1,
|
|
1121
978
|
[
|
|
1122
979
|
6,
|
|
1123
|
-
|
|
1124
|
-
7,
|
|
1125
|
-
"d",
|
|
1126
|
-
"f32"
|
|
1127
|
-
],
|
|
980
|
+
"d.f32",
|
|
1128
981
|
["cy"]
|
|
1129
982
|
],
|
|
1130
983
|
"+",
|
|
@@ -1149,11 +1002,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1149
1002
|
"inputWm1",
|
|
1150
1003
|
[
|
|
1151
1004
|
6,
|
|
1152
|
-
|
|
1153
|
-
7,
|
|
1154
|
-
"d",
|
|
1155
|
-
"i32"
|
|
1156
|
-
],
|
|
1005
|
+
"d.i32",
|
|
1157
1006
|
[[
|
|
1158
1007
|
1,
|
|
1159
1008
|
[
|
|
@@ -1171,11 +1020,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1171
1020
|
"inputHm1",
|
|
1172
1021
|
[
|
|
1173
1022
|
6,
|
|
1174
|
-
|
|
1175
|
-
7,
|
|
1176
|
-
"d",
|
|
1177
|
-
"i32"
|
|
1178
|
-
],
|
|
1023
|
+
"d.i32",
|
|
1179
1024
|
[[
|
|
1180
1025
|
1,
|
|
1181
1026
|
[
|
|
@@ -1193,26 +1038,14 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1193
1038
|
"inputCyI",
|
|
1194
1039
|
[
|
|
1195
1040
|
6,
|
|
1196
|
-
|
|
1197
|
-
7,
|
|
1198
|
-
"std",
|
|
1199
|
-
"clamp"
|
|
1200
|
-
],
|
|
1041
|
+
"std.clamp",
|
|
1201
1042
|
[
|
|
1202
1043
|
[
|
|
1203
1044
|
6,
|
|
1204
|
-
|
|
1205
|
-
7,
|
|
1206
|
-
"d",
|
|
1207
|
-
"i32"
|
|
1208
|
-
],
|
|
1045
|
+
"d.i32",
|
|
1209
1046
|
[[
|
|
1210
1047
|
6,
|
|
1211
|
-
|
|
1212
|
-
7,
|
|
1213
|
-
"std",
|
|
1214
|
-
"round"
|
|
1215
|
-
],
|
|
1048
|
+
"std.round",
|
|
1216
1049
|
["inputCy"]
|
|
1217
1050
|
]]
|
|
1218
1051
|
],
|
|
@@ -1235,26 +1068,14 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1235
1068
|
"cxClamp",
|
|
1236
1069
|
[
|
|
1237
1070
|
6,
|
|
1238
|
-
|
|
1239
|
-
7,
|
|
1240
|
-
"std",
|
|
1241
|
-
"clamp"
|
|
1242
|
-
],
|
|
1071
|
+
"std.clamp",
|
|
1243
1072
|
[
|
|
1244
1073
|
[
|
|
1245
1074
|
6,
|
|
1246
|
-
|
|
1247
|
-
7,
|
|
1248
|
-
"d",
|
|
1249
|
-
"i32"
|
|
1250
|
-
],
|
|
1075
|
+
"d.i32",
|
|
1251
1076
|
[[
|
|
1252
1077
|
6,
|
|
1253
|
-
|
|
1254
|
-
7,
|
|
1255
|
-
"std",
|
|
1256
|
-
"round"
|
|
1257
|
-
],
|
|
1078
|
+
"std.round",
|
|
1258
1079
|
["inputCx"]
|
|
1259
1080
|
]]
|
|
1260
1081
|
],
|
|
@@ -1268,11 +1089,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1268
1089
|
"texel",
|
|
1269
1090
|
[
|
|
1270
1091
|
6,
|
|
1271
|
-
|
|
1272
|
-
7,
|
|
1273
|
-
"std",
|
|
1274
|
-
"textureLoad"
|
|
1275
|
-
],
|
|
1092
|
+
"std.textureLoad",
|
|
1276
1093
|
[
|
|
1277
1094
|
[
|
|
1278
1095
|
7,
|
|
@@ -1285,26 +1102,14 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1285
1102
|
],
|
|
1286
1103
|
[
|
|
1287
1104
|
6,
|
|
1288
|
-
|
|
1289
|
-
7,
|
|
1290
|
-
"d",
|
|
1291
|
-
"vec2u"
|
|
1292
|
-
],
|
|
1105
|
+
"d.vec2u",
|
|
1293
1106
|
[[
|
|
1294
1107
|
6,
|
|
1295
|
-
|
|
1296
|
-
7,
|
|
1297
|
-
"d",
|
|
1298
|
-
"u32"
|
|
1299
|
-
],
|
|
1108
|
+
"d.u32",
|
|
1300
1109
|
["cxClamp"]
|
|
1301
1110
|
], [
|
|
1302
1111
|
6,
|
|
1303
|
-
|
|
1304
|
-
7,
|
|
1305
|
-
"d",
|
|
1306
|
-
"u32"
|
|
1307
|
-
],
|
|
1112
|
+
"d.u32",
|
|
1308
1113
|
["inputCyI"]
|
|
1309
1114
|
]]
|
|
1310
1115
|
],
|
|
@@ -1314,11 +1119,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1314
1119
|
],
|
|
1315
1120
|
[
|
|
1316
1121
|
6,
|
|
1317
|
-
|
|
1318
|
-
7,
|
|
1319
|
-
"std",
|
|
1320
|
-
"textureStore"
|
|
1321
|
-
],
|
|
1122
|
+
"std.textureStore",
|
|
1322
1123
|
[
|
|
1323
1124
|
[
|
|
1324
1125
|
7,
|
|
@@ -1331,11 +1132,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1331
1132
|
],
|
|
1332
1133
|
[
|
|
1333
1134
|
6,
|
|
1334
|
-
|
|
1335
|
-
7,
|
|
1336
|
-
"d",
|
|
1337
|
-
"vec2u"
|
|
1338
|
-
],
|
|
1135
|
+
"d.vec2u",
|
|
1339
1136
|
["cx", "cy"]
|
|
1340
1137
|
],
|
|
1341
1138
|
"texel"
|
|
@@ -1353,33 +1150,21 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1353
1150
|
1,
|
|
1354
1151
|
[
|
|
1355
1152
|
6,
|
|
1356
|
-
|
|
1357
|
-
7,
|
|
1358
|
-
"std",
|
|
1359
|
-
"fract"
|
|
1360
|
-
],
|
|
1153
|
+
"std.fract",
|
|
1361
1154
|
[[
|
|
1362
1155
|
1,
|
|
1363
1156
|
[5, "52.9829189"],
|
|
1364
1157
|
"*",
|
|
1365
1158
|
[
|
|
1366
1159
|
6,
|
|
1367
|
-
|
|
1368
|
-
7,
|
|
1369
|
-
"std",
|
|
1370
|
-
"fract"
|
|
1371
|
-
],
|
|
1160
|
+
"std.fract",
|
|
1372
1161
|
[[
|
|
1373
1162
|
1,
|
|
1374
1163
|
[
|
|
1375
1164
|
1,
|
|
1376
1165
|
[
|
|
1377
1166
|
6,
|
|
1378
|
-
|
|
1379
|
-
7,
|
|
1380
|
-
"d",
|
|
1381
|
-
"f32"
|
|
1382
|
-
],
|
|
1167
|
+
"d.f32",
|
|
1383
1168
|
["cx"]
|
|
1384
1169
|
],
|
|
1385
1170
|
"*",
|
|
@@ -1390,11 +1175,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1390
1175
|
1,
|
|
1391
1176
|
[
|
|
1392
1177
|
6,
|
|
1393
|
-
|
|
1394
|
-
7,
|
|
1395
|
-
"d",
|
|
1396
|
-
"f32"
|
|
1397
|
-
],
|
|
1178
|
+
"d.f32",
|
|
1398
1179
|
["cy"]
|
|
1399
1180
|
],
|
|
1400
1181
|
"*",
|
|
@@ -1409,11 +1190,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1409
1190
|
],
|
|
1410
1191
|
[
|
|
1411
1192
|
6,
|
|
1412
|
-
|
|
1413
|
-
7,
|
|
1414
|
-
"d",
|
|
1415
|
-
"f32"
|
|
1416
|
-
],
|
|
1193
|
+
"d.f32",
|
|
1417
1194
|
[[5, "0"]]
|
|
1418
1195
|
]
|
|
1419
1196
|
]
|
|
@@ -1423,11 +1200,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1423
1200
|
"sum",
|
|
1424
1201
|
[
|
|
1425
1202
|
6,
|
|
1426
|
-
|
|
1427
|
-
7,
|
|
1428
|
-
"d",
|
|
1429
|
-
"vec4f"
|
|
1430
|
-
],
|
|
1203
|
+
"d.vec4f",
|
|
1431
1204
|
[
|
|
1432
1205
|
[5, "0"],
|
|
1433
1206
|
[5, "0"],
|
|
@@ -1470,11 +1243,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1470
1243
|
1,
|
|
1471
1244
|
[
|
|
1472
1245
|
6,
|
|
1473
|
-
|
|
1474
|
-
7,
|
|
1475
|
-
"d",
|
|
1476
|
-
"f32"
|
|
1477
|
-
],
|
|
1246
|
+
"d.f32",
|
|
1478
1247
|
["i"]
|
|
1479
1248
|
],
|
|
1480
1249
|
"+",
|
|
@@ -1492,26 +1261,14 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1492
1261
|
"sampleX",
|
|
1493
1262
|
[
|
|
1494
1263
|
6,
|
|
1495
|
-
|
|
1496
|
-
7,
|
|
1497
|
-
"std",
|
|
1498
|
-
"clamp"
|
|
1499
|
-
],
|
|
1264
|
+
"std.clamp",
|
|
1500
1265
|
[
|
|
1501
1266
|
[
|
|
1502
1267
|
6,
|
|
1503
|
-
|
|
1504
|
-
7,
|
|
1505
|
-
"d",
|
|
1506
|
-
"i32"
|
|
1507
|
-
],
|
|
1268
|
+
"d.i32",
|
|
1508
1269
|
[[
|
|
1509
1270
|
6,
|
|
1510
|
-
|
|
1511
|
-
7,
|
|
1512
|
-
"std",
|
|
1513
|
-
"round"
|
|
1514
|
-
],
|
|
1271
|
+
"std.round",
|
|
1515
1272
|
[[
|
|
1516
1273
|
1,
|
|
1517
1274
|
"inputCx",
|
|
@@ -1530,11 +1287,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1530
1287
|
"texel",
|
|
1531
1288
|
[
|
|
1532
1289
|
6,
|
|
1533
|
-
|
|
1534
|
-
7,
|
|
1535
|
-
"std",
|
|
1536
|
-
"textureLoad"
|
|
1537
|
-
],
|
|
1290
|
+
"std.textureLoad",
|
|
1538
1291
|
[
|
|
1539
1292
|
[
|
|
1540
1293
|
7,
|
|
@@ -1547,26 +1300,14 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1547
1300
|
],
|
|
1548
1301
|
[
|
|
1549
1302
|
6,
|
|
1550
|
-
|
|
1551
|
-
7,
|
|
1552
|
-
"d",
|
|
1553
|
-
"vec2u"
|
|
1554
|
-
],
|
|
1303
|
+
"d.vec2u",
|
|
1555
1304
|
[[
|
|
1556
1305
|
6,
|
|
1557
|
-
|
|
1558
|
-
7,
|
|
1559
|
-
"d",
|
|
1560
|
-
"u32"
|
|
1561
|
-
],
|
|
1306
|
+
"d.u32",
|
|
1562
1307
|
["sampleX"]
|
|
1563
1308
|
], [
|
|
1564
1309
|
6,
|
|
1565
|
-
|
|
1566
|
-
7,
|
|
1567
|
-
"d",
|
|
1568
|
-
"u32"
|
|
1569
|
-
],
|
|
1310
|
+
"d.u32",
|
|
1570
1311
|
["inputCyI"]
|
|
1571
1312
|
]]
|
|
1572
1313
|
],
|
|
@@ -1617,11 +1358,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1617
1358
|
],
|
|
1618
1359
|
[
|
|
1619
1360
|
6,
|
|
1620
|
-
|
|
1621
|
-
7,
|
|
1622
|
-
"std",
|
|
1623
|
-
"textureStore"
|
|
1624
|
-
],
|
|
1361
|
+
"std.textureStore",
|
|
1625
1362
|
[
|
|
1626
1363
|
[
|
|
1627
1364
|
7,
|
|
@@ -1634,11 +1371,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1634
1371
|
],
|
|
1635
1372
|
[
|
|
1636
1373
|
6,
|
|
1637
|
-
|
|
1638
|
-
7,
|
|
1639
|
-
"d",
|
|
1640
|
-
"vec2u"
|
|
1641
|
-
],
|
|
1374
|
+
"d.vec2u",
|
|
1642
1375
|
["cx", "cy"]
|
|
1643
1376
|
],
|
|
1644
1377
|
"sum"
|
|
@@ -1646,32 +1379,29 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1646
1379
|
]
|
|
1647
1380
|
]]
|
|
1648
1381
|
]
|
|
1649
|
-
]]
|
|
1650
|
-
"externalNames": [
|
|
1651
|
-
"hLayout",
|
|
1652
|
-
"std",
|
|
1653
|
-
"d",
|
|
1654
|
-
"computeWidth",
|
|
1655
|
-
"computeHeight",
|
|
1656
|
-
"PASSTHROUGH_THRESHOLD",
|
|
1657
|
-
"jitterTaps",
|
|
1658
|
-
"HALF_KERNEL",
|
|
1659
|
-
"invHalf"
|
|
1660
|
-
]
|
|
1382
|
+
]]
|
|
1661
1383
|
},
|
|
1662
|
-
externals:
|
|
1663
|
-
hLayout,
|
|
1664
|
-
std:
|
|
1665
|
-
d:
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1669
|
-
|
|
1670
|
-
|
|
1671
|
-
|
|
1672
|
-
|
|
1384
|
+
externals: {
|
|
1385
|
+
"hLayout": () => hLayout,
|
|
1386
|
+
"std.textureLoad": () => textureLoad,
|
|
1387
|
+
"d.vec2u": () => vec2u,
|
|
1388
|
+
"d.f32": () => f32,
|
|
1389
|
+
"computeWidth": () => computeWidth,
|
|
1390
|
+
"computeHeight": () => computeHeight,
|
|
1391
|
+
"d.i32": () => i32,
|
|
1392
|
+
"std.clamp": () => clamp,
|
|
1393
|
+
"std.round": () => round,
|
|
1394
|
+
"PASSTHROUGH_THRESHOLD": () => PASSTHROUGH_THRESHOLD,
|
|
1395
|
+
"d.u32": () => u32,
|
|
1396
|
+
"std.textureStore": () => textureStore,
|
|
1397
|
+
"jitterTaps": () => jitterTaps,
|
|
1398
|
+
"std.fract": () => fract,
|
|
1399
|
+
"d.vec4f": () => vec4f,
|
|
1400
|
+
"HALF_KERNEL": () => HALF_KERNEL,
|
|
1401
|
+
"invHalf": () => invHalf
|
|
1402
|
+
}
|
|
1673
1403
|
}) && $.f)({})).$name("variableBlurH"),
|
|
1674
|
-
kernelV:
|
|
1404
|
+
kernelV: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
1675
1405
|
"use gpu";
|
|
1676
1406
|
const blurRadius = textureLoad(vLayout.$.blurMap, vec2u(cx, cy)).r;
|
|
1677
1407
|
if (blurRadius < PASSTHROUGH_THRESHOLD) {
|
|
@@ -1691,7 +1421,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1691
1421
|
textureStore(vLayout.$.output, vec2u(cx, cy), sum);
|
|
1692
1422
|
}
|
|
1693
1423
|
}), {
|
|
1694
|
-
v:
|
|
1424
|
+
v: 2,
|
|
1695
1425
|
name: void 0,
|
|
1696
1426
|
ast: {
|
|
1697
1427
|
"params": [{
|
|
@@ -1708,11 +1438,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1708
1438
|
7,
|
|
1709
1439
|
[
|
|
1710
1440
|
6,
|
|
1711
|
-
|
|
1712
|
-
7,
|
|
1713
|
-
"std",
|
|
1714
|
-
"textureLoad"
|
|
1715
|
-
],
|
|
1441
|
+
"std.textureLoad",
|
|
1716
1442
|
[[
|
|
1717
1443
|
7,
|
|
1718
1444
|
[
|
|
@@ -1723,11 +1449,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1723
1449
|
"blurMap"
|
|
1724
1450
|
], [
|
|
1725
1451
|
6,
|
|
1726
|
-
|
|
1727
|
-
7,
|
|
1728
|
-
"d",
|
|
1729
|
-
"vec2u"
|
|
1730
|
-
],
|
|
1452
|
+
"d.vec2u",
|
|
1731
1453
|
["cx", "cy"]
|
|
1732
1454
|
]]
|
|
1733
1455
|
],
|
|
@@ -1746,11 +1468,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1746
1468
|
"texel",
|
|
1747
1469
|
[
|
|
1748
1470
|
6,
|
|
1749
|
-
|
|
1750
|
-
7,
|
|
1751
|
-
"std",
|
|
1752
|
-
"textureLoad"
|
|
1753
|
-
],
|
|
1471
|
+
"std.textureLoad",
|
|
1754
1472
|
[[
|
|
1755
1473
|
7,
|
|
1756
1474
|
[
|
|
@@ -1761,21 +1479,13 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1761
1479
|
"src"
|
|
1762
1480
|
], [
|
|
1763
1481
|
6,
|
|
1764
|
-
|
|
1765
|
-
7,
|
|
1766
|
-
"d",
|
|
1767
|
-
"vec2u"
|
|
1768
|
-
],
|
|
1482
|
+
"d.vec2u",
|
|
1769
1483
|
["cx", "cy"]
|
|
1770
1484
|
]]
|
|
1771
1485
|
]
|
|
1772
1486
|
], [
|
|
1773
1487
|
6,
|
|
1774
|
-
|
|
1775
|
-
7,
|
|
1776
|
-
"std",
|
|
1777
|
-
"textureStore"
|
|
1778
|
-
],
|
|
1488
|
+
"std.textureStore",
|
|
1779
1489
|
[
|
|
1780
1490
|
[
|
|
1781
1491
|
7,
|
|
@@ -1788,11 +1498,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1788
1498
|
],
|
|
1789
1499
|
[
|
|
1790
1500
|
6,
|
|
1791
|
-
|
|
1792
|
-
7,
|
|
1793
|
-
"d",
|
|
1794
|
-
"vec2u"
|
|
1795
|
-
],
|
|
1501
|
+
"d.vec2u",
|
|
1796
1502
|
["cx", "cy"]
|
|
1797
1503
|
],
|
|
1798
1504
|
"texel"
|
|
@@ -1804,11 +1510,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1804
1510
|
"yi",
|
|
1805
1511
|
[
|
|
1806
1512
|
6,
|
|
1807
|
-
|
|
1808
|
-
7,
|
|
1809
|
-
"d",
|
|
1810
|
-
"i32"
|
|
1811
|
-
],
|
|
1513
|
+
"d.i32",
|
|
1812
1514
|
["cy"]
|
|
1813
1515
|
]
|
|
1814
1516
|
],
|
|
@@ -1844,33 +1546,21 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1844
1546
|
1,
|
|
1845
1547
|
[
|
|
1846
1548
|
6,
|
|
1847
|
-
|
|
1848
|
-
7,
|
|
1849
|
-
"std",
|
|
1850
|
-
"fract"
|
|
1851
|
-
],
|
|
1549
|
+
"std.fract",
|
|
1852
1550
|
[[
|
|
1853
1551
|
1,
|
|
1854
1552
|
[5, "52.9829189"],
|
|
1855
1553
|
"*",
|
|
1856
1554
|
[
|
|
1857
1555
|
6,
|
|
1858
|
-
|
|
1859
|
-
7,
|
|
1860
|
-
"std",
|
|
1861
|
-
"fract"
|
|
1862
|
-
],
|
|
1556
|
+
"std.fract",
|
|
1863
1557
|
[[
|
|
1864
1558
|
1,
|
|
1865
1559
|
[
|
|
1866
1560
|
1,
|
|
1867
1561
|
[
|
|
1868
1562
|
6,
|
|
1869
|
-
|
|
1870
|
-
7,
|
|
1871
|
-
"d",
|
|
1872
|
-
"f32"
|
|
1873
|
-
],
|
|
1563
|
+
"d.f32",
|
|
1874
1564
|
["cx"]
|
|
1875
1565
|
],
|
|
1876
1566
|
"*",
|
|
@@ -1881,11 +1571,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1881
1571
|
1,
|
|
1882
1572
|
[
|
|
1883
1573
|
6,
|
|
1884
|
-
|
|
1885
|
-
7,
|
|
1886
|
-
"d",
|
|
1887
|
-
"f32"
|
|
1888
|
-
],
|
|
1574
|
+
"d.f32",
|
|
1889
1575
|
["cy"]
|
|
1890
1576
|
],
|
|
1891
1577
|
"*",
|
|
@@ -1900,11 +1586,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1900
1586
|
],
|
|
1901
1587
|
[
|
|
1902
1588
|
6,
|
|
1903
|
-
|
|
1904
|
-
7,
|
|
1905
|
-
"d",
|
|
1906
|
-
"f32"
|
|
1907
|
-
],
|
|
1589
|
+
"d.f32",
|
|
1908
1590
|
[[5, "0"]]
|
|
1909
1591
|
]
|
|
1910
1592
|
]
|
|
@@ -1914,11 +1596,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1914
1596
|
"sum",
|
|
1915
1597
|
[
|
|
1916
1598
|
6,
|
|
1917
|
-
|
|
1918
|
-
7,
|
|
1919
|
-
"d",
|
|
1920
|
-
"vec4f"
|
|
1921
|
-
],
|
|
1599
|
+
"d.vec4f",
|
|
1922
1600
|
[
|
|
1923
1601
|
[5, "0"],
|
|
1924
1602
|
[5, "0"],
|
|
@@ -1961,11 +1639,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1961
1639
|
1,
|
|
1962
1640
|
[
|
|
1963
1641
|
6,
|
|
1964
|
-
|
|
1965
|
-
7,
|
|
1966
|
-
"d",
|
|
1967
|
-
"f32"
|
|
1968
|
-
],
|
|
1642
|
+
"d.f32",
|
|
1969
1643
|
["i"]
|
|
1970
1644
|
],
|
|
1971
1645
|
"+",
|
|
@@ -1983,11 +1657,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1983
1657
|
"sampleY",
|
|
1984
1658
|
[
|
|
1985
1659
|
6,
|
|
1986
|
-
|
|
1987
|
-
7,
|
|
1988
|
-
"std",
|
|
1989
|
-
"clamp"
|
|
1990
|
-
],
|
|
1660
|
+
"std.clamp",
|
|
1991
1661
|
[
|
|
1992
1662
|
[
|
|
1993
1663
|
1,
|
|
@@ -1995,18 +1665,10 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
1995
1665
|
"+",
|
|
1996
1666
|
[
|
|
1997
1667
|
6,
|
|
1998
|
-
|
|
1999
|
-
7,
|
|
2000
|
-
"d",
|
|
2001
|
-
"i32"
|
|
2002
|
-
],
|
|
1668
|
+
"d.i32",
|
|
2003
1669
|
[[
|
|
2004
1670
|
6,
|
|
2005
|
-
|
|
2006
|
-
7,
|
|
2007
|
-
"std",
|
|
2008
|
-
"round"
|
|
2009
|
-
],
|
|
1671
|
+
"std.round",
|
|
2010
1672
|
["offset"]
|
|
2011
1673
|
]]
|
|
2012
1674
|
]
|
|
@@ -2026,11 +1688,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
2026
1688
|
"texel",
|
|
2027
1689
|
[
|
|
2028
1690
|
6,
|
|
2029
|
-
|
|
2030
|
-
7,
|
|
2031
|
-
"std",
|
|
2032
|
-
"textureLoad"
|
|
2033
|
-
],
|
|
1691
|
+
"std.textureLoad",
|
|
2034
1692
|
[[
|
|
2035
1693
|
7,
|
|
2036
1694
|
[
|
|
@@ -2041,18 +1699,10 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
2041
1699
|
"src"
|
|
2042
1700
|
], [
|
|
2043
1701
|
6,
|
|
2044
|
-
|
|
2045
|
-
7,
|
|
2046
|
-
"d",
|
|
2047
|
-
"vec2u"
|
|
2048
|
-
],
|
|
1702
|
+
"d.vec2u",
|
|
2049
1703
|
["cx", [
|
|
2050
1704
|
6,
|
|
2051
|
-
|
|
2052
|
-
7,
|
|
2053
|
-
"d",
|
|
2054
|
-
"u32"
|
|
2055
|
-
],
|
|
1705
|
+
"d.u32",
|
|
2056
1706
|
["sampleY"]
|
|
2057
1707
|
]]
|
|
2058
1708
|
]]
|
|
@@ -2101,11 +1751,7 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
2101
1751
|
],
|
|
2102
1752
|
[
|
|
2103
1753
|
6,
|
|
2104
|
-
|
|
2105
|
-
7,
|
|
2106
|
-
"std",
|
|
2107
|
-
"textureStore"
|
|
2108
|
-
],
|
|
1754
|
+
"std.textureStore",
|
|
2109
1755
|
[
|
|
2110
1756
|
[
|
|
2111
1757
|
7,
|
|
@@ -2118,39 +1764,33 @@ function buildVariableBlurGraph(halfKernel, computeWidth, computeHeight, jitterT
|
|
|
2118
1764
|
],
|
|
2119
1765
|
[
|
|
2120
1766
|
6,
|
|
2121
|
-
|
|
2122
|
-
7,
|
|
2123
|
-
"d",
|
|
2124
|
-
"vec2u"
|
|
2125
|
-
],
|
|
1767
|
+
"d.vec2u",
|
|
2126
1768
|
["cx", "cy"]
|
|
2127
1769
|
],
|
|
2128
1770
|
"sum"
|
|
2129
1771
|
]
|
|
2130
1772
|
]
|
|
2131
1773
|
]]
|
|
2132
|
-
]]]
|
|
2133
|
-
"externalNames": [
|
|
2134
|
-
"std",
|
|
2135
|
-
"vLayout",
|
|
2136
|
-
"d",
|
|
2137
|
-
"PASSTHROUGH_THRESHOLD",
|
|
2138
|
-
"jitterTaps",
|
|
2139
|
-
"HALF_KERNEL",
|
|
2140
|
-
"invHalf",
|
|
2141
|
-
"computeHeight"
|
|
2142
|
-
]
|
|
1774
|
+
]]]
|
|
2143
1775
|
},
|
|
2144
|
-
externals:
|
|
2145
|
-
std:
|
|
2146
|
-
vLayout,
|
|
2147
|
-
d:
|
|
2148
|
-
PASSTHROUGH_THRESHOLD,
|
|
2149
|
-
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
|
|
2153
|
-
|
|
1776
|
+
externals: {
|
|
1777
|
+
"std.textureLoad": () => textureLoad,
|
|
1778
|
+
"vLayout": () => vLayout,
|
|
1779
|
+
"d.vec2u": () => vec2u,
|
|
1780
|
+
"PASSTHROUGH_THRESHOLD": () => PASSTHROUGH_THRESHOLD,
|
|
1781
|
+
"std.textureStore": () => textureStore,
|
|
1782
|
+
"d.i32": () => i32,
|
|
1783
|
+
"jitterTaps": () => jitterTaps,
|
|
1784
|
+
"std.fract": () => fract,
|
|
1785
|
+
"d.f32": () => f32,
|
|
1786
|
+
"d.vec4f": () => vec4f,
|
|
1787
|
+
"HALF_KERNEL": () => HALF_KERNEL,
|
|
1788
|
+
"invHalf": () => invHalf,
|
|
1789
|
+
"std.clamp": () => clamp,
|
|
1790
|
+
"std.round": () => round,
|
|
1791
|
+
"computeHeight": () => computeHeight,
|
|
1792
|
+
"d.u32": () => u32
|
|
1793
|
+
}
|
|
2154
1794
|
}) && $.f)({})).$name("variableBlurV"),
|
|
2155
1795
|
HParams,
|
|
2156
1796
|
VParams,
|
|
@@ -2198,7 +1838,7 @@ function createVariableGaussianBlurCompute(root, inputTexture, inputWidth, input
|
|
|
2198
1838
|
"use gpu";
|
|
2199
1839
|
kernelH(cx, cy);
|
|
2200
1840
|
}), {
|
|
2201
|
-
v:
|
|
1841
|
+
v: 2,
|
|
2202
1842
|
name: void 0,
|
|
2203
1843
|
ast: {
|
|
2204
1844
|
"params": [{
|
|
@@ -2212,16 +1852,15 @@ function createVariableGaussianBlurCompute(root, inputTexture, inputWidth, input
|
|
|
2212
1852
|
6,
|
|
2213
1853
|
"kernelH",
|
|
2214
1854
|
["cx", "cy"]
|
|
2215
|
-
]]]
|
|
2216
|
-
"externalNames": ["kernelH"]
|
|
1855
|
+
]]]
|
|
2217
1856
|
},
|
|
2218
|
-
externals: () =>
|
|
1857
|
+
externals: { "kernelH": () => kernelH }
|
|
2219
1858
|
}) && $.f)({}), { size: [computeWidth, computeHeight] });
|
|
2220
1859
|
const computeSteps = [hPipeline, createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
2221
1860
|
"use gpu";
|
|
2222
1861
|
kernelV(cx, cy);
|
|
2223
1862
|
}), {
|
|
2224
|
-
v:
|
|
1863
|
+
v: 2,
|
|
2225
1864
|
name: void 0,
|
|
2226
1865
|
ast: {
|
|
2227
1866
|
"params": [{
|
|
@@ -2235,10 +1874,9 @@ function createVariableGaussianBlurCompute(root, inputTexture, inputWidth, input
|
|
|
2235
1874
|
6,
|
|
2236
1875
|
"kernelV",
|
|
2237
1876
|
["cx", "cy"]
|
|
2238
|
-
]]]
|
|
2239
|
-
"externalNames": ["kernelV"]
|
|
1877
|
+
]]]
|
|
2240
1878
|
},
|
|
2241
|
-
externals: () =>
|
|
1879
|
+
externals: { "kernelV": () => kernelV }
|
|
2242
1880
|
}) && $.f)({}), {
|
|
2243
1881
|
size: [computeWidth, computeHeight],
|
|
2244
1882
|
bindGroup: vBindGroup
|
|
@@ -2305,11 +1943,11 @@ var mapSourceScalarCache = /* @__PURE__ */ new Map();
|
|
|
2305
1943
|
function mapSourceScalar(channel) {
|
|
2306
1944
|
const cached = mapSourceScalarCache.get(channel);
|
|
2307
1945
|
if (cached) return cached;
|
|
2308
|
-
const fn =
|
|
1946
|
+
const fn = typegpu_default.fn([vec4f], f32)(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((sample) => {
|
|
2309
1947
|
"use gpu";
|
|
2310
1948
|
return channel === "alpha" ? sample.w : channel === "alphaInverted" ? __tsover_sub(1, sample.w) : channel === "luminanceInverted" ? __tsover_sub(1, dot(sample.xyz, vec3f(.2126, .7152, .0722))) : dot(sample.xyz, vec3f(.2126, .7152, .0722));
|
|
2311
1949
|
}), {
|
|
2312
|
-
v:
|
|
1950
|
+
v: 2,
|
|
2313
1951
|
name: void 0,
|
|
2314
1952
|
ast: {
|
|
2315
1953
|
"params": [{
|
|
@@ -2361,22 +1999,14 @@ function mapSourceScalar(channel) {
|
|
|
2361
1999
|
"-",
|
|
2362
2000
|
[
|
|
2363
2001
|
6,
|
|
2364
|
-
|
|
2365
|
-
7,
|
|
2366
|
-
"std",
|
|
2367
|
-
"dot"
|
|
2368
|
-
],
|
|
2002
|
+
"std.dot",
|
|
2369
2003
|
[[
|
|
2370
2004
|
7,
|
|
2371
2005
|
"sample",
|
|
2372
2006
|
"xyz"
|
|
2373
2007
|
], [
|
|
2374
2008
|
6,
|
|
2375
|
-
|
|
2376
|
-
7,
|
|
2377
|
-
"d",
|
|
2378
|
-
"vec3f"
|
|
2379
|
-
],
|
|
2009
|
+
"d.vec3f",
|
|
2380
2010
|
[
|
|
2381
2011
|
[5, "0.2126"],
|
|
2382
2012
|
[5, "0.7152"],
|
|
@@ -2387,22 +2017,14 @@ function mapSourceScalar(channel) {
|
|
|
2387
2017
|
],
|
|
2388
2018
|
[
|
|
2389
2019
|
6,
|
|
2390
|
-
|
|
2391
|
-
7,
|
|
2392
|
-
"std",
|
|
2393
|
-
"dot"
|
|
2394
|
-
],
|
|
2020
|
+
"std.dot",
|
|
2395
2021
|
[[
|
|
2396
2022
|
7,
|
|
2397
2023
|
"sample",
|
|
2398
2024
|
"xyz"
|
|
2399
2025
|
], [
|
|
2400
2026
|
6,
|
|
2401
|
-
|
|
2402
|
-
7,
|
|
2403
|
-
"d",
|
|
2404
|
-
"vec3f"
|
|
2405
|
-
],
|
|
2027
|
+
"d.vec3f",
|
|
2406
2028
|
[
|
|
2407
2029
|
[5, "0.2126"],
|
|
2408
2030
|
[5, "0.7152"],
|
|
@@ -2412,23 +2034,18 @@ function mapSourceScalar(channel) {
|
|
|
2412
2034
|
]
|
|
2413
2035
|
]
|
|
2414
2036
|
]
|
|
2415
|
-
]]]]
|
|
2416
|
-
"externalNames": [
|
|
2417
|
-
"channel",
|
|
2418
|
-
"std",
|
|
2419
|
-
"d"
|
|
2420
|
-
]
|
|
2037
|
+
]]]]
|
|
2421
2038
|
},
|
|
2422
|
-
externals:
|
|
2423
|
-
channel,
|
|
2424
|
-
std:
|
|
2425
|
-
d:
|
|
2426
|
-
}
|
|
2039
|
+
externals: {
|
|
2040
|
+
"channel": () => channel,
|
|
2041
|
+
"std.dot": () => dot,
|
|
2042
|
+
"d.vec3f": () => vec3f
|
|
2043
|
+
}
|
|
2427
2044
|
}) && $.f)({})).$name(`mapSourceScalar_${channel}`);
|
|
2428
2045
|
mapSourceScalarCache.set(channel, fn);
|
|
2429
2046
|
return fn;
|
|
2430
2047
|
}
|
|
2431
|
-
const applyRemapWindow =
|
|
2048
|
+
const applyRemapWindow = typegpu_default.fn([
|
|
2432
2049
|
f32,
|
|
2433
2050
|
f32,
|
|
2434
2051
|
f32,
|
|
@@ -2440,7 +2057,7 @@ const applyRemapWindow = src_default.fn([
|
|
|
2440
2057
|
const inputRange = max(__tsover_sub(inputMax, inputMin), 1e-4);
|
|
2441
2058
|
return mix(outputMin, outputMax, pow(clamp(__tsover_div(__tsover_sub(raw, inputMin), inputRange), 0, 1), pow(2, __tsover_mul(-curve, 2))));
|
|
2442
2059
|
}), {
|
|
2443
|
-
v:
|
|
2060
|
+
v: 2,
|
|
2444
2061
|
name: void 0,
|
|
2445
2062
|
ast: {
|
|
2446
2063
|
"params": [
|
|
@@ -2475,11 +2092,7 @@ const applyRemapWindow = src_default.fn([
|
|
|
2475
2092
|
"inputRange",
|
|
2476
2093
|
[
|
|
2477
2094
|
6,
|
|
2478
|
-
|
|
2479
|
-
7,
|
|
2480
|
-
"std",
|
|
2481
|
-
"max"
|
|
2482
|
-
],
|
|
2095
|
+
"std.max",
|
|
2483
2096
|
[[
|
|
2484
2097
|
1,
|
|
2485
2098
|
"inputMax",
|
|
@@ -2493,11 +2106,7 @@ const applyRemapWindow = src_default.fn([
|
|
|
2493
2106
|
"normalised",
|
|
2494
2107
|
[
|
|
2495
2108
|
6,
|
|
2496
|
-
|
|
2497
|
-
7,
|
|
2498
|
-
"std",
|
|
2499
|
-
"clamp"
|
|
2500
|
-
],
|
|
2109
|
+
"std.clamp",
|
|
2501
2110
|
[
|
|
2502
2111
|
[
|
|
2503
2112
|
1,
|
|
@@ -2520,11 +2129,7 @@ const applyRemapWindow = src_default.fn([
|
|
|
2520
2129
|
"exponent",
|
|
2521
2130
|
[
|
|
2522
2131
|
6,
|
|
2523
|
-
|
|
2524
|
-
7,
|
|
2525
|
-
"std",
|
|
2526
|
-
"pow"
|
|
2527
|
-
],
|
|
2132
|
+
"std.pow",
|
|
2528
2133
|
[[5, "2"], [
|
|
2529
2134
|
1,
|
|
2530
2135
|
[
|
|
@@ -2542,31 +2147,27 @@ const applyRemapWindow = src_default.fn([
|
|
|
2542
2147
|
"eased",
|
|
2543
2148
|
[
|
|
2544
2149
|
6,
|
|
2545
|
-
|
|
2546
|
-
7,
|
|
2547
|
-
"std",
|
|
2548
|
-
"pow"
|
|
2549
|
-
],
|
|
2150
|
+
"std.pow",
|
|
2550
2151
|
["normalised", "exponent"]
|
|
2551
2152
|
]
|
|
2552
2153
|
],
|
|
2553
2154
|
[10, [
|
|
2554
2155
|
6,
|
|
2555
|
-
|
|
2556
|
-
7,
|
|
2557
|
-
"std",
|
|
2558
|
-
"mix"
|
|
2559
|
-
],
|
|
2156
|
+
"std.mix",
|
|
2560
2157
|
[
|
|
2561
2158
|
"outputMin",
|
|
2562
2159
|
"outputMax",
|
|
2563
2160
|
"eased"
|
|
2564
2161
|
]
|
|
2565
2162
|
]]
|
|
2566
|
-
]]
|
|
2567
|
-
"externalNames": ["std"]
|
|
2163
|
+
]]
|
|
2568
2164
|
},
|
|
2569
|
-
externals:
|
|
2165
|
+
externals: {
|
|
2166
|
+
"std.max": () => max,
|
|
2167
|
+
"std.clamp": () => clamp,
|
|
2168
|
+
"std.pow": () => pow,
|
|
2169
|
+
"std.mix": () => mix
|
|
2170
|
+
}
|
|
2570
2171
|
}) && $.f)({})).$name("applyRemapWindow");
|
|
2571
2172
|
function remapWindowValues(window) {
|
|
2572
2173
|
return {
|
|
@@ -2577,7 +2178,7 @@ function remapWindowValues(window) {
|
|
|
2577
2178
|
curve: window.curve
|
|
2578
2179
|
};
|
|
2579
2180
|
}
|
|
2580
|
-
const bloomExtractSoftKnee =
|
|
2181
|
+
const bloomExtractSoftKnee = typegpu_default.fn([
|
|
2581
2182
|
texture2d(f32),
|
|
2582
2183
|
u32,
|
|
2583
2184
|
u32,
|
|
@@ -2606,7 +2207,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2606
2207
|
const mask = __tsover_div(max(softCurve, __tsover_sub(lum, threshold)), max(lum, 1e-4));
|
|
2607
2208
|
return vec4f(sample.xyz.mul(mask), __tsover_mul(sample.w, mask));
|
|
2608
2209
|
}), {
|
|
2609
|
-
v:
|
|
2210
|
+
v: 2,
|
|
2610
2211
|
name: void 0,
|
|
2611
2212
|
ast: {
|
|
2612
2213
|
"params": [
|
|
@@ -2659,11 +2260,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2659
2260
|
"inputWm1",
|
|
2660
2261
|
[
|
|
2661
2262
|
6,
|
|
2662
|
-
|
|
2663
|
-
7,
|
|
2664
|
-
"d",
|
|
2665
|
-
"i32"
|
|
2666
|
-
],
|
|
2263
|
+
"d.i32",
|
|
2667
2264
|
[[
|
|
2668
2265
|
1,
|
|
2669
2266
|
"iw",
|
|
@@ -2677,11 +2274,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2677
2274
|
"inputHm1",
|
|
2678
2275
|
[
|
|
2679
2276
|
6,
|
|
2680
|
-
|
|
2681
|
-
7,
|
|
2682
|
-
"d",
|
|
2683
|
-
"i32"
|
|
2684
|
-
],
|
|
2277
|
+
"d.i32",
|
|
2685
2278
|
[[
|
|
2686
2279
|
1,
|
|
2687
2280
|
"ih",
|
|
@@ -2695,11 +2288,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2695
2288
|
"sample",
|
|
2696
2289
|
[
|
|
2697
2290
|
6,
|
|
2698
|
-
|
|
2699
|
-
7,
|
|
2700
|
-
"d",
|
|
2701
|
-
"vec4f"
|
|
2702
|
-
],
|
|
2291
|
+
"d.vec4f",
|
|
2703
2292
|
[
|
|
2704
2293
|
[5, "0"],
|
|
2705
2294
|
[5, "0"],
|
|
@@ -2754,11 +2343,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2754
2343
|
1,
|
|
2755
2344
|
[
|
|
2756
2345
|
6,
|
|
2757
|
-
|
|
2758
|
-
7,
|
|
2759
|
-
"d",
|
|
2760
|
-
"f32"
|
|
2761
|
-
],
|
|
2346
|
+
"d.f32",
|
|
2762
2347
|
["cx"]
|
|
2763
2348
|
],
|
|
2764
2349
|
"+",
|
|
@@ -2768,11 +2353,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2768
2353
|
1,
|
|
2769
2354
|
[
|
|
2770
2355
|
6,
|
|
2771
|
-
|
|
2772
|
-
7,
|
|
2773
|
-
"d",
|
|
2774
|
-
"f32"
|
|
2775
|
-
],
|
|
2356
|
+
"d.f32",
|
|
2776
2357
|
["tx"]
|
|
2777
2358
|
],
|
|
2778
2359
|
"+",
|
|
@@ -2799,11 +2380,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2799
2380
|
1,
|
|
2800
2381
|
[
|
|
2801
2382
|
6,
|
|
2802
|
-
|
|
2803
|
-
7,
|
|
2804
|
-
"d",
|
|
2805
|
-
"f32"
|
|
2806
|
-
],
|
|
2383
|
+
"d.f32",
|
|
2807
2384
|
["cy"]
|
|
2808
2385
|
],
|
|
2809
2386
|
"+",
|
|
@@ -2813,11 +2390,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2813
2390
|
1,
|
|
2814
2391
|
[
|
|
2815
2392
|
6,
|
|
2816
|
-
|
|
2817
|
-
7,
|
|
2818
|
-
"d",
|
|
2819
|
-
"f32"
|
|
2820
|
-
],
|
|
2393
|
+
"d.f32",
|
|
2821
2394
|
["ty"]
|
|
2822
2395
|
],
|
|
2823
2396
|
"+",
|
|
@@ -2840,19 +2413,11 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2840
2413
|
"sx",
|
|
2841
2414
|
[
|
|
2842
2415
|
6,
|
|
2843
|
-
|
|
2844
|
-
7,
|
|
2845
|
-
"std",
|
|
2846
|
-
"clamp"
|
|
2847
|
-
],
|
|
2416
|
+
"std.clamp",
|
|
2848
2417
|
[
|
|
2849
2418
|
[
|
|
2850
2419
|
6,
|
|
2851
|
-
|
|
2852
|
-
7,
|
|
2853
|
-
"d",
|
|
2854
|
-
"i32"
|
|
2855
|
-
],
|
|
2420
|
+
"d.i32",
|
|
2856
2421
|
[[
|
|
2857
2422
|
1,
|
|
2858
2423
|
"su",
|
|
@@ -2870,19 +2435,11 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2870
2435
|
"sy",
|
|
2871
2436
|
[
|
|
2872
2437
|
6,
|
|
2873
|
-
|
|
2874
|
-
7,
|
|
2875
|
-
"std",
|
|
2876
|
-
"clamp"
|
|
2877
|
-
],
|
|
2438
|
+
"std.clamp",
|
|
2878
2439
|
[
|
|
2879
2440
|
[
|
|
2880
2441
|
6,
|
|
2881
|
-
|
|
2882
|
-
7,
|
|
2883
|
-
"d",
|
|
2884
|
-
"i32"
|
|
2885
|
-
],
|
|
2442
|
+
"d.i32",
|
|
2886
2443
|
[[
|
|
2887
2444
|
1,
|
|
2888
2445
|
"sv",
|
|
@@ -2908,35 +2465,19 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2908
2465
|
],
|
|
2909
2466
|
[[
|
|
2910
2467
|
6,
|
|
2911
|
-
|
|
2912
|
-
7,
|
|
2913
|
-
"std",
|
|
2914
|
-
"textureLoad"
|
|
2915
|
-
],
|
|
2468
|
+
"std.textureLoad",
|
|
2916
2469
|
[
|
|
2917
2470
|
"childTexture",
|
|
2918
2471
|
[
|
|
2919
2472
|
6,
|
|
2920
|
-
|
|
2921
|
-
7,
|
|
2922
|
-
"d",
|
|
2923
|
-
"vec2u"
|
|
2924
|
-
],
|
|
2473
|
+
"d.vec2u",
|
|
2925
2474
|
[[
|
|
2926
2475
|
6,
|
|
2927
|
-
|
|
2928
|
-
7,
|
|
2929
|
-
"d",
|
|
2930
|
-
"u32"
|
|
2931
|
-
],
|
|
2476
|
+
"d.u32",
|
|
2932
2477
|
["sx"]
|
|
2933
2478
|
], [
|
|
2934
2479
|
6,
|
|
2935
|
-
|
|
2936
|
-
7,
|
|
2937
|
-
"d",
|
|
2938
|
-
"u32"
|
|
2939
|
-
],
|
|
2480
|
+
"d.u32",
|
|
2940
2481
|
["sy"]
|
|
2941
2482
|
]]
|
|
2942
2483
|
],
|
|
@@ -2982,22 +2523,14 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
2982
2523
|
"lum",
|
|
2983
2524
|
[
|
|
2984
2525
|
6,
|
|
2985
|
-
|
|
2986
|
-
7,
|
|
2987
|
-
"std",
|
|
2988
|
-
"dot"
|
|
2989
|
-
],
|
|
2526
|
+
"std.dot",
|
|
2990
2527
|
[[
|
|
2991
2528
|
7,
|
|
2992
2529
|
"sample",
|
|
2993
2530
|
"xyz"
|
|
2994
2531
|
], [
|
|
2995
2532
|
6,
|
|
2996
|
-
|
|
2997
|
-
7,
|
|
2998
|
-
"d",
|
|
2999
|
-
"vec3f"
|
|
3000
|
-
],
|
|
2533
|
+
"d.vec3f",
|
|
3001
2534
|
[
|
|
3002
2535
|
[5, "0.2126"],
|
|
3003
2536
|
[5, "0.7152"],
|
|
@@ -3011,11 +2544,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
3011
2544
|
"soft",
|
|
3012
2545
|
[
|
|
3013
2546
|
6,
|
|
3014
|
-
|
|
3015
|
-
7,
|
|
3016
|
-
"std",
|
|
3017
|
-
"clamp"
|
|
3018
|
-
],
|
|
2547
|
+
"std.clamp",
|
|
3019
2548
|
[
|
|
3020
2549
|
[
|
|
3021
2550
|
1,
|
|
@@ -3065,11 +2594,7 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
3065
2594
|
1,
|
|
3066
2595
|
[
|
|
3067
2596
|
6,
|
|
3068
|
-
|
|
3069
|
-
7,
|
|
3070
|
-
"std",
|
|
3071
|
-
"max"
|
|
3072
|
-
],
|
|
2597
|
+
"std.max",
|
|
3073
2598
|
["softCurve", [
|
|
3074
2599
|
1,
|
|
3075
2600
|
"lum",
|
|
@@ -3080,22 +2605,14 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
3080
2605
|
"/",
|
|
3081
2606
|
[
|
|
3082
2607
|
6,
|
|
3083
|
-
|
|
3084
|
-
7,
|
|
3085
|
-
"std",
|
|
3086
|
-
"max"
|
|
3087
|
-
],
|
|
2608
|
+
"std.max",
|
|
3088
2609
|
["lum", [5, "0.0001"]]
|
|
3089
2610
|
]
|
|
3090
2611
|
]
|
|
3091
2612
|
],
|
|
3092
2613
|
[10, [
|
|
3093
2614
|
6,
|
|
3094
|
-
|
|
3095
|
-
7,
|
|
3096
|
-
"d",
|
|
3097
|
-
"vec4f"
|
|
3098
|
-
],
|
|
2615
|
+
"d.vec4f",
|
|
3099
2616
|
[[
|
|
3100
2617
|
6,
|
|
3101
2618
|
[
|
|
@@ -3119,13 +2636,20 @@ const bloomExtractSoftKnee = src_default.fn([
|
|
|
3119
2636
|
"mask"
|
|
3120
2637
|
]]
|
|
3121
2638
|
]]
|
|
3122
|
-
]]
|
|
3123
|
-
"externalNames": ["d", "std"]
|
|
2639
|
+
]]
|
|
3124
2640
|
},
|
|
3125
|
-
externals:
|
|
3126
|
-
d:
|
|
3127
|
-
|
|
3128
|
-
|
|
2641
|
+
externals: {
|
|
2642
|
+
"d.i32": () => i32,
|
|
2643
|
+
"d.vec4f": () => vec4f,
|
|
2644
|
+
"d.f32": () => f32,
|
|
2645
|
+
"std.clamp": () => clamp,
|
|
2646
|
+
"std.textureLoad": () => textureLoad,
|
|
2647
|
+
"d.vec2u": () => vec2u,
|
|
2648
|
+
"d.u32": () => u32,
|
|
2649
|
+
"std.dot": () => dot,
|
|
2650
|
+
"d.vec3f": () => vec3f,
|
|
2651
|
+
"std.max": () => max
|
|
2652
|
+
}
|
|
3129
2653
|
}) && $.f)({})).$name("bloomExtractSoftKnee");
|
|
3130
2654
|
var BRIGHT_FORMAT = "rgba16float";
|
|
3131
2655
|
function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
@@ -3134,7 +2658,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3134
2658
|
size: f32,
|
|
3135
2659
|
...MAP_SOURCE_DIM_FIELDS
|
|
3136
2660
|
}), "Params");
|
|
3137
|
-
const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
2661
|
+
const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
3138
2662
|
childTexture: { texture: texture2d(f32) },
|
|
3139
2663
|
brightMap: { storageTexture: textureStorage2d(BRIGHT_FORMAT, "write-only") },
|
|
3140
2664
|
blurMap: { storageTexture: textureStorage2d(BLUR_MAP_FORMAT, "write-only") },
|
|
@@ -3142,14 +2666,14 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3142
2666
|
}), "layout");
|
|
3143
2667
|
return {
|
|
3144
2668
|
layout,
|
|
3145
|
-
kernel:
|
|
2669
|
+
kernel: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
3146
2670
|
"use gpu";
|
|
3147
2671
|
const p = layout.$.params;
|
|
3148
2672
|
const bright = bloomExtractSoftKnee(layout.$.childTexture, cx, cy, vec2f(p.inputWidth, p.inputHeight), vec2f(computeWidth, computeHeight), p.threshold);
|
|
3149
2673
|
textureStore(layout.$.brightMap, vec2u(cx, cy), bright);
|
|
3150
2674
|
textureStore(layout.$.blurMap, vec2u(cx, cy), vec4f(p.size, 0, 0, 1));
|
|
3151
2675
|
}), {
|
|
3152
|
-
v:
|
|
2676
|
+
v: 2,
|
|
3153
2677
|
name: void 0,
|
|
3154
2678
|
ast: {
|
|
3155
2679
|
"params": [{
|
|
@@ -3193,11 +2717,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3193
2717
|
"cy",
|
|
3194
2718
|
[
|
|
3195
2719
|
6,
|
|
3196
|
-
|
|
3197
|
-
7,
|
|
3198
|
-
"d",
|
|
3199
|
-
"vec2f"
|
|
3200
|
-
],
|
|
2720
|
+
"d.vec2f",
|
|
3201
2721
|
[[
|
|
3202
2722
|
7,
|
|
3203
2723
|
"p",
|
|
@@ -3210,11 +2730,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3210
2730
|
],
|
|
3211
2731
|
[
|
|
3212
2732
|
6,
|
|
3213
|
-
|
|
3214
|
-
7,
|
|
3215
|
-
"d",
|
|
3216
|
-
"vec2f"
|
|
3217
|
-
],
|
|
2733
|
+
"d.vec2f",
|
|
3218
2734
|
["computeWidth", "computeHeight"]
|
|
3219
2735
|
],
|
|
3220
2736
|
[
|
|
@@ -3227,11 +2743,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3227
2743
|
],
|
|
3228
2744
|
[
|
|
3229
2745
|
6,
|
|
3230
|
-
|
|
3231
|
-
7,
|
|
3232
|
-
"std",
|
|
3233
|
-
"textureStore"
|
|
3234
|
-
],
|
|
2746
|
+
"std.textureStore",
|
|
3235
2747
|
[
|
|
3236
2748
|
[
|
|
3237
2749
|
7,
|
|
@@ -3244,11 +2756,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3244
2756
|
],
|
|
3245
2757
|
[
|
|
3246
2758
|
6,
|
|
3247
|
-
|
|
3248
|
-
7,
|
|
3249
|
-
"d",
|
|
3250
|
-
"vec2u"
|
|
3251
|
-
],
|
|
2759
|
+
"d.vec2u",
|
|
3252
2760
|
["cx", "cy"]
|
|
3253
2761
|
],
|
|
3254
2762
|
"bright"
|
|
@@ -3256,11 +2764,7 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3256
2764
|
],
|
|
3257
2765
|
[
|
|
3258
2766
|
6,
|
|
3259
|
-
|
|
3260
|
-
7,
|
|
3261
|
-
"std",
|
|
3262
|
-
"textureStore"
|
|
3263
|
-
],
|
|
2767
|
+
"std.textureStore",
|
|
3264
2768
|
[
|
|
3265
2769
|
[
|
|
3266
2770
|
7,
|
|
@@ -3273,20 +2777,12 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3273
2777
|
],
|
|
3274
2778
|
[
|
|
3275
2779
|
6,
|
|
3276
|
-
|
|
3277
|
-
7,
|
|
3278
|
-
"d",
|
|
3279
|
-
"vec2u"
|
|
3280
|
-
],
|
|
2780
|
+
"d.vec2u",
|
|
3281
2781
|
["cx", "cy"]
|
|
3282
2782
|
],
|
|
3283
2783
|
[
|
|
3284
2784
|
6,
|
|
3285
|
-
|
|
3286
|
-
7,
|
|
3287
|
-
"d",
|
|
3288
|
-
"vec4f"
|
|
3289
|
-
],
|
|
2785
|
+
"d.vec4f",
|
|
3290
2786
|
[
|
|
3291
2787
|
[
|
|
3292
2788
|
7,
|
|
@@ -3300,24 +2796,18 @@ function buildBloomExtractGraph(computeWidth, computeHeight, kernelName) {
|
|
|
3300
2796
|
]
|
|
3301
2797
|
]
|
|
3302
2798
|
]
|
|
3303
|
-
]]
|
|
3304
|
-
"externalNames": [
|
|
3305
|
-
"layout",
|
|
3306
|
-
"bloomExtractSoftKnee",
|
|
3307
|
-
"d",
|
|
3308
|
-
"computeWidth",
|
|
3309
|
-
"computeHeight",
|
|
3310
|
-
"std"
|
|
3311
|
-
]
|
|
2799
|
+
]]
|
|
3312
2800
|
},
|
|
3313
|
-
externals:
|
|
3314
|
-
layout,
|
|
3315
|
-
bloomExtractSoftKnee,
|
|
3316
|
-
d:
|
|
3317
|
-
computeWidth,
|
|
3318
|
-
computeHeight,
|
|
3319
|
-
std:
|
|
3320
|
-
|
|
2801
|
+
externals: {
|
|
2802
|
+
"layout": () => layout,
|
|
2803
|
+
"bloomExtractSoftKnee": () => bloomExtractSoftKnee,
|
|
2804
|
+
"d.vec2f": () => vec2f,
|
|
2805
|
+
"computeWidth": () => computeWidth,
|
|
2806
|
+
"computeHeight": () => computeHeight,
|
|
2807
|
+
"std.textureStore": () => textureStore,
|
|
2808
|
+
"d.vec2u": () => vec2u,
|
|
2809
|
+
"d.vec4f": () => vec4f
|
|
2810
|
+
}
|
|
3321
2811
|
}) && $.f)({})).$name(kernelName),
|
|
3322
2812
|
Params
|
|
3323
2813
|
};
|
|
@@ -3328,7 +2818,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3328
2818
|
...MAP_SOURCE_DIM_FIELDS,
|
|
3329
2819
|
...REMAP_WINDOW_FIELDS
|
|
3330
2820
|
}), "Params");
|
|
3331
|
-
const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(
|
|
2821
|
+
const layout = /* @__PURE__ */ (globalThis.__TYPEGPU_AUTONAME__ ?? ((a) => a))(typegpu_default.bindGroupLayout({
|
|
3332
2822
|
childTexture: { texture: texture2d(f32) },
|
|
3333
2823
|
source: { texture: texture2d(f32) },
|
|
3334
2824
|
brightMap: { storageTexture: textureStorage2d(BRIGHT_FORMAT, "write-only") },
|
|
@@ -3338,7 +2828,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3338
2828
|
const channelScalar = mapSourceScalar(channel);
|
|
3339
2829
|
return {
|
|
3340
2830
|
layout,
|
|
3341
|
-
kernel:
|
|
2831
|
+
kernel: typegpu_default.fn([u32, u32])(/* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
3342
2832
|
"use gpu";
|
|
3343
2833
|
const p = layout.$.params;
|
|
3344
2834
|
const iw = p.inputWidth;
|
|
@@ -3352,7 +2842,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3352
2842
|
const radius = applyRemapWindow(channelScalar(textureLoad(layout.$.source, vec2u(u32(srcX), u32(srcY)), 0)), p.inputMin, p.inputMax, p.outputMin, p.outputMax, p.curve);
|
|
3353
2843
|
textureStore(layout.$.blurMap, vec2u(cx, cy), vec4f(radius, 0, 0, 1));
|
|
3354
2844
|
}), {
|
|
3355
|
-
v:
|
|
2845
|
+
v: 2,
|
|
3356
2846
|
name: void 0,
|
|
3357
2847
|
ast: {
|
|
3358
2848
|
"params": [{
|
|
@@ -3414,20 +2904,12 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3414
2904
|
"cy",
|
|
3415
2905
|
[
|
|
3416
2906
|
6,
|
|
3417
|
-
|
|
3418
|
-
7,
|
|
3419
|
-
"d",
|
|
3420
|
-
"vec2f"
|
|
3421
|
-
],
|
|
2907
|
+
"d.vec2f",
|
|
3422
2908
|
["iw", "ih"]
|
|
3423
2909
|
],
|
|
3424
2910
|
[
|
|
3425
2911
|
6,
|
|
3426
|
-
|
|
3427
|
-
7,
|
|
3428
|
-
"d",
|
|
3429
|
-
"vec2f"
|
|
3430
|
-
],
|
|
2912
|
+
"d.vec2f",
|
|
3431
2913
|
["computeWidth", "computeHeight"]
|
|
3432
2914
|
],
|
|
3433
2915
|
[
|
|
@@ -3440,11 +2922,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3440
2922
|
],
|
|
3441
2923
|
[
|
|
3442
2924
|
6,
|
|
3443
|
-
|
|
3444
|
-
7,
|
|
3445
|
-
"std",
|
|
3446
|
-
"textureStore"
|
|
3447
|
-
],
|
|
2925
|
+
"std.textureStore",
|
|
3448
2926
|
[
|
|
3449
2927
|
[
|
|
3450
2928
|
7,
|
|
@@ -3457,11 +2935,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3457
2935
|
],
|
|
3458
2936
|
[
|
|
3459
2937
|
6,
|
|
3460
|
-
|
|
3461
|
-
7,
|
|
3462
|
-
"d",
|
|
3463
|
-
"vec2u"
|
|
3464
|
-
],
|
|
2938
|
+
"d.vec2u",
|
|
3465
2939
|
["cx", "cy"]
|
|
3466
2940
|
],
|
|
3467
2941
|
"bright"
|
|
@@ -3476,11 +2950,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3476
2950
|
1,
|
|
3477
2951
|
[
|
|
3478
2952
|
6,
|
|
3479
|
-
|
|
3480
|
-
7,
|
|
3481
|
-
"d",
|
|
3482
|
-
"f32"
|
|
3483
|
-
],
|
|
2953
|
+
"d.f32",
|
|
3484
2954
|
["cx"]
|
|
3485
2955
|
],
|
|
3486
2956
|
"+",
|
|
@@ -3499,11 +2969,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3499
2969
|
1,
|
|
3500
2970
|
[
|
|
3501
2971
|
6,
|
|
3502
|
-
|
|
3503
|
-
7,
|
|
3504
|
-
"d",
|
|
3505
|
-
"f32"
|
|
3506
|
-
],
|
|
2972
|
+
"d.f32",
|
|
3507
2973
|
["cy"]
|
|
3508
2974
|
],
|
|
3509
2975
|
"+",
|
|
@@ -3518,26 +2984,14 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3518
2984
|
"srcX",
|
|
3519
2985
|
[
|
|
3520
2986
|
6,
|
|
3521
|
-
|
|
3522
|
-
7,
|
|
3523
|
-
"std",
|
|
3524
|
-
"clamp"
|
|
3525
|
-
],
|
|
2987
|
+
"std.clamp",
|
|
3526
2988
|
[
|
|
3527
2989
|
[
|
|
3528
2990
|
6,
|
|
3529
|
-
|
|
3530
|
-
7,
|
|
3531
|
-
"d",
|
|
3532
|
-
"i32"
|
|
3533
|
-
],
|
|
2991
|
+
"d.i32",
|
|
3534
2992
|
[[
|
|
3535
2993
|
6,
|
|
3536
|
-
|
|
3537
|
-
7,
|
|
3538
|
-
"std",
|
|
3539
|
-
"round"
|
|
3540
|
-
],
|
|
2994
|
+
"std.round",
|
|
3541
2995
|
[[
|
|
3542
2996
|
1,
|
|
3543
2997
|
"u",
|
|
@@ -3549,11 +3003,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3549
3003
|
[5, "0"],
|
|
3550
3004
|
[
|
|
3551
3005
|
6,
|
|
3552
|
-
|
|
3553
|
-
7,
|
|
3554
|
-
"d",
|
|
3555
|
-
"i32"
|
|
3556
|
-
],
|
|
3006
|
+
"d.i32",
|
|
3557
3007
|
[[
|
|
3558
3008
|
1,
|
|
3559
3009
|
"iw",
|
|
@@ -3569,26 +3019,14 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3569
3019
|
"srcY",
|
|
3570
3020
|
[
|
|
3571
3021
|
6,
|
|
3572
|
-
|
|
3573
|
-
7,
|
|
3574
|
-
"std",
|
|
3575
|
-
"clamp"
|
|
3576
|
-
],
|
|
3022
|
+
"std.clamp",
|
|
3577
3023
|
[
|
|
3578
3024
|
[
|
|
3579
3025
|
6,
|
|
3580
|
-
|
|
3581
|
-
7,
|
|
3582
|
-
"d",
|
|
3583
|
-
"i32"
|
|
3584
|
-
],
|
|
3026
|
+
"d.i32",
|
|
3585
3027
|
[[
|
|
3586
3028
|
6,
|
|
3587
|
-
|
|
3588
|
-
7,
|
|
3589
|
-
"std",
|
|
3590
|
-
"round"
|
|
3591
|
-
],
|
|
3029
|
+
"std.round",
|
|
3592
3030
|
[[
|
|
3593
3031
|
1,
|
|
3594
3032
|
"v",
|
|
@@ -3600,11 +3038,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3600
3038
|
[5, "0"],
|
|
3601
3039
|
[
|
|
3602
3040
|
6,
|
|
3603
|
-
|
|
3604
|
-
7,
|
|
3605
|
-
"d",
|
|
3606
|
-
"i32"
|
|
3607
|
-
],
|
|
3041
|
+
"d.i32",
|
|
3608
3042
|
[[
|
|
3609
3043
|
1,
|
|
3610
3044
|
"ih",
|
|
@@ -3620,11 +3054,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3620
3054
|
"mapSample",
|
|
3621
3055
|
[
|
|
3622
3056
|
6,
|
|
3623
|
-
|
|
3624
|
-
7,
|
|
3625
|
-
"std",
|
|
3626
|
-
"textureLoad"
|
|
3627
|
-
],
|
|
3057
|
+
"std.textureLoad",
|
|
3628
3058
|
[
|
|
3629
3059
|
[
|
|
3630
3060
|
7,
|
|
@@ -3637,26 +3067,14 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3637
3067
|
],
|
|
3638
3068
|
[
|
|
3639
3069
|
6,
|
|
3640
|
-
|
|
3641
|
-
7,
|
|
3642
|
-
"d",
|
|
3643
|
-
"vec2u"
|
|
3644
|
-
],
|
|
3070
|
+
"d.vec2u",
|
|
3645
3071
|
[[
|
|
3646
3072
|
6,
|
|
3647
|
-
|
|
3648
|
-
7,
|
|
3649
|
-
"d",
|
|
3650
|
-
"u32"
|
|
3651
|
-
],
|
|
3073
|
+
"d.u32",
|
|
3652
3074
|
["srcX"]
|
|
3653
3075
|
], [
|
|
3654
3076
|
6,
|
|
3655
|
-
|
|
3656
|
-
7,
|
|
3657
|
-
"d",
|
|
3658
|
-
"u32"
|
|
3659
|
-
],
|
|
3077
|
+
"d.u32",
|
|
3660
3078
|
["srcY"]
|
|
3661
3079
|
]]
|
|
3662
3080
|
],
|
|
@@ -3706,11 +3124,7 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3706
3124
|
],
|
|
3707
3125
|
[
|
|
3708
3126
|
6,
|
|
3709
|
-
|
|
3710
|
-
7,
|
|
3711
|
-
"std",
|
|
3712
|
-
"textureStore"
|
|
3713
|
-
],
|
|
3127
|
+
"std.textureStore",
|
|
3714
3128
|
[
|
|
3715
3129
|
[
|
|
3716
3130
|
7,
|
|
@@ -3723,20 +3137,12 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3723
3137
|
],
|
|
3724
3138
|
[
|
|
3725
3139
|
6,
|
|
3726
|
-
|
|
3727
|
-
7,
|
|
3728
|
-
"d",
|
|
3729
|
-
"vec2u"
|
|
3730
|
-
],
|
|
3140
|
+
"d.vec2u",
|
|
3731
3141
|
["cx", "cy"]
|
|
3732
3142
|
],
|
|
3733
3143
|
[
|
|
3734
3144
|
6,
|
|
3735
|
-
|
|
3736
|
-
7,
|
|
3737
|
-
"d",
|
|
3738
|
-
"vec4f"
|
|
3739
|
-
],
|
|
3145
|
+
"d.vec4f",
|
|
3740
3146
|
[
|
|
3741
3147
|
"radius",
|
|
3742
3148
|
[5, "0"],
|
|
@@ -3746,28 +3152,26 @@ function buildBloomExtractMapGraph(computeWidth, computeHeight, kernelName, chan
|
|
|
3746
3152
|
]
|
|
3747
3153
|
]
|
|
3748
3154
|
]
|
|
3749
|
-
]]
|
|
3750
|
-
"externalNames": [
|
|
3751
|
-
"layout",
|
|
3752
|
-
"bloomExtractSoftKnee",
|
|
3753
|
-
"d",
|
|
3754
|
-
"computeWidth",
|
|
3755
|
-
"computeHeight",
|
|
3756
|
-
"std",
|
|
3757
|
-
"applyRemapWindow",
|
|
3758
|
-
"channelScalar"
|
|
3759
|
-
]
|
|
3155
|
+
]]
|
|
3760
3156
|
},
|
|
3761
|
-
externals:
|
|
3762
|
-
layout,
|
|
3763
|
-
bloomExtractSoftKnee,
|
|
3764
|
-
d:
|
|
3765
|
-
computeWidth,
|
|
3766
|
-
computeHeight,
|
|
3767
|
-
std:
|
|
3768
|
-
|
|
3769
|
-
|
|
3770
|
-
|
|
3157
|
+
externals: {
|
|
3158
|
+
"layout": () => layout,
|
|
3159
|
+
"bloomExtractSoftKnee": () => bloomExtractSoftKnee,
|
|
3160
|
+
"d.vec2f": () => vec2f,
|
|
3161
|
+
"computeWidth": () => computeWidth,
|
|
3162
|
+
"computeHeight": () => computeHeight,
|
|
3163
|
+
"std.textureStore": () => textureStore,
|
|
3164
|
+
"d.vec2u": () => vec2u,
|
|
3165
|
+
"d.f32": () => f32,
|
|
3166
|
+
"std.clamp": () => clamp,
|
|
3167
|
+
"d.i32": () => i32,
|
|
3168
|
+
"std.round": () => round,
|
|
3169
|
+
"std.textureLoad": () => textureLoad,
|
|
3170
|
+
"d.u32": () => u32,
|
|
3171
|
+
"applyRemapWindow": () => applyRemapWindow,
|
|
3172
|
+
"channelScalar": () => channelScalar,
|
|
3173
|
+
"d.vec4f": () => vec4f
|
|
3174
|
+
}
|
|
3771
3175
|
}) && $.f)({})).$name(kernelName),
|
|
3772
3176
|
Params
|
|
3773
3177
|
};
|
|
@@ -3838,7 +3242,7 @@ function withVariableBlurCompute(params, config) {
|
|
|
3838
3242
|
"use gpu";
|
|
3839
3243
|
fill.kernel(cx, cy);
|
|
3840
3244
|
}), {
|
|
3841
|
-
v:
|
|
3245
|
+
v: 2,
|
|
3842
3246
|
name: void 0,
|
|
3843
3247
|
ast: {
|
|
3844
3248
|
"params": [{
|
|
@@ -3850,21 +3254,16 @@ function withVariableBlurCompute(params, config) {
|
|
|
3850
3254
|
}],
|
|
3851
3255
|
"body": [0, [[
|
|
3852
3256
|
6,
|
|
3853
|
-
|
|
3854
|
-
7,
|
|
3855
|
-
"fill",
|
|
3856
|
-
"kernel"
|
|
3857
|
-
],
|
|
3257
|
+
"fill.kernel",
|
|
3858
3258
|
["cx", "cy"]
|
|
3859
|
-
]]]
|
|
3860
|
-
"externalNames": ["fill"]
|
|
3259
|
+
]]]
|
|
3861
3260
|
},
|
|
3862
|
-
externals: () =>
|
|
3261
|
+
externals: { "fill.kernel": () => fill.kernel }
|
|
3863
3262
|
}) && $.f)({}), fillStepOpts) : createGuardedCompute(root, /* @__PURE__ */ (($) => (globalThis.__TYPEGPU_META__ ??= /* @__PURE__ */ new WeakMap()).set($.f = ((cx, cy) => {
|
|
3864
3263
|
"use gpu";
|
|
3865
3264
|
fill.kernel(cx, cy);
|
|
3866
3265
|
}), {
|
|
3867
|
-
v:
|
|
3266
|
+
v: 2,
|
|
3868
3267
|
name: void 0,
|
|
3869
3268
|
ast: {
|
|
3870
3269
|
"params": [{
|
|
@@ -3876,16 +3275,11 @@ function withVariableBlurCompute(params, config) {
|
|
|
3876
3275
|
}],
|
|
3877
3276
|
"body": [0, [[
|
|
3878
3277
|
6,
|
|
3879
|
-
|
|
3880
|
-
7,
|
|
3881
|
-
"fill",
|
|
3882
|
-
"kernel"
|
|
3883
|
-
],
|
|
3278
|
+
"fill.kernel",
|
|
3884
3279
|
["cx", "cy"]
|
|
3885
|
-
]]]
|
|
3886
|
-
"externalNames": ["fill"]
|
|
3280
|
+
]]]
|
|
3887
3281
|
},
|
|
3888
|
-
externals: () =>
|
|
3282
|
+
externals: { "fill.kernel": () => fill.kernel }
|
|
3889
3283
|
}) && $.f)({}), {
|
|
3890
3284
|
...fillStepOpts,
|
|
3891
3285
|
bindGroup: root.createBindGroup(fill.layout, {
|
|
@@ -3954,7 +3348,7 @@ function withBloomCompute(params, config) {
|
|
|
3954
3348
|
"use gpu";
|
|
3955
3349
|
graph.kernel(cx, cy);
|
|
3956
3350
|
}), {
|
|
3957
|
-
v:
|
|
3351
|
+
v: 2,
|
|
3958
3352
|
name: void 0,
|
|
3959
3353
|
ast: {
|
|
3960
3354
|
"params": [{
|
|
@@ -3966,16 +3360,11 @@ function withBloomCompute(params, config) {
|
|
|
3966
3360
|
}],
|
|
3967
3361
|
"body": [0, [[
|
|
3968
3362
|
6,
|
|
3969
|
-
|
|
3970
|
-
7,
|
|
3971
|
-
"graph",
|
|
3972
|
-
"kernel"
|
|
3973
|
-
],
|
|
3363
|
+
"graph.kernel",
|
|
3974
3364
|
["cx", "cy"]
|
|
3975
|
-
]]]
|
|
3976
|
-
"externalNames": ["graph"]
|
|
3365
|
+
]]]
|
|
3977
3366
|
},
|
|
3978
|
-
externals: () =>
|
|
3367
|
+
externals: { "graph.kernel": () => graph.kernel }
|
|
3979
3368
|
}) && $.f)({}), { size: [res.width, res.height] });
|
|
3980
3369
|
return {
|
|
3981
3370
|
outputs: {
|
|
@@ -4023,4 +3412,4 @@ function composeBlurredOverSharp(params, compose, options) {
|
|
|
4023
3412
|
const sharpSample = sharp.sample(ctx.uv);
|
|
4024
3413
|
return call(unpremultiplyAlpha, "unpremultiplyAlpha", [compose(blurred.sample(ctx.uv), sharpSample)]);
|
|
4025
3414
|
}
|
|
4026
|
-
export {
|
|
3415
|
+
export { withVariableBlurCompute as _, REMAP_WINDOW_FIELDS as a, buildBloomExtractMapGraph as c, gaussianTapWeights as d, mapSourceScalar as f, withFixedBlurCompute as g, withBloomCompute as h, MAP_SOURCE_DIM_FIELDS as i, composeBlurredOverSharp as l, unrolledTapGather as m, DEFAULT_COMPUTE_HEIGHT as n, applyRemapWindow as o, remapWindowValues as p, DEFAULT_COMPUTE_WIDTH as r, buildBloomExtractGraph as s, BLUR_MAP_FORMAT as t, createGaussianBlurCompute as u };
|