@flighthq/render-wgpu 0.5.1-next.973.788d3d7 → 0.6.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (407) hide show
  1. package/README.md +2 -2
  2. package/dist/.tsbuildinfo.compressed-texture-decoder-contract +1 -0
  3. package/dist/.tsbuildinfo.contract +1 -0
  4. package/dist/.tsbuildinfo.runtime +1 -0
  5. package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.d.ts +3 -0
  6. package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.d.ts.map +1 -0
  7. package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.js +2 -0
  8. package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.js.map +1 -0
  9. package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.d.ts +2 -0
  10. package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.d.ts.map +1 -0
  11. package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.js +2 -0
  12. package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.js.map +1 -0
  13. package/dist/contract.d.ts +32 -34
  14. package/dist/contract.d.ts.map +1 -1
  15. package/dist/contract.js +32 -34
  16. package/dist/contract.js.map +1 -1
  17. package/dist/contract.render-wgpu-types.d.ts +55 -0
  18. package/dist/contract.render-wgpu-types.d.ts.map +1 -0
  19. package/dist/contract.render-wgpu-types.js +5 -0
  20. package/dist/contract.render-wgpu-types.js.map +1 -0
  21. package/dist/enableWgpuTextureResolverGuards.d.ts +3 -2
  22. package/dist/enableWgpuTextureResolverGuards.d.ts.map +1 -1
  23. package/dist/enableWgpuTextureResolverGuards.js +12 -9
  24. package/dist/enableWgpuTextureResolverGuards.js.map +1 -1
  25. package/dist/explainWgpuTextureResolution.d.ts +2 -1
  26. package/dist/explainWgpuTextureResolution.d.ts.map +1 -1
  27. package/dist/explainWgpuTextureResolution.js +2 -5
  28. package/dist/explainWgpuTextureResolution.js.map +1 -1
  29. package/dist/explainWgpuUniformEndianness.d.ts +3 -0
  30. package/dist/explainWgpuUniformEndianness.d.ts.map +1 -0
  31. package/dist/explainWgpuUniformEndianness.js +25 -0
  32. package/dist/explainWgpuUniformEndianness.js.map +1 -0
  33. package/dist/index.d.ts +20 -1
  34. package/dist/index.d.ts.map +1 -1
  35. package/dist/index.js +20 -1
  36. package/dist/index.js.map +1 -1
  37. package/dist/types/Host.d.ts +5 -0
  38. package/dist/types/Host.d.ts.map +1 -0
  39. package/dist/types/Host.js +2 -0
  40. package/dist/types/Host.js.map +1 -0
  41. package/dist/types/WgpuAdapter.d.ts +14 -0
  42. package/dist/types/WgpuAdapter.d.ts.map +1 -0
  43. package/dist/types/WgpuAdapter.js +2 -0
  44. package/dist/types/WgpuAdapter.js.map +1 -0
  45. package/dist/types/WgpuAdapterCapabilities.d.ts +7 -0
  46. package/dist/types/WgpuAdapterCapabilities.d.ts.map +1 -0
  47. package/dist/types/WgpuAdapterCapabilities.js +2 -0
  48. package/dist/types/WgpuAdapterCapabilities.js.map +1 -0
  49. package/dist/types/WgpuBindGroup.d.ts +23 -0
  50. package/dist/types/WgpuBindGroup.d.ts.map +1 -0
  51. package/dist/types/WgpuBindGroup.js +2 -0
  52. package/dist/types/WgpuBindGroup.js.map +1 -0
  53. package/dist/types/WgpuBindGroupLayout.d.ts +45 -0
  54. package/dist/types/WgpuBindGroupLayout.d.ts.map +1 -0
  55. package/dist/types/WgpuBindGroupLayout.js +7 -0
  56. package/dist/types/WgpuBindGroupLayout.js.map +1 -0
  57. package/dist/types/WgpuBuffer.d.ts +34 -0
  58. package/dist/types/WgpuBuffer.d.ts.map +1 -0
  59. package/dist/types/WgpuBuffer.js +19 -0
  60. package/dist/types/WgpuBuffer.js.map +1 -0
  61. package/dist/types/WgpuCanvasContext.d.ts +17 -0
  62. package/dist/types/WgpuCanvasContext.d.ts.map +1 -0
  63. package/dist/types/WgpuCanvasContext.js +2 -0
  64. package/dist/types/WgpuCanvasContext.js.map +1 -0
  65. package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts +14 -0
  66. package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts.map +1 -0
  67. package/dist/types/WgpuColorAdjustmentMaterialFeature.js +2 -0
  68. package/dist/types/WgpuColorAdjustmentMaterialFeature.js.map +1 -0
  69. package/dist/types/WgpuCommandBuffer.d.ts +5 -0
  70. package/dist/types/WgpuCommandBuffer.d.ts.map +1 -0
  71. package/dist/types/WgpuCommandBuffer.js +2 -0
  72. package/dist/types/WgpuCommandBuffer.js.map +1 -0
  73. package/dist/types/WgpuCommandEncoder.d.ts +12 -0
  74. package/dist/types/WgpuCommandEncoder.d.ts.map +1 -0
  75. package/dist/types/WgpuCommandEncoder.js +2 -0
  76. package/dist/types/WgpuCommandEncoder.js.map +1 -0
  77. package/dist/types/WgpuCompressedTextureSupport.d.ts +6 -0
  78. package/dist/types/WgpuCompressedTextureSupport.d.ts.map +1 -0
  79. package/dist/types/WgpuCompressedTextureSupport.js +2 -0
  80. package/dist/types/WgpuCompressedTextureSupport.js.map +1 -0
  81. package/dist/types/WgpuCompressedTextureUploader.d.ts +6 -0
  82. package/dist/types/WgpuCompressedTextureUploader.d.ts.map +1 -0
  83. package/dist/types/WgpuCompressedTextureUploader.js +2 -0
  84. package/dist/types/WgpuCompressedTextureUploader.js.map +1 -0
  85. package/dist/types/WgpuCustomMaterialShaderSource.d.ts +2 -0
  86. package/dist/types/WgpuCustomMaterialShaderSource.d.ts.map +1 -0
  87. package/dist/types/WgpuCustomMaterialShaderSource.js +2 -0
  88. package/dist/types/WgpuCustomMaterialShaderSource.js.map +1 -0
  89. package/dist/types/WgpuDevice.d.ts +76 -0
  90. package/dist/types/WgpuDevice.d.ts.map +1 -0
  91. package/dist/types/WgpuDevice.js +2 -0
  92. package/dist/types/WgpuDevice.js.map +1 -0
  93. package/dist/types/WgpuDeviceRuntime.d.ts +53 -0
  94. package/dist/types/WgpuDeviceRuntime.d.ts.map +1 -0
  95. package/dist/types/WgpuDeviceRuntime.js +2 -0
  96. package/dist/types/WgpuDeviceRuntime.js.map +1 -0
  97. package/dist/types/WgpuDeviceSignals.d.ts +6 -0
  98. package/dist/types/WgpuDeviceSignals.d.ts.map +1 -0
  99. package/dist/types/WgpuDeviceSignals.js +2 -0
  100. package/dist/types/WgpuDeviceSignals.js.map +1 -0
  101. package/dist/types/WgpuDeviceState.d.ts +7 -0
  102. package/dist/types/WgpuDeviceState.d.ts.map +1 -0
  103. package/dist/types/WgpuDeviceState.js +2 -0
  104. package/dist/types/WgpuDeviceState.js.map +1 -0
  105. package/dist/types/WgpuEffectState.d.ts +19 -0
  106. package/dist/types/WgpuEffectState.d.ts.map +1 -0
  107. package/dist/types/WgpuEffectState.js +2 -0
  108. package/dist/types/WgpuEffectState.js.map +1 -0
  109. package/dist/types/WgpuExternalImageSource.d.ts +18 -0
  110. package/dist/types/WgpuExternalImageSource.d.ts.map +1 -0
  111. package/dist/types/WgpuExternalImageSource.js +2 -0
  112. package/dist/types/WgpuExternalImageSource.js.map +1 -0
  113. package/dist/types/WgpuFullscreenPipeline.d.ts +14 -0
  114. package/dist/types/WgpuFullscreenPipeline.d.ts.map +1 -0
  115. package/dist/types/WgpuFullscreenPipeline.js +2 -0
  116. package/dist/types/WgpuFullscreenPipeline.js.map +1 -0
  117. package/dist/types/WgpuGpu.d.ts +7 -0
  118. package/dist/types/WgpuGpu.d.ts.map +1 -0
  119. package/dist/types/WgpuGpu.js +2 -0
  120. package/dist/types/WgpuGpu.js.map +1 -0
  121. package/dist/types/WgpuHost.d.ts +44 -0
  122. package/dist/types/WgpuHost.d.ts.map +1 -0
  123. package/dist/types/WgpuHost.js +2 -0
  124. package/dist/types/WgpuHost.js.map +1 -0
  125. package/dist/types/WgpuMeshMaterialRenderer.d.ts +11 -0
  126. package/dist/types/WgpuMeshMaterialRenderer.d.ts.map +1 -0
  127. package/dist/types/WgpuMeshMaterialRenderer.js +2 -0
  128. package/dist/types/WgpuMeshMaterialRenderer.js.map +1 -0
  129. package/dist/types/WgpuModifierSnippet.d.ts +16 -0
  130. package/dist/types/WgpuModifierSnippet.d.ts.map +1 -0
  131. package/dist/types/WgpuModifierSnippet.js +2 -0
  132. package/dist/types/WgpuModifierSnippet.js.map +1 -0
  133. package/dist/types/WgpuParticleResources.d.ts +12 -0
  134. package/dist/types/WgpuParticleResources.d.ts.map +1 -0
  135. package/dist/types/WgpuParticleResources.js +2 -0
  136. package/dist/types/WgpuParticleResources.js.map +1 -0
  137. package/dist/types/WgpuPipelineLayout.d.ts +8 -0
  138. package/dist/types/WgpuPipelineLayout.d.ts.map +1 -0
  139. package/dist/types/WgpuPipelineLayout.js +2 -0
  140. package/dist/types/WgpuPipelineLayout.js.map +1 -0
  141. package/dist/types/WgpuQuadBatchResources.d.ts +12 -0
  142. package/dist/types/WgpuQuadBatchResources.d.ts.map +1 -0
  143. package/dist/types/WgpuQuadBatchResources.js +2 -0
  144. package/dist/types/WgpuQuadBatchResources.js.map +1 -0
  145. package/dist/types/WgpuQuadMaterialRenderer.d.ts +9 -0
  146. package/dist/types/WgpuQuadMaterialRenderer.d.ts.map +1 -0
  147. package/dist/types/WgpuQuadMaterialRenderer.js +2 -0
  148. package/dist/types/WgpuQuadMaterialRenderer.js.map +1 -0
  149. package/dist/types/WgpuQueue.d.ts +12 -0
  150. package/dist/types/WgpuQueue.d.ts.map +1 -0
  151. package/dist/types/WgpuQueue.js +2 -0
  152. package/dist/types/WgpuQueue.js.map +1 -0
  153. package/dist/types/WgpuRenderOptions.d.ts +14 -0
  154. package/dist/types/WgpuRenderOptions.d.ts.map +1 -0
  155. package/dist/types/WgpuRenderOptions.js +2 -0
  156. package/dist/types/WgpuRenderOptions.js.map +1 -0
  157. package/dist/types/WgpuRenderPass.d.ts +31 -0
  158. package/dist/types/WgpuRenderPass.d.ts.map +1 -0
  159. package/dist/types/WgpuRenderPass.js +2 -0
  160. package/dist/types/WgpuRenderPass.js.map +1 -0
  161. package/dist/types/WgpuRenderPassEncoder.d.ts +52 -0
  162. package/dist/types/WgpuRenderPassEncoder.d.ts.map +1 -0
  163. package/dist/types/WgpuRenderPassEncoder.js +2 -0
  164. package/dist/types/WgpuRenderPassEncoder.js.map +1 -0
  165. package/dist/types/WgpuRenderPipeline.d.ts +96 -0
  166. package/dist/types/WgpuRenderPipeline.d.ts.map +1 -0
  167. package/dist/types/WgpuRenderPipeline.js +9 -0
  168. package/dist/types/WgpuRenderPipeline.js.map +1 -0
  169. package/dist/types/WgpuRenderState.d.ts +249 -0
  170. package/dist/types/WgpuRenderState.d.ts.map +1 -0
  171. package/dist/types/WgpuRenderState.js +2 -0
  172. package/dist/types/WgpuRenderState.js.map +1 -0
  173. package/dist/types/WgpuRenderStateOptions.d.ts +31 -0
  174. package/dist/types/WgpuRenderStateOptions.d.ts.map +1 -0
  175. package/dist/types/WgpuRenderStateOptions.js +2 -0
  176. package/dist/types/WgpuRenderStateOptions.js.map +1 -0
  177. package/dist/types/WgpuRenderTarget.d.ts +62 -0
  178. package/dist/types/WgpuRenderTarget.d.ts.map +1 -0
  179. package/dist/types/WgpuRenderTarget.js +2 -0
  180. package/dist/types/WgpuRenderTarget.js.map +1 -0
  181. package/dist/types/WgpuRenderTexture.d.ts +25 -0
  182. package/dist/types/WgpuRenderTexture.d.ts.map +1 -0
  183. package/dist/types/WgpuRenderTexture.js +2 -0
  184. package/dist/types/WgpuRenderTexture.js.map +1 -0
  185. package/dist/types/WgpuSampler.d.ts +19 -0
  186. package/dist/types/WgpuSampler.d.ts.map +1 -0
  187. package/dist/types/WgpuSampler.js +2 -0
  188. package/dist/types/WgpuSampler.js.map +1 -0
  189. package/dist/types/WgpuScene3DRuntime.d.ts +6 -0
  190. package/dist/types/WgpuScene3DRuntime.d.ts.map +1 -0
  191. package/dist/types/WgpuScene3DRuntime.js +2 -0
  192. package/dist/types/WgpuScene3DRuntime.js.map +1 -0
  193. package/dist/types/WgpuShaderModule.d.ts +6 -0
  194. package/dist/types/WgpuShaderModule.d.ts.map +1 -0
  195. package/dist/types/WgpuShaderModule.js +2 -0
  196. package/dist/types/WgpuShaderModule.js.map +1 -0
  197. package/dist/types/WgpuShapeMesh.d.ts +7 -0
  198. package/dist/types/WgpuShapeMesh.d.ts.map +1 -0
  199. package/dist/types/WgpuShapeMesh.js +2 -0
  200. package/dist/types/WgpuShapeMesh.js.map +1 -0
  201. package/dist/types/WgpuSkinningAdapter.d.ts +18 -0
  202. package/dist/types/WgpuSkinningAdapter.d.ts.map +1 -0
  203. package/dist/types/WgpuSkinningAdapter.js +2 -0
  204. package/dist/types/WgpuSkinningAdapter.js.map +1 -0
  205. package/dist/types/WgpuSurface.d.ts +5 -0
  206. package/dist/types/WgpuSurface.d.ts.map +1 -0
  207. package/dist/types/WgpuSurface.js +2 -0
  208. package/dist/types/WgpuSurface.js.map +1 -0
  209. package/dist/types/WgpuTexture.d.ts +58 -0
  210. package/dist/types/WgpuTexture.d.ts.map +1 -0
  211. package/dist/types/WgpuTexture.js +9 -0
  212. package/dist/types/WgpuTexture.js.map +1 -0
  213. package/dist/types/WgpuTextureFormat.d.ts +2 -0
  214. package/dist/types/WgpuTextureFormat.d.ts.map +1 -0
  215. package/dist/types/WgpuTextureFormat.js +2 -0
  216. package/dist/types/WgpuTextureFormat.js.map +1 -0
  217. package/dist/types/WgpuTextureResolver.d.ts +4 -0
  218. package/dist/types/WgpuTextureResolver.d.ts.map +1 -0
  219. package/dist/types/WgpuTextureResolver.js +2 -0
  220. package/dist/types/WgpuTextureResolver.js.map +1 -0
  221. package/dist/types/WgpuTextureView.d.ts +16 -0
  222. package/dist/types/WgpuTextureView.d.ts.map +1 -0
  223. package/dist/types/WgpuTextureView.js +2 -0
  224. package/dist/types/WgpuTextureView.js.map +1 -0
  225. package/dist/types/WgpuUniformEndianness.d.ts +7 -0
  226. package/dist/types/WgpuUniformEndianness.d.ts.map +1 -0
  227. package/dist/types/WgpuUniformEndianness.js +2 -0
  228. package/dist/types/WgpuUniformEndianness.js.map +1 -0
  229. package/dist/types/WgpuVelocityWriter.d.ts +11 -0
  230. package/dist/types/WgpuVelocityWriter.d.ts.map +1 -0
  231. package/dist/types/WgpuVelocityWriter.js +2 -0
  232. package/dist/types/WgpuVelocityWriter.js.map +1 -0
  233. package/dist/wgpuAdapterCapabilities.d.ts +2 -2
  234. package/dist/wgpuAdapterCapabilities.d.ts.map +1 -1
  235. package/dist/wgpuAdapterCapabilities.js.map +1 -1
  236. package/dist/wgpuCompressedTexture.d.ts +7 -5
  237. package/dist/wgpuCompressedTexture.d.ts.map +1 -1
  238. package/dist/wgpuCompressedTexture.js +10 -18
  239. package/dist/wgpuCompressedTexture.js.map +1 -1
  240. package/dist/wgpuDeviceLoss.d.ts +2 -2
  241. package/dist/wgpuDeviceLoss.d.ts.map +1 -1
  242. package/dist/wgpuDeviceLoss.js +1 -1
  243. package/dist/wgpuDeviceLoss.js.map +1 -1
  244. package/dist/wgpuDraw.d.ts +11 -5
  245. package/dist/wgpuDraw.d.ts.map +1 -1
  246. package/dist/wgpuDraw.js +21 -20
  247. package/dist/wgpuDraw.js.map +1 -1
  248. package/dist/wgpuExternalImageSource.d.ts +3 -2
  249. package/dist/wgpuExternalImageSource.d.ts.map +1 -1
  250. package/dist/wgpuExternalImageSource.js.map +1 -1
  251. package/dist/wgpuExternalTexture.d.ts +7 -3
  252. package/dist/wgpuExternalTexture.d.ts.map +1 -1
  253. package/dist/wgpuExternalTexture.js +5 -5
  254. package/dist/wgpuExternalTexture.js.map +1 -1
  255. package/dist/wgpuFrame.d.ts +23 -0
  256. package/dist/wgpuFrame.d.ts.map +1 -0
  257. package/dist/{wgpuBackground.js → wgpuFrame.js} +67 -122
  258. package/dist/wgpuFrame.js.map +1 -0
  259. package/dist/wgpuFullscreenPass.d.ts +5 -4
  260. package/dist/wgpuFullscreenPass.d.ts.map +1 -1
  261. package/dist/wgpuFullscreenPass.js +22 -8
  262. package/dist/wgpuFullscreenPass.js.map +1 -1
  263. package/dist/wgpuHost.d.ts +4 -7
  264. package/dist/wgpuHost.d.ts.map +1 -1
  265. package/dist/wgpuHost.js +81 -70
  266. package/dist/wgpuHost.js.map +1 -1
  267. package/dist/wgpuMipmap.d.ts +2 -2
  268. package/dist/wgpuMipmap.d.ts.map +1 -1
  269. package/dist/wgpuMipmap.js +4 -3
  270. package/dist/wgpuMipmap.js.map +1 -1
  271. package/dist/wgpuQuadMaterialRegistry.d.ts +7 -0
  272. package/dist/wgpuQuadMaterialRegistry.d.ts.map +1 -0
  273. package/dist/wgpuQuadMaterialRegistry.js +33 -0
  274. package/dist/wgpuQuadMaterialRegistry.js.map +1 -0
  275. package/dist/wgpuRenderPass.d.ts +9 -0
  276. package/dist/wgpuRenderPass.d.ts.map +1 -0
  277. package/dist/wgpuRenderPass.js +210 -0
  278. package/dist/wgpuRenderPass.js.map +1 -0
  279. package/dist/wgpuRenderState.d.ts +16 -12
  280. package/dist/wgpuRenderState.d.ts.map +1 -1
  281. package/dist/wgpuRenderState.js +104 -149
  282. package/dist/wgpuRenderState.js.map +1 -1
  283. package/dist/wgpuRenderTarget.d.ts +13 -29
  284. package/dist/wgpuRenderTarget.d.ts.map +1 -1
  285. package/dist/wgpuRenderTarget.js +20 -253
  286. package/dist/wgpuRenderTarget.js.map +1 -1
  287. package/dist/wgpuRenderTargetPool.d.ts +8 -6
  288. package/dist/wgpuRenderTargetPool.d.ts.map +1 -1
  289. package/dist/wgpuRenderTargetPool.js +9 -9
  290. package/dist/wgpuRenderTargetPool.js.map +1 -1
  291. package/dist/wgpuRenderTexture.d.ts +7 -4
  292. package/dist/wgpuRenderTexture.d.ts.map +1 -1
  293. package/dist/wgpuRenderTexture.js +15 -17
  294. package/dist/wgpuRenderTexture.js.map +1 -1
  295. package/dist/wgpuRenderTexturePool.d.ts +3 -1
  296. package/dist/wgpuRenderTexturePool.d.ts.map +1 -1
  297. package/dist/wgpuRenderTexturePool.js +5 -7
  298. package/dist/wgpuRenderTexturePool.js.map +1 -1
  299. package/dist/wgpuScissor.d.ts +3 -3
  300. package/dist/wgpuScissor.d.ts.map +1 -1
  301. package/dist/wgpuScissor.js +8 -5
  302. package/dist/wgpuScissor.js.map +1 -1
  303. package/dist/wgpuScreenAntialias.d.ts +3 -0
  304. package/dist/wgpuScreenAntialias.d.ts.map +1 -0
  305. package/dist/wgpuScreenAntialias.js +120 -0
  306. package/dist/wgpuScreenAntialias.js.map +1 -0
  307. package/dist/wgpuScreenCapture.d.ts +6 -0
  308. package/dist/wgpuScreenCapture.d.ts.map +1 -0
  309. package/dist/wgpuScreenCapture.js +138 -0
  310. package/dist/wgpuScreenCapture.js.map +1 -0
  311. package/dist/wgpuScreenRenderTarget.d.ts +11 -0
  312. package/dist/wgpuScreenRenderTarget.d.ts.map +1 -0
  313. package/dist/wgpuScreenRenderTarget.js +121 -0
  314. package/dist/wgpuScreenRenderTarget.js.map +1 -0
  315. package/dist/wgpuShader.d.ts +11 -8
  316. package/dist/wgpuShader.d.ts.map +1 -1
  317. package/dist/wgpuShader.js +11 -10
  318. package/dist/wgpuShader.js.map +1 -1
  319. package/dist/wgpuShaderBinding.d.ts +3 -1
  320. package/dist/wgpuShaderBinding.d.ts.map +1 -1
  321. package/dist/wgpuShaderBinding.js +1 -1
  322. package/dist/wgpuShaderBinding.js.map +1 -1
  323. package/dist/wgpuShaderRegistry.d.ts +1 -1
  324. package/dist/wgpuShaderRegistry.d.ts.map +1 -1
  325. package/dist/wgpuShaderRegistry.js +1 -1
  326. package/dist/wgpuShaderRegistry.js.map +1 -1
  327. package/dist/wgpuTestHelper.d.ts +11 -2
  328. package/dist/wgpuTestHelper.d.ts.map +1 -1
  329. package/dist/wgpuTestHelper.js +50 -38
  330. package/dist/wgpuTestHelper.js.map +1 -1
  331. package/dist/wgpuTextureRenderTarget.d.ts +22 -0
  332. package/dist/wgpuTextureRenderTarget.d.ts.map +1 -0
  333. package/dist/wgpuTextureRenderTarget.js +123 -0
  334. package/dist/wgpuTextureRenderTarget.js.map +1 -0
  335. package/dist/wgpuTextureResolver.d.ts +5 -1
  336. package/dist/wgpuTextureResolver.d.ts.map +1 -1
  337. package/dist/wgpuTextureResolver.js +13 -12
  338. package/dist/wgpuTextureResolver.js.map +1 -1
  339. package/dist/wgpuTextureUpload.d.ts +5 -4
  340. package/dist/wgpuTextureUpload.d.ts.map +1 -1
  341. package/dist/wgpuTextureUpload.js +1 -1
  342. package/dist/wgpuTextureUpload.js.map +1 -1
  343. package/package.json +33 -13
  344. package/src/enableWgpuTextureResolverGuards.test.ts +40 -19
  345. package/src/explainWgpuTextureResolution.test.ts +6 -6
  346. package/src/explainWgpuUniformEndianness.test.ts +11 -0
  347. package/src/types/WgpuBindGroupLayout.test.ts +9 -0
  348. package/src/types/WgpuBuffer.test.ts +26 -0
  349. package/src/types/WgpuGpu.test.ts +56 -0
  350. package/src/types/WgpuRenderPipeline.test.ts +12 -0
  351. package/src/types/WgpuTexture.test.ts +15 -0
  352. package/src/wgpuAdapterCapabilities.test.ts +5 -4
  353. package/src/wgpuCompressedTexture.test.ts +31 -37
  354. package/src/wgpuDeviceLoss.test.ts +31 -24
  355. package/src/wgpuDraw.test.ts +21 -24
  356. package/src/wgpuExternalImageSource.test.ts +12 -11
  357. package/src/wgpuExternalTexture.test.ts +7 -6
  358. package/src/{wgpuBackground.test.ts → wgpuFrame.test.ts} +47 -29
  359. package/src/wgpuFullscreenPass.test.ts +8 -8
  360. package/src/wgpuHost.test.ts +57 -186
  361. package/src/wgpuMipmap.test.ts +15 -9
  362. package/src/wgpuQuadMaterialRegistry.test.ts +132 -0
  363. package/src/wgpuRenderPass.test.ts +239 -0
  364. package/src/wgpuRenderState.test.ts +215 -550
  365. package/src/wgpuRenderTarget.test.ts +44 -220
  366. package/src/wgpuRenderTargetPool.test.ts +23 -23
  367. package/src/wgpuRenderTexture.test.ts +21 -18
  368. package/src/wgpuRenderTexturePool.test.ts +3 -3
  369. package/src/wgpuScissor.test.ts +50 -19
  370. package/src/wgpuScreenAntialias.test.ts +65 -0
  371. package/src/wgpuScreenCapture.test.ts +165 -0
  372. package/src/wgpuScreenRenderTarget.test.ts +172 -0
  373. package/src/wgpuShader.test.ts +12 -11
  374. package/src/wgpuShaderBinding.test.ts +4 -4
  375. package/src/wgpuShaderRegistry.test.ts +4 -5
  376. package/src/wgpuTestHelper.test.ts +8 -7
  377. package/src/wgpuTextureRenderTarget.test.ts +129 -0
  378. package/src/wgpuTextureResolver.test.ts +25 -14
  379. package/src/wgpuTextureUpload.test.ts +15 -10
  380. package/dist/wgpuAntialias.d.ts +0 -14
  381. package/dist/wgpuAntialias.d.ts.map +0 -1
  382. package/dist/wgpuAntialias.js +0 -155
  383. package/dist/wgpuAntialias.js.map +0 -1
  384. package/dist/wgpuBackground.d.ts +0 -20
  385. package/dist/wgpuBackground.d.ts.map +0 -1
  386. package/dist/wgpuBackground.js.map +0 -1
  387. package/dist/wgpuElement.d.ts +0 -7
  388. package/dist/wgpuElement.d.ts.map +0 -1
  389. package/dist/wgpuElement.js +0 -20
  390. package/dist/wgpuElement.js.map +0 -1
  391. package/dist/wgpuMaterialRegistry.d.ts +0 -5
  392. package/dist/wgpuMaterialRegistry.d.ts.map +0 -1
  393. package/dist/wgpuMaterialRegistry.js +0 -32
  394. package/dist/wgpuMaterialRegistry.js.map +0 -1
  395. package/dist/wgpuPipeline.d.ts +0 -6
  396. package/dist/wgpuPipeline.d.ts.map +0 -1
  397. package/dist/wgpuPipeline.js +0 -33
  398. package/dist/wgpuPipeline.js.map +0 -1
  399. package/dist/wgpuSurface.d.ts +0 -6
  400. package/dist/wgpuSurface.d.ts.map +0 -1
  401. package/dist/wgpuSurface.js +0 -155
  402. package/dist/wgpuSurface.js.map +0 -1
  403. package/src/wgpuAntialias.test.ts +0 -239
  404. package/src/wgpuElement.test.ts +0 -145
  405. package/src/wgpuMaterialRegistry.test.ts +0 -100
  406. package/src/wgpuPipeline.test.ts +0 -62
  407. package/src/wgpuSurface.test.ts +0 -141
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCommandBuffer.d.ts","sourceRoot":"","sources":["../../src/types/WgpuCommandBuffer.ts"],"names":[],"mappings":"AAEA,MAAM,MAAM,iBAAiB,GAAG,gBAAgB,CAAC;AAEjD,MAAM,WAAW,2BAA2B;IAC1C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuCommandBuffer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCommandBuffer.js","sourceRoot":"","sources":["../../src/types/WgpuCommandBuffer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { WgpuCommandBuffer, WgpuCommandBufferDescriptor } from './WgpuCommandBuffer.ts';
2
+ import type { WgpuRenderPassDescriptor, WgpuRenderPassEncoder } from './WgpuRenderPassEncoder.ts';
3
+ import type { WgpuExtent3D, WgpuTexelCopyBufferInfo, WgpuTexelCopyTextureInfo } from './WgpuTexture.ts';
4
+ export interface WgpuCommandEncoder {
5
+ beginRenderPass(descriptor: Readonly<WgpuRenderPassDescriptor>): WgpuRenderPassEncoder;
6
+ copyTextureToBuffer(source: Readonly<WgpuTexelCopyTextureInfo>, destination: Readonly<WgpuTexelCopyBufferInfo>, copySize: WgpuExtent3D): void;
7
+ finish(descriptor?: Readonly<WgpuCommandBufferDescriptor>): WgpuCommandBuffer;
8
+ }
9
+ export interface WgpuCommandEncoderDescriptor {
10
+ label?: string;
11
+ }
12
+ //# sourceMappingURL=WgpuCommandEncoder.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCommandEncoder.d.ts","sourceRoot":"","sources":["../../src/types/WgpuCommandEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,iBAAiB,EAAE,2BAA2B,EAAE,MAAM,wBAAwB,CAAC;AAC7F,OAAO,KAAK,EAAE,wBAAwB,EAAE,qBAAqB,EAAE,MAAM,4BAA4B,CAAC;AAClG,OAAO,KAAK,EAAE,YAAY,EAAE,uBAAuB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAExG,MAAM,WAAW,kBAAkB;IACjC,eAAe,CAAC,UAAU,EAAE,QAAQ,CAAC,wBAAwB,CAAC,GAAG,qBAAqB,CAAC;IACvF,mBAAmB,CACjB,MAAM,EAAE,QAAQ,CAAC,wBAAwB,CAAC,EAC1C,WAAW,EAAE,QAAQ,CAAC,uBAAuB,CAAC,EAC9C,QAAQ,EAAE,YAAY,GACrB,IAAI,CAAC;IACR,MAAM,CAAC,UAAU,CAAC,EAAE,QAAQ,CAAC,2BAA2B,CAAC,GAAG,iBAAiB,CAAC;CAC/E;AAED,MAAM,WAAW,4BAA4B;IAC3C,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuCommandEncoder.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCommandEncoder.js","sourceRoot":"","sources":["../../src/types/WgpuCommandEncoder.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ export interface WgpuCompressedTextureSupport {
2
+ astc: boolean;
3
+ bc: boolean;
4
+ etc2: boolean;
5
+ }
6
+ //# sourceMappingURL=WgpuCompressedTextureSupport.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCompressedTextureSupport.d.ts","sourceRoot":"","sources":["../../src/types/WgpuCompressedTextureSupport.ts"],"names":[],"mappings":"AAEA,MAAM,WAAW,4BAA4B;IAC3C,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,EAAE,OAAO,CAAC;IACZ,IAAI,EAAE,OAAO,CAAC;CACf"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuCompressedTextureSupport.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCompressedTextureSupport.js","sourceRoot":"","sources":["../../src/types/WgpuCompressedTextureSupport.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { CompressedImageResource } from '@flighthq/image/contract';
2
+ import type { WgpuCompressedTextureDecoder } from '@flighthq/render-wgpu/compressed-texture-decoder-contract';
3
+ import type { TextureColorSpace } from '@flighthq/texture/contract';
4
+ import type { WgpuRenderState, WgpuTextureEntry } from './WgpuRenderState.ts';
5
+ export type WgpuCompressedTextureUploader = (state: WgpuRenderState, image: Readonly<CompressedImageResource>, decode: WgpuCompressedTextureDecoder | null, colorSpace?: TextureColorSpace) => WgpuTextureEntry | null;
6
+ //# sourceMappingURL=WgpuCompressedTextureUploader.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCompressedTextureUploader.d.ts","sourceRoot":"","sources":["../../src/types/WgpuCompressedTextureUploader.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,uBAAuB,EAAE,MAAM,0BAA0B,CAAC;AACxE,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AAC9G,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,4BAA4B,CAAC;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,gBAAgB,EAAE,MAAM,sBAAsB,CAAC;AAG9E,MAAM,MAAM,6BAA6B,GAAG,CAC1C,KAAK,EAAE,eAAe,EACtB,KAAK,EAAE,QAAQ,CAAC,uBAAuB,CAAC,EACxC,MAAM,EAAE,4BAA4B,GAAG,IAAI,EAC3C,UAAU,CAAC,EAAE,iBAAiB,KAC3B,gBAAgB,GAAG,IAAI,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuCompressedTextureUploader.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCompressedTextureUploader.js","sourceRoot":"","sources":["../../src/types/WgpuCompressedTextureUploader.ts"],"names":[],"mappings":""}
@@ -0,0 +1,2 @@
1
+ export type WgpuCustomMaterialShaderSource = string;
2
+ //# sourceMappingURL=WgpuCustomMaterialShaderSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCustomMaterialShaderSource.d.ts","sourceRoot":"","sources":["../../src/types/WgpuCustomMaterialShaderSource.ts"],"names":[],"mappings":"AAMA,MAAM,MAAM,8BAA8B,GAAG,MAAM,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuCustomMaterialShaderSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuCustomMaterialShaderSource.js","sourceRoot":"","sources":["../../src/types/WgpuCustomMaterialShaderSource.ts"],"names":[],"mappings":""}
@@ -0,0 +1,76 @@
1
+ import type { WgpuBindGroup, WgpuBindGroupDescriptor } from './WgpuBindGroup.ts';
2
+ import type { WgpuBindGroupLayout, WgpuBindGroupLayoutDescriptor } from './WgpuBindGroupLayout.ts';
3
+ import type { WgpuBuffer, WgpuBufferDescriptor } from './WgpuBuffer.ts';
4
+ import type { WgpuCommandEncoder, WgpuCommandEncoderDescriptor } from './WgpuCommandEncoder.ts';
5
+ import type { WgpuPipelineLayout, WgpuPipelineLayoutDescriptor } from './WgpuPipelineLayout.ts';
6
+ import type { WgpuQueue } from './WgpuQueue.ts';
7
+ import type { WgpuRenderPipeline, WgpuRenderPipelineDescriptor } from './WgpuRenderPipeline.ts';
8
+ import type { WgpuSampler, WgpuSamplerDescriptor } from './WgpuSampler.ts';
9
+ import type { WgpuShaderModule, WgpuShaderModuleDescriptor } from './WgpuShaderModule.ts';
10
+ import type { WgpuTexture, WgpuTextureDescriptor } from './WgpuTexture.ts';
11
+ export interface WgpuDevice {
12
+ readonly features: WgpuSupportedFeatures;
13
+ readonly limits: WgpuSupportedLimits;
14
+ readonly lost: Promise<WgpuDeviceLostInfo>;
15
+ readonly queue: WgpuQueue;
16
+ createBindGroup(descriptor: Readonly<WgpuBindGroupDescriptor>): WgpuBindGroup;
17
+ createBindGroupLayout(descriptor: Readonly<WgpuBindGroupLayoutDescriptor>): WgpuBindGroupLayout;
18
+ createBuffer(descriptor: Readonly<WgpuBufferDescriptor>): WgpuBuffer;
19
+ createCommandEncoder(descriptor?: Readonly<WgpuCommandEncoderDescriptor>): WgpuCommandEncoder;
20
+ createPipelineLayout(descriptor: Readonly<WgpuPipelineLayoutDescriptor>): WgpuPipelineLayout;
21
+ createRenderPipeline(descriptor: Readonly<WgpuRenderPipelineDescriptor>): WgpuRenderPipeline;
22
+ createSampler(descriptor?: Readonly<WgpuSamplerDescriptor>): WgpuSampler;
23
+ createShaderModule(descriptor: Readonly<WgpuShaderModuleDescriptor>): WgpuShaderModule;
24
+ createTexture(descriptor: Readonly<WgpuTextureDescriptor>): WgpuTexture;
25
+ destroy(): void;
26
+ }
27
+ export interface WgpuDeviceDescriptor {
28
+ defaultQueue?: Readonly<WgpuQueueDescriptor>;
29
+ label?: string;
30
+ requiredFeatures?: readonly WgpuFeatureName[];
31
+ requiredLimits?: Readonly<Record<string, number | undefined>>;
32
+ }
33
+ export interface WgpuDeviceLostInfo {
34
+ readonly message: string;
35
+ readonly reason: WgpuDeviceLostReason;
36
+ }
37
+ export type WgpuDeviceLostReason = 'destroyed' | 'unknown';
38
+ export type WgpuFeatureName = 'bgra8unorm-storage' | 'clip-distances' | 'core-features-and-limits' | 'depth-clip-control' | 'depth32float-stencil8' | 'dual-source-blending' | 'float32-blendable' | 'float32-filterable' | 'indirect-first-instance' | 'primitive-index' | 'rg11b10ufloat-renderable' | 'shader-f16' | 'subgroups' | 'texture-component-swizzle' | 'texture-compression-astc' | 'texture-compression-astc-sliced-3d' | 'texture-compression-bc' | 'texture-compression-bc-sliced-3d' | 'texture-compression-etc2' | 'texture-formats-tier1' | 'texture-formats-tier2' | 'timestamp-query';
39
+ export interface WgpuQueueDescriptor {
40
+ label?: string;
41
+ }
42
+ export type WgpuSupportedFeatures = ReadonlySet<string>;
43
+ export interface WgpuSupportedLimits {
44
+ readonly maxBindGroups: number;
45
+ readonly maxBindGroupsPlusVertexBuffers: number;
46
+ readonly maxBindingsPerBindGroup: number;
47
+ readonly maxBufferSize: number;
48
+ readonly maxColorAttachmentBytesPerSample: number;
49
+ readonly maxColorAttachments: number;
50
+ readonly maxComputeInvocationsPerWorkgroup: number;
51
+ readonly maxComputeWorkgroupSizeX: number;
52
+ readonly maxComputeWorkgroupSizeY: number;
53
+ readonly maxComputeWorkgroupSizeZ: number;
54
+ readonly maxComputeWorkgroupStorageSize: number;
55
+ readonly maxComputeWorkgroupsPerDimension: number;
56
+ readonly maxDynamicStorageBuffersPerPipelineLayout: number;
57
+ readonly maxDynamicUniformBuffersPerPipelineLayout: number;
58
+ readonly maxInterStageShaderVariables: number;
59
+ readonly maxSampledTexturesPerShaderStage: number;
60
+ readonly maxSamplersPerShaderStage: number;
61
+ readonly maxStorageBufferBindingSize: number;
62
+ readonly maxStorageBuffersPerShaderStage: number;
63
+ readonly maxStorageTexturesPerShaderStage: number;
64
+ readonly maxTextureArrayLayers: number;
65
+ readonly maxTextureDimension1D: number;
66
+ readonly maxTextureDimension2D: number;
67
+ readonly maxTextureDimension3D: number;
68
+ readonly maxUniformBufferBindingSize: number;
69
+ readonly maxUniformBuffersPerShaderStage: number;
70
+ readonly maxVertexAttributes: number;
71
+ readonly maxVertexBufferArrayStride: number;
72
+ readonly maxVertexBuffers: number;
73
+ readonly minStorageBufferOffsetAlignment: number;
74
+ readonly minUniformBufferOffsetAlignment: number;
75
+ }
76
+ //# sourceMappingURL=WgpuDevice.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDevice.d.ts","sourceRoot":"","sources":["../../src/types/WgpuDevice.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,uBAAuB,EAAE,MAAM,oBAAoB,CAAC;AACjF,OAAO,KAAK,EAAE,mBAAmB,EAAE,6BAA6B,EAAE,MAAM,0BAA0B,CAAC;AACnG,OAAO,KAAK,EAAE,UAAU,EAAE,oBAAoB,EAAE,MAAM,iBAAiB,CAAC;AACxE,OAAO,KAAK,EAAE,kBAAkB,EAAE,4BAA4B,EAAE,MAAM,yBAAyB,CAA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M,CAAC;IAClC,QAAQ,CAAC,+BAA+B,EAAE,MAAM,CAAC;IACjD,QAAQ,CAAC,+BAA+B,EAAE,MAAM,CAAC;CAClD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuDevice.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDevice.js","sourceRoot":"","sources":["../../src/types/WgpuDevice.ts"],"names":[],"mappings":""}
@@ -0,0 +1,53 @@
1
+ import type { EntityRuntime } from '@flighthq/entity/contract';
2
+ import type { ImageResource } from '@flighthq/image/contract';
3
+ import type { ExternalTexture, RenderTexture } from '@flighthq/render/contract';
4
+ import type { TextureSource } from '@flighthq/texture/contract';
5
+ import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
6
+ import type { WgpuDevice, WgpuDeviceLostInfo } from './WgpuDevice.ts';
7
+ import type { WgpuDeviceSignals } from './WgpuDeviceSignals.ts';
8
+ import type { WgpuParticleResources } from './WgpuParticleResources.ts';
9
+ import type { WgpuQuadBatchResources } from './WgpuQuadBatchResources.ts';
10
+ import type { WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
11
+ import type { WgpuShapeMeshPipeline, WgpuTextureEntry, WgpuTextureSourceTextureEntry, WgpuVideoTextureEntry } from './WgpuRenderState.ts';
12
+ import type { WgpuRenderTextureEntry } from './WgpuRenderTexture.ts';
13
+ import type { WgpuSampler } from './WgpuSampler.ts';
14
+ import type { WgpuShaderModule } from './WgpuShaderModule.ts';
15
+ import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
16
+ export interface WgpuDeviceRuntime extends EntityRuntime {
17
+ device: WgpuDevice;
18
+ references: number;
19
+ teardowns: Array<(device: WgpuDevice) => void>;
20
+ lost: WgpuDeviceLostInfo | null;
21
+ signals: WgpuDeviceSignals | null;
22
+ resources: WgpuDeviceRuntimeResources | null;
23
+ pipelineCache: Map<string, WgpuRenderPipeline>;
24
+ samplerCache: Map<number, WgpuSampler>;
25
+ mipmapPipelineCache: Map<WgpuTextureFormat, {
26
+ bindGroupLayout: WgpuBindGroupLayout;
27
+ pipeline: WgpuRenderPipeline;
28
+ }>;
29
+ textureCache: WeakMap<CanvasImageSource, WgpuTextureEntry>;
30
+ textureSourcePremultipliedTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
31
+ textureSourcePremultipliedSrgbTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
32
+ textureSourceStraightTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
33
+ textureSourceStraightSrgbTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
34
+ videoTextureCache?: WeakMap<ImageResource, WgpuVideoTextureEntry>;
35
+ videoSrgbTextureCache?: WeakMap<ImageResource, WgpuVideoTextureEntry>;
36
+ wgpuExternalTextureCache?: WeakMap<ExternalTexture, WgpuTextureEntry>;
37
+ wgpuRenderTextureCache?: WeakMap<RenderTexture, WgpuRenderTextureEntry>;
38
+ sceneMeshUploadCache?: WeakMap<object, object> | null;
39
+ standardMaterialModule?: WgpuShaderModule;
40
+ colorScaleBiasModule?: WgpuShaderModule;
41
+ packedTintModule?: WgpuShaderModule;
42
+ colorMatrixModule?: WgpuShaderModule;
43
+ shapeMeshColorScaleBiasPipelines?: Map<string, WgpuShapeMeshPipeline>;
44
+ particleResources?: WgpuParticleResources;
45
+ quadBatchResources?: WgpuQuadBatchResources;
46
+ }
47
+ export interface WgpuDeviceRuntimeResources {
48
+ linearSampler: WgpuSampler;
49
+ nearestSampler: WgpuSampler;
50
+ textureBindGroupLayout: WgpuBindGroupLayout;
51
+ uniformBindGroupLayout: WgpuBindGroupLayout;
52
+ }
53
+ //# sourceMappingURL=WgpuDeviceRuntime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceRuntime.d.ts","sourceRoot":"","sources":["../../src/types/WgpuDeviceRuntime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,2B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EAAE,sBAAsB,CAAC;CAC7C;AAKD,MAAM,WAAW,0BAA0B;IACzC,aAAa,EAAE,WAAW,CAAC;IAC3B,cAAc,EAAE,WAAW,CAAC;IAC5B,sBAAsB,EAAE,mBAAmB,CAAC;IAC5C,sBAAsB,EAAE,mBAAmB,CAAC;CAC7C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuDeviceRuntime.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceRuntime.js","sourceRoot":"","sources":["../../src/types/WgpuDeviceRuntime.ts"],"names":[],"mappings":""}
@@ -0,0 +1,6 @@
1
+ import type { Signal } from '@flighthq/signals/contract';
2
+ import type { WgpuDeviceLostInfo } from './WgpuDevice.ts';
3
+ export interface WgpuDeviceSignals {
4
+ onDeviceLost: Signal<WgpuDeviceLostInfo>;
5
+ }
6
+ //# sourceMappingURL=WgpuDeviceSignals.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceSignals.d.ts","sourceRoot":"","sources":["../../src/types/WgpuDeviceSignals.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,iBAAiB,CAAC;AAU1D,MAAM,WAAW,iBAAiB;IAChC,YAAY,EAAE,MAAM,CAAC,kBAAkB,CAAC,CAAC;CAC1C"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuDeviceSignals.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceSignals.js","sourceRoot":"","sources":["../../src/types/WgpuDeviceSignals.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import type { WgpuDevice } from './WgpuDevice.ts';
3
+ export interface WgpuDeviceState extends EntityRaw {
4
+ [EntityRuntimeKey]: EntityRuntime | undefined;
5
+ device: WgpuDevice;
6
+ }
7
+ //# sourceMappingURL=WgpuDeviceState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceState.d.ts","sourceRoot":"","sources":["../../src/types/WgpuDeviceState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAElD,MAAM,WAAW,eAAgB,SAAQ,SAAS;IAChD,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,MAAM,EAAE,UAAU,CAAC;CACpB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuDeviceState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuDeviceState.js","sourceRoot":"","sources":["../../src/types/WgpuDeviceState.ts"],"names":[],"mappings":""}
@@ -0,0 +1,19 @@
1
+ import type { Effect } from '@flighthq/effects/contract';
2
+ import type { WgpuRenderState } from './WgpuRenderState.ts';
3
+ import type { WgpuRenderTargetPool, WgpuTextureRenderTarget } from './WgpuRenderTarget.ts';
4
+ import type { WgpuTexture } from './WgpuTexture.ts';
5
+ export interface WgpuEffectContext {
6
+ state: WgpuRenderState;
7
+ source: Readonly<WgpuTextureRenderTarget>;
8
+ dest: Readonly<WgpuTextureRenderTarget>;
9
+ pool: WgpuRenderTargetPool;
10
+ sceneDepthTexture: WgpuTexture | null;
11
+ sceneVelocityTexture: WgpuTexture | null;
12
+ }
13
+ export type WgpuEffectRunner = (ctx: Readonly<WgpuEffectContext>, effect: Readonly<Effect>) => void;
14
+ export type WgpuEffectResolver = (state: WgpuRenderState, effect: Readonly<Effect>) => boolean;
15
+ export interface WgpuEffectRegistration {
16
+ isResolvable?: WgpuEffectResolver;
17
+ runner: WgpuEffectRunner;
18
+ }
19
+ //# sourceMappingURL=WgpuEffectState.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuEffectState.d.ts","sourceRoot":"","sources":["../../src/types/WgpuEffectState.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,MAAM,EAAE,MAAM,4BAA4B,CAAC;AAEzD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,oBAAoB,EAAE,uBAAuB,EAAE,MAAM,uBAAuB,CAAC;AAC3F,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AAQpD,MAAM,WAAW,iBAAiB;IAChC,KAAK,EAAE,eAAe,CAAC;IACvB,MAAM,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IAC1C,IAAI,EAAE,QAAQ,CAAC,uBAAuB,CAAC,CAAC;IACxC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,iBAAiB,EAAE,WAAW,GAAG,IAAI,CAAC;IACtC,oBAAoB,EAAE,WAAW,GAAG,IAAI,CAAC;CAC1C;AAKD,MAAM,MAAM,gBAAgB,GAAG,CAAC,GAAG,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,IAAI,CAAC;AAEpG,MAAM,MAAM,kBAAkB,GAAG,CAAC,KAAK,EAAE,eAAe,EAAE,MAAM,EAAE,QAAQ,CAAC,MAAM,CAAC,KAAK,OAAO,CAAC;AAE/F,MAAM,WAAW,sBAAsB;IACrC,YAAY,CAAC,EAAE,kBAAkB,CAAC;IAClC,MAAM,EAAE,gBAAgB,CAAC;CAC1B"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuEffectState.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuEffectState.js","sourceRoot":"","sources":["../../src/types/WgpuEffectState.ts"],"names":[],"mappings":""}
@@ -0,0 +1,18 @@
1
+ import type { WgpuTexelCopyTextureInfo } from './WgpuTexture.ts';
2
+ export interface WgpuCopyExternalImageDestInfo extends WgpuTexelCopyTextureInfo {
3
+ colorSpace?: PredefinedColorSpace;
4
+ premultipliedAlpha?: boolean;
5
+ }
6
+ export interface WgpuCopyExternalImageSourceInfo {
7
+ flipY?: boolean;
8
+ origin?: WgpuOrigin2D;
9
+ source: WgpuExternalImageSource;
10
+ }
11
+ export type WgpuOrigin2D = readonly number[] | Readonly<WgpuOrigin2DDict>;
12
+ export interface WgpuOrigin2DDict {
13
+ x?: number;
14
+ y?: number;
15
+ }
16
+ export type WgpuExternalImageSource = GPUCopyExternalImageSource;
17
+ export type WgpuExternalTexture = GPUExternalTexture;
18
+ //# sourceMappingURL=WgpuExternalImageSource.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuExternalImageSource.d.ts","sourceRoot":"","sources":["../../src/types/WgpuExternalImageSource.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAEjE,MAAM,WAAW,6BAA8B,SAAQ,wBAAwB;IAC7E,UAAU,CAAC,EAAE,oBAAoB,CAAC;IAClC,kBAAkB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,+BAA+B;IAC9C,KAAK,CAAC,EAAE,OAAO,CAAC;IAChB,MAAM,CAAC,EAAE,YAAY,CAAC;IACtB,MAAM,EAAE,uBAAuB,CAAC;CACjC;AAED,MAAM,MAAM,YAAY,GAAG,SAAS,MAAM,EAAE,GAAG,QAAQ,CAAC,gBAAgB,CAAC,CAAC;AAE1E,MAAM,WAAW,gBAAgB;IAC/B,CAAC,CAAC,EAAE,MAAM,CAAC;IACX,CAAC,CAAC,EAAE,MAAM,CAAC;CACZ;AAKD,MAAM,MAAM,uBAAuB,GAAG,0BAA0B,CAAC;AAGjE,MAAM,MAAM,mBAAmB,GAAG,kBAAkB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuExternalImageSource.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuExternalImageSource.js","sourceRoot":"","sources":["../../src/types/WgpuExternalImageSource.ts"],"names":[],"mappings":""}
@@ -0,0 +1,14 @@
1
+ import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
2
+ import type { WgpuBindGroup } from './WgpuBindGroup.ts';
3
+ import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
4
+ import type { WgpuPipelineLayout } from './WgpuPipelineLayout.ts';
5
+ import type { WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
6
+ export interface WgpuFullscreenPipeline extends EntityRaw {
7
+ [EntityRuntimeKey]: EntityRuntime | undefined;
8
+ pipeline: WgpuRenderPipeline;
9
+ pipelineLayout: WgpuPipelineLayout;
10
+ uniformBindGroupLayout: WgpuBindGroupLayout;
11
+ textureBindGroupLayouts: ReadonlyArray<WgpuBindGroupLayout>;
12
+ emptyUniformBindGroup: WgpuBindGroup;
13
+ }
14
+ //# sourceMappingURL=WgpuFullscreenPipeline.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuFullscreenPipeline.d.ts","sourceRoot":"","sources":["../../src/types/WgpuFullscreenPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAuB,SAAQ,SAAS;IACvD,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,kBAAkB,CAAC;IAC7B,cAAc,EAAE,kBAAkB,CAAC;IACnC,sBAAsB,EAAE,mBAAmB,CAAC;IAC5C,uBAAuB,EAAE,aAAa,CAAC,mBAAmB,CAAC,CAAC;IAC5D,qBAAqB,EAAE,aAAa,CAAC;CACtC"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuFullscreenPipeline.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuFullscreenPipeline.js","sourceRoot":"","sources":["../../src/types/WgpuFullscreenPipeline.ts"],"names":[],"mappings":""}
@@ -0,0 +1,7 @@
1
+ import type { WgpuAdapter, WgpuRequestAdapterOptions } from './WgpuAdapter.ts';
2
+ import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
3
+ export interface WgpuGpu {
4
+ getPreferredCanvasFormat(): WgpuTextureFormat;
5
+ requestAdapter(options?: Readonly<WgpuRequestAdapterOptions>): Promise<WgpuAdapter | null>;
6
+ }
7
+ //# sourceMappingURL=WgpuGpu.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuGpu.d.ts","sourceRoot":"","sources":["../../src/types/WgpuGpu.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,WAAW,EAAE,yBAAyB,EAAE,MAAM,kBAAkB,CAAC;AAC/E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,MAAM,WAAW,OAAO;IACtB,wBAAwB,IAAI,iBAAiB,CAAC;IAC9C,cAAc,CAAC,OAAO,CAAC,EAAE,QAAQ,CAAC,yBAAyB,CAAC,GAAG,OAAO,CAAC,WAAW,GAAG,IAAI,CAAC,CAAC;CAC5F"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuGpu.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuGpu.js","sourceRoot":"","sources":["../../src/types/WgpuGpu.ts"],"names":[],"mappings":""}
@@ -0,0 +1,44 @@
1
+ import type { AppWindow } from '@flighthq/app/contract';
2
+ import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
3
+ import type { HostWgpuSurfaceCapability, NativeSurfaceHandle, Surface, WgpuPresentationSurface } from '@flighthq/surface/contract';
4
+ import type { WgpuPowerPreference } from './WgpuAdapter.ts';
5
+ import type { WgpuCanvasAlphaMode, WgpuCanvasContext } from './WgpuCanvasContext.ts';
6
+ import type { WgpuDevice } from './WgpuDevice.ts';
7
+ import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
8
+ export type { WgpuPresentationSurface } from '@flighthq/surface/contract';
9
+ /**
10
+ * Host lifecycle seam for allocating, acquiring, attaching, and releasing WGPU surfaces. Surface's
11
+ * factories consume its generic acquire/create/release core; render-wgpu owns the concrete shape because
12
+ * the acquisition carries a WgpuDevice, as render-gl owns HostGlCapability for its GlContext.
13
+ */
14
+ export interface HostWgpuCapability extends HostWgpuSurfaceCapability<WgpuHostAcquisition, WgpuHostAcquisitionOptions> {
15
+ acquire(surface: Readonly<Surface>, options: Readonly<WgpuHostAcquisitionOptions>): Promise<WgpuHostAcquisition>;
16
+ create(window: Readonly<AppWindow>, width: number, height: number): NativeSurfaceHandle | null;
17
+ attachSurface(surface: Readonly<Surface>, attachment: Readonly<WgpuSurfaceAttachment>): WgpuSurfaceAttachResult | null;
18
+ isSupported(): boolean;
19
+ release(acquisition: Readonly<WgpuHostAcquisition>): void;
20
+ }
21
+ /** The device, presentation context, and ownership state acquired for a WGPU surface. */
22
+ export interface WgpuHostAcquisition extends EntityRaw {
23
+ [EntityRuntimeKey]: EntityRuntime | undefined;
24
+ readonly context: WgpuCanvasContext;
25
+ readonly device: WgpuDevice;
26
+ readonly format: WgpuTextureFormat;
27
+ /** `flight` identifies handles created for Flight; `caller` identifies exact borrowed handles. */
28
+ readonly ownership: 'caller' | 'flight';
29
+ readonly surface: WgpuPresentationSurface;
30
+ }
31
+ export interface WgpuHostAcquisitionOptions {
32
+ readonly format?: WgpuTextureFormat;
33
+ readonly powerPreference?: WgpuPowerPreference;
34
+ }
35
+ export interface WgpuSurfaceAttachResult {
36
+ readonly context: WgpuCanvasContext;
37
+ readonly surface: WgpuPresentationSurface;
38
+ }
39
+ export interface WgpuSurfaceAttachment {
40
+ readonly alphaMode: WgpuCanvasAlphaMode;
41
+ readonly device: WgpuDevice;
42
+ readonly format: WgpuTextureFormat;
43
+ }
44
+ //# sourceMappingURL=WgpuHost.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuHost.d.ts","sourceRoot":"","sources":["../../src/types/WgpuHost.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,MAAM,wBAAwB,CAAC;AACxD,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAC5F,OAAO,KAAK,EACV,yBAAyB,EACzB,mBAAmB,EACnB,OAAO,EACP,uBAAuB,EACxB,MAAM,4BAA4B,CAAC;AAEpC,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,mBAAmB,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AACrF,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,YAAY,EAAE,uBAAuB,EAAE,MAAM,4BAA4B,CAAC;AAE1E;;;;GAIG;AACH,MAAM,WAAW,kBAAmB,SAAQ,yBAAyB,CAAC,mBAAmB,EAAE,0BAA0B,CAAC;IACpH,OAAO,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,EAAE,OAAO,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAAG,OAAO,CAAC,mBAAmB,CAAC,CAAC;IACjH,MAAM,CAAC,MAAM,EAAE,QAAQ,CAAC,SAAS,CAAC,EAAE,KAAK,EAAE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["../../src/types/WgpuHost.ts"],"names":[],"mappings":""}
@@ -0,0 +1,11 @@
1
+ import type { Camera3D } from '@flighthq/camera/contract';
2
+ import type { Scene3DLightBlock } from '@flighthq/lighting/contract';
3
+ import type { Material } from '@flighthq/materials/contract';
4
+ import type { MeshGeometry } from '@flighthq/meshgeometry/contract';
5
+ import type { Scene3DRenderProxy } from '@flighthq/render/contract';
6
+ import type { WgpuRenderState } from './WgpuRenderState.ts';
7
+ export interface WgpuMeshMaterialRenderer {
8
+ bind(state: WgpuRenderState, material: Readonly<Material> | null, lights: Readonly<Scene3DLightBlock>, camera: Readonly<Camera3D>): void;
9
+ draw(state: WgpuRenderState, proxy: Readonly<Scene3DRenderProxy>, geometry: Readonly<MeshGeometry>): void;
10
+ }
11
+ //# sourceMappingURL=WgpuMeshMaterialRenderer.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuMeshMaterialRenderer.d.ts","sourceRoot":"","sources":["../../src/types/WgpuMeshMaterialRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,2BAA2B,CAAC;AAC1D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,6BAA6B,CAAC;AACrE,OAAO,KAAK,EAAE,QAAQ,EAAE,MAAM,8BAA8B,CAAC;AAC7D,OAAO,KAAK,EAAE,YAAY,EAAE,MAAM,iCAAiC,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,2BAA2B,CAAC;AAEpE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAkB5D,MAAM,WAAW,wBAAwB;IAMvC,IAAI,CACF,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,EACnC,MAAM,EAAE,QAAQ,CAAC,iBAAiB,CAAC,EACnC,MAAM,EAAE,QAAQ,CAAC,QAAQ,CAAC,GACzB,IAAI,CAAC;IAMR,IAAI,CAAC,KAAK,EAAE,eAAe,EAAE,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,EAAE,QAAQ,EAAE,QAAQ,CAAC,YAAY,CAAC,GAAG,IAAI,CAAC;CAC3G"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuMeshMaterialRenderer.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuMeshMaterialRenderer.js","sourceRoot":"","sources":["../../src/types/WgpuMeshMaterialRenderer.ts"],"names":[],"mappings":""}
@@ -0,0 +1,16 @@
1
+ import type { Modifier, ModifierDefinition } from '@flighthq/shading/contract';
2
+ import type { Texture } from '@flighthq/texture/contract';
3
+ export interface WgpuModifierCompileContext {
4
+ acquireTexture(texture: Readonly<Texture>): number;
5
+ uniformBase: number;
6
+ }
7
+ export interface WgpuModifierContribution {
8
+ declarations?: string;
9
+ source: string;
10
+ }
11
+ export interface WgpuModifierSnippet extends ModifierDefinition {
12
+ bind?(modifier: Readonly<Modifier>, out: Float32Array, offset: number): void;
13
+ contribution(modifier: Readonly<Modifier>, index: number, context: Readonly<WgpuModifierCompileContext>): WgpuModifierContribution;
14
+ textures?(modifier: Readonly<Modifier>, out: (Readonly<Texture> | null)[], offset: number): number;
15
+ }
16
+ //# sourceMappingURL=WgpuModifierSnippet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuModifierSnippet.d.ts","sourceRoot":"","sources":["../../src/types/WgpuModifierSnippet.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,kBAAkB,EAAE,MAAM,4BAA4B,CAAC;AAC/E,OAAO,KAAK,EAAE,OAAO,EAAE,MAAM,4BAA4B,CAAC;AAE1D,MAAM,WAAW,0BAA0B;IACzC,cAAc,CAAC,OAAO,EAAE,QAAQ,CAAC,OAAO,CAAC,GAAG,MAAM,CAAC;IACnD,WAAW,EAAE,MAAM,CAAC;CACrB;AAED,MAAM,WAAW,wBAAwB;IACvC,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,MAAM,EAAE,MAAM,CAAC;CAChB;AAKD,MAAM,WAAW,mBAAoB,SAAQ,kBAAkB;IAC7D,IAAI,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,YAAY,EAAE,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7E,YAAY,CACV,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAC5B,KAAK,EAAE,MAAM,EACb,OAAO,EAAE,QAAQ,CAAC,0BAA0B,CAAC,GAC5C,wBAAwB,CAAC;IAG5B,QAAQ,CAAC,CAAC,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,EAAE,GAAG,EAAE,CAAC,QAAQ,CAAC,OAAO,CAAC,GAAG,IAAI,CAAC,EAAE,EAAE,MAAM,EAAE,MAAM,GAAG,MAAM,CAAC;CACpG"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuModifierSnippet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuModifierSnippet.js","sourceRoot":"","sources":["../../src/types/WgpuModifierSnippet.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
2
+ import type { WgpuPipelineLayout } from './WgpuPipelineLayout.ts';
3
+ import type { WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
4
+ import type { WgpuShaderModule } from './WgpuShaderModule.ts';
5
+ import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
6
+ export interface WgpuParticleResources {
7
+ instanceBindGroupLayout: WgpuBindGroupLayout;
8
+ module: WgpuShaderModule;
9
+ pipelineLayout: WgpuPipelineLayout;
10
+ pipelines: Map<WgpuTextureFormat, WgpuRenderPipeline>;
11
+ }
12
+ //# sourceMappingURL=WgpuParticleResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuParticleResources.d.ts","sourceRoot":"","sources":["../../src/types/WgpuParticleResources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,MAAM,WAAW,qBAAqB;IACpC,uBAAuB,EAAE,mBAAmB,CAAC;IAC7C,MAAM,EAAE,gBAAgB,CAAC;IACzB,cAAc,EAAE,kBAAkB,CAAC;IACnC,SAAS,EAAE,GAAG,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAAC;CACvD"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuParticleResources.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuParticleResources.js","sourceRoot":"","sources":["../../src/types/WgpuParticleResources.ts"],"names":[],"mappings":""}
@@ -0,0 +1,8 @@
1
+ import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
2
+ export type WgpuPipelineLayout = GPUPipelineLayout;
3
+ export interface WgpuPipelineLayoutDescriptor {
4
+ bindGroupLayouts: readonly (WgpuBindGroupLayout | null | undefined)[];
5
+ immediateSize?: number;
6
+ label?: string;
7
+ }
8
+ //# sourceMappingURL=WgpuPipelineLayout.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuPipelineLayout.d.ts","sourceRoot":"","sources":["../../src/types/WgpuPipelineLayout.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AAIpE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,MAAM,WAAW,4BAA4B;IAC3C,gBAAgB,EAAE,SAAS,CAAC,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;IACtE,aAAa,CAAC,EAAE,MAAM,CAAC;IACvB,KAAK,CAAC,EAAE,MAAM,CAAC;CAChB"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuPipelineLayout.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuPipelineLayout.js","sourceRoot":"","sources":["../../src/types/WgpuPipelineLayout.ts"],"names":[],"mappings":""}
@@ -0,0 +1,12 @@
1
+ import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
2
+ import type { WgpuPipelineLayout } from './WgpuPipelineLayout.ts';
3
+ import type { WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
4
+ import type { WgpuShaderModule } from './WgpuShaderModule.ts';
5
+ export interface WgpuQuadBatchResources {
6
+ instanceBindGroupLayout: WgpuBindGroupLayout;
7
+ materialBindGroupLayout: WgpuBindGroupLayout;
8
+ basePipelineLayout: WgpuPipelineLayout;
9
+ materialPipelineLayout: WgpuPipelineLayout;
10
+ pipelines: WeakMap<WgpuShaderModule, Map<string, WgpuRenderPipeline>>;
11
+ }
12
+ //# sourceMappingURL=WgpuQuadBatchResources.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"WgpuQuadBatchResources.d.ts","sourceRoot":"","sources":["../../src/types/WgpuQuadBatchResources.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,MAAM,WAAW,sBAAsB;IACrC,uBAAuB,EAAE,mBAAmB,CAAC;IAC7C,uBAAuB,EAAE,mBAAmB,CAAC;IAC7C,kBAAkB,EAAE,kBAAkB,CAAC;IACvC,sBAAsB,EAAE,kBAAkB,CAAC;IAE3C,SAAS,EAAE,OAAO,CAAC,gBAAgB,EAAE,GAAG,CAAC,MAAM,EAAE,kBAAkB,CAAC,CAAC,CAAC;CACvE"}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=WgpuQuadBatchResources.js.map