@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.
- package/README.md +2 -2
- package/dist/.tsbuildinfo.compressed-texture-decoder-contract +1 -0
- package/dist/.tsbuildinfo.contract +1 -0
- package/dist/.tsbuildinfo.runtime +1 -0
- package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.d.ts +3 -0
- package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.d.ts.map +1 -0
- package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.js +2 -0
- package/dist/compressed-texture-decoder-contract/WgpuCompressedTextureDecoder.js.map +1 -0
- package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.d.ts +2 -0
- package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.d.ts.map +1 -0
- package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.js +2 -0
- package/dist/compressed-texture-decoder-contract/compressedTextureDecoderContract.js.map +1 -0
- package/dist/contract.d.ts +32 -34
- package/dist/contract.d.ts.map +1 -1
- package/dist/contract.js +32 -34
- package/dist/contract.js.map +1 -1
- package/dist/contract.render-wgpu-types.d.ts +55 -0
- package/dist/contract.render-wgpu-types.d.ts.map +1 -0
- package/dist/contract.render-wgpu-types.js +5 -0
- package/dist/contract.render-wgpu-types.js.map +1 -0
- package/dist/enableWgpuTextureResolverGuards.d.ts +3 -2
- package/dist/enableWgpuTextureResolverGuards.d.ts.map +1 -1
- package/dist/enableWgpuTextureResolverGuards.js +12 -9
- package/dist/enableWgpuTextureResolverGuards.js.map +1 -1
- package/dist/explainWgpuTextureResolution.d.ts +2 -1
- package/dist/explainWgpuTextureResolution.d.ts.map +1 -1
- package/dist/explainWgpuTextureResolution.js +2 -5
- package/dist/explainWgpuTextureResolution.js.map +1 -1
- package/dist/explainWgpuUniformEndianness.d.ts +3 -0
- package/dist/explainWgpuUniformEndianness.d.ts.map +1 -0
- package/dist/explainWgpuUniformEndianness.js +25 -0
- package/dist/explainWgpuUniformEndianness.js.map +1 -0
- package/dist/index.d.ts +20 -1
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +20 -1
- package/dist/index.js.map +1 -1
- package/dist/types/Host.d.ts +5 -0
- package/dist/types/Host.d.ts.map +1 -0
- package/dist/types/Host.js +2 -0
- package/dist/types/Host.js.map +1 -0
- package/dist/types/WgpuAdapter.d.ts +14 -0
- package/dist/types/WgpuAdapter.d.ts.map +1 -0
- package/dist/types/WgpuAdapter.js +2 -0
- package/dist/types/WgpuAdapter.js.map +1 -0
- package/dist/types/WgpuAdapterCapabilities.d.ts +7 -0
- package/dist/types/WgpuAdapterCapabilities.d.ts.map +1 -0
- package/dist/types/WgpuAdapterCapabilities.js +2 -0
- package/dist/types/WgpuAdapterCapabilities.js.map +1 -0
- package/dist/types/WgpuBindGroup.d.ts +23 -0
- package/dist/types/WgpuBindGroup.d.ts.map +1 -0
- package/dist/types/WgpuBindGroup.js +2 -0
- package/dist/types/WgpuBindGroup.js.map +1 -0
- package/dist/types/WgpuBindGroupLayout.d.ts +45 -0
- package/dist/types/WgpuBindGroupLayout.d.ts.map +1 -0
- package/dist/types/WgpuBindGroupLayout.js +7 -0
- package/dist/types/WgpuBindGroupLayout.js.map +1 -0
- package/dist/types/WgpuBuffer.d.ts +34 -0
- package/dist/types/WgpuBuffer.d.ts.map +1 -0
- package/dist/types/WgpuBuffer.js +19 -0
- package/dist/types/WgpuBuffer.js.map +1 -0
- package/dist/types/WgpuCanvasContext.d.ts +17 -0
- package/dist/types/WgpuCanvasContext.d.ts.map +1 -0
- package/dist/types/WgpuCanvasContext.js +2 -0
- package/dist/types/WgpuCanvasContext.js.map +1 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts +14 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.d.ts.map +1 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.js +2 -0
- package/dist/types/WgpuColorAdjustmentMaterialFeature.js.map +1 -0
- package/dist/types/WgpuCommandBuffer.d.ts +5 -0
- package/dist/types/WgpuCommandBuffer.d.ts.map +1 -0
- package/dist/types/WgpuCommandBuffer.js +2 -0
- package/dist/types/WgpuCommandBuffer.js.map +1 -0
- package/dist/types/WgpuCommandEncoder.d.ts +12 -0
- package/dist/types/WgpuCommandEncoder.d.ts.map +1 -0
- package/dist/types/WgpuCommandEncoder.js +2 -0
- package/dist/types/WgpuCommandEncoder.js.map +1 -0
- package/dist/types/WgpuCompressedTextureSupport.d.ts +6 -0
- package/dist/types/WgpuCompressedTextureSupport.d.ts.map +1 -0
- package/dist/types/WgpuCompressedTextureSupport.js +2 -0
- package/dist/types/WgpuCompressedTextureSupport.js.map +1 -0
- package/dist/types/WgpuCompressedTextureUploader.d.ts +6 -0
- package/dist/types/WgpuCompressedTextureUploader.d.ts.map +1 -0
- package/dist/types/WgpuCompressedTextureUploader.js +2 -0
- package/dist/types/WgpuCompressedTextureUploader.js.map +1 -0
- package/dist/types/WgpuCustomMaterialShaderSource.d.ts +2 -0
- package/dist/types/WgpuCustomMaterialShaderSource.d.ts.map +1 -0
- package/dist/types/WgpuCustomMaterialShaderSource.js +2 -0
- package/dist/types/WgpuCustomMaterialShaderSource.js.map +1 -0
- package/dist/types/WgpuDevice.d.ts +76 -0
- package/dist/types/WgpuDevice.d.ts.map +1 -0
- package/dist/types/WgpuDevice.js +2 -0
- package/dist/types/WgpuDevice.js.map +1 -0
- package/dist/types/WgpuDeviceRuntime.d.ts +53 -0
- package/dist/types/WgpuDeviceRuntime.d.ts.map +1 -0
- package/dist/types/WgpuDeviceRuntime.js +2 -0
- package/dist/types/WgpuDeviceRuntime.js.map +1 -0
- package/dist/types/WgpuDeviceSignals.d.ts +6 -0
- package/dist/types/WgpuDeviceSignals.d.ts.map +1 -0
- package/dist/types/WgpuDeviceSignals.js +2 -0
- package/dist/types/WgpuDeviceSignals.js.map +1 -0
- package/dist/types/WgpuDeviceState.d.ts +7 -0
- package/dist/types/WgpuDeviceState.d.ts.map +1 -0
- package/dist/types/WgpuDeviceState.js +2 -0
- package/dist/types/WgpuDeviceState.js.map +1 -0
- package/dist/types/WgpuEffectState.d.ts +19 -0
- package/dist/types/WgpuEffectState.d.ts.map +1 -0
- package/dist/types/WgpuEffectState.js +2 -0
- package/dist/types/WgpuEffectState.js.map +1 -0
- package/dist/types/WgpuExternalImageSource.d.ts +18 -0
- package/dist/types/WgpuExternalImageSource.d.ts.map +1 -0
- package/dist/types/WgpuExternalImageSource.js +2 -0
- package/dist/types/WgpuExternalImageSource.js.map +1 -0
- package/dist/types/WgpuFullscreenPipeline.d.ts +14 -0
- package/dist/types/WgpuFullscreenPipeline.d.ts.map +1 -0
- package/dist/types/WgpuFullscreenPipeline.js +2 -0
- package/dist/types/WgpuFullscreenPipeline.js.map +1 -0
- package/dist/types/WgpuGpu.d.ts +7 -0
- package/dist/types/WgpuGpu.d.ts.map +1 -0
- package/dist/types/WgpuGpu.js +2 -0
- package/dist/types/WgpuGpu.js.map +1 -0
- package/dist/types/WgpuHost.d.ts +44 -0
- package/dist/types/WgpuHost.d.ts.map +1 -0
- package/dist/types/WgpuHost.js +2 -0
- package/dist/types/WgpuHost.js.map +1 -0
- package/dist/types/WgpuMeshMaterialRenderer.d.ts +11 -0
- package/dist/types/WgpuMeshMaterialRenderer.d.ts.map +1 -0
- package/dist/types/WgpuMeshMaterialRenderer.js +2 -0
- package/dist/types/WgpuMeshMaterialRenderer.js.map +1 -0
- package/dist/types/WgpuModifierSnippet.d.ts +16 -0
- package/dist/types/WgpuModifierSnippet.d.ts.map +1 -0
- package/dist/types/WgpuModifierSnippet.js +2 -0
- package/dist/types/WgpuModifierSnippet.js.map +1 -0
- package/dist/types/WgpuParticleResources.d.ts +12 -0
- package/dist/types/WgpuParticleResources.d.ts.map +1 -0
- package/dist/types/WgpuParticleResources.js +2 -0
- package/dist/types/WgpuParticleResources.js.map +1 -0
- package/dist/types/WgpuPipelineLayout.d.ts +8 -0
- package/dist/types/WgpuPipelineLayout.d.ts.map +1 -0
- package/dist/types/WgpuPipelineLayout.js +2 -0
- package/dist/types/WgpuPipelineLayout.js.map +1 -0
- package/dist/types/WgpuQuadBatchResources.d.ts +12 -0
- package/dist/types/WgpuQuadBatchResources.d.ts.map +1 -0
- package/dist/types/WgpuQuadBatchResources.js +2 -0
- package/dist/types/WgpuQuadBatchResources.js.map +1 -0
- package/dist/types/WgpuQuadMaterialRenderer.d.ts +9 -0
- package/dist/types/WgpuQuadMaterialRenderer.d.ts.map +1 -0
- package/dist/types/WgpuQuadMaterialRenderer.js +2 -0
- package/dist/types/WgpuQuadMaterialRenderer.js.map +1 -0
- package/dist/types/WgpuQueue.d.ts +12 -0
- package/dist/types/WgpuQueue.d.ts.map +1 -0
- package/dist/types/WgpuQueue.js +2 -0
- package/dist/types/WgpuQueue.js.map +1 -0
- package/dist/types/WgpuRenderOptions.d.ts +14 -0
- package/dist/types/WgpuRenderOptions.d.ts.map +1 -0
- package/dist/types/WgpuRenderOptions.js +2 -0
- package/dist/types/WgpuRenderOptions.js.map +1 -0
- package/dist/types/WgpuRenderPass.d.ts +31 -0
- package/dist/types/WgpuRenderPass.d.ts.map +1 -0
- package/dist/types/WgpuRenderPass.js +2 -0
- package/dist/types/WgpuRenderPass.js.map +1 -0
- package/dist/types/WgpuRenderPassEncoder.d.ts +52 -0
- package/dist/types/WgpuRenderPassEncoder.d.ts.map +1 -0
- package/dist/types/WgpuRenderPassEncoder.js +2 -0
- package/dist/types/WgpuRenderPassEncoder.js.map +1 -0
- package/dist/types/WgpuRenderPipeline.d.ts +96 -0
- package/dist/types/WgpuRenderPipeline.d.ts.map +1 -0
- package/dist/types/WgpuRenderPipeline.js +9 -0
- package/dist/types/WgpuRenderPipeline.js.map +1 -0
- package/dist/types/WgpuRenderState.d.ts +249 -0
- package/dist/types/WgpuRenderState.d.ts.map +1 -0
- package/dist/types/WgpuRenderState.js +2 -0
- package/dist/types/WgpuRenderState.js.map +1 -0
- package/dist/types/WgpuRenderStateOptions.d.ts +31 -0
- package/dist/types/WgpuRenderStateOptions.d.ts.map +1 -0
- package/dist/types/WgpuRenderStateOptions.js +2 -0
- package/dist/types/WgpuRenderStateOptions.js.map +1 -0
- package/dist/types/WgpuRenderTarget.d.ts +62 -0
- package/dist/types/WgpuRenderTarget.d.ts.map +1 -0
- package/dist/types/WgpuRenderTarget.js +2 -0
- package/dist/types/WgpuRenderTarget.js.map +1 -0
- package/dist/types/WgpuRenderTexture.d.ts +25 -0
- package/dist/types/WgpuRenderTexture.d.ts.map +1 -0
- package/dist/types/WgpuRenderTexture.js +2 -0
- package/dist/types/WgpuRenderTexture.js.map +1 -0
- package/dist/types/WgpuSampler.d.ts +19 -0
- package/dist/types/WgpuSampler.d.ts.map +1 -0
- package/dist/types/WgpuSampler.js +2 -0
- package/dist/types/WgpuSampler.js.map +1 -0
- package/dist/types/WgpuScene3DRuntime.d.ts +6 -0
- package/dist/types/WgpuScene3DRuntime.d.ts.map +1 -0
- package/dist/types/WgpuScene3DRuntime.js +2 -0
- package/dist/types/WgpuScene3DRuntime.js.map +1 -0
- package/dist/types/WgpuShaderModule.d.ts +6 -0
- package/dist/types/WgpuShaderModule.d.ts.map +1 -0
- package/dist/types/WgpuShaderModule.js +2 -0
- package/dist/types/WgpuShaderModule.js.map +1 -0
- package/dist/types/WgpuShapeMesh.d.ts +7 -0
- package/dist/types/WgpuShapeMesh.d.ts.map +1 -0
- package/dist/types/WgpuShapeMesh.js +2 -0
- package/dist/types/WgpuShapeMesh.js.map +1 -0
- package/dist/types/WgpuSkinningAdapter.d.ts +18 -0
- package/dist/types/WgpuSkinningAdapter.d.ts.map +1 -0
- package/dist/types/WgpuSkinningAdapter.js +2 -0
- package/dist/types/WgpuSkinningAdapter.js.map +1 -0
- package/dist/types/WgpuSurface.d.ts +5 -0
- package/dist/types/WgpuSurface.d.ts.map +1 -0
- package/dist/types/WgpuSurface.js +2 -0
- package/dist/types/WgpuSurface.js.map +1 -0
- package/dist/types/WgpuTexture.d.ts +58 -0
- package/dist/types/WgpuTexture.d.ts.map +1 -0
- package/dist/types/WgpuTexture.js +9 -0
- package/dist/types/WgpuTexture.js.map +1 -0
- package/dist/types/WgpuTextureFormat.d.ts +2 -0
- package/dist/types/WgpuTextureFormat.d.ts.map +1 -0
- package/dist/types/WgpuTextureFormat.js +2 -0
- package/dist/types/WgpuTextureFormat.js.map +1 -0
- package/dist/types/WgpuTextureResolver.d.ts +4 -0
- package/dist/types/WgpuTextureResolver.d.ts.map +1 -0
- package/dist/types/WgpuTextureResolver.js +2 -0
- package/dist/types/WgpuTextureResolver.js.map +1 -0
- package/dist/types/WgpuTextureView.d.ts +16 -0
- package/dist/types/WgpuTextureView.d.ts.map +1 -0
- package/dist/types/WgpuTextureView.js +2 -0
- package/dist/types/WgpuTextureView.js.map +1 -0
- package/dist/types/WgpuUniformEndianness.d.ts +7 -0
- package/dist/types/WgpuUniformEndianness.d.ts.map +1 -0
- package/dist/types/WgpuUniformEndianness.js +2 -0
- package/dist/types/WgpuUniformEndianness.js.map +1 -0
- package/dist/types/WgpuVelocityWriter.d.ts +11 -0
- package/dist/types/WgpuVelocityWriter.d.ts.map +1 -0
- package/dist/types/WgpuVelocityWriter.js +2 -0
- package/dist/types/WgpuVelocityWriter.js.map +1 -0
- package/dist/wgpuAdapterCapabilities.d.ts +2 -2
- package/dist/wgpuAdapterCapabilities.d.ts.map +1 -1
- package/dist/wgpuAdapterCapabilities.js.map +1 -1
- package/dist/wgpuCompressedTexture.d.ts +7 -5
- package/dist/wgpuCompressedTexture.d.ts.map +1 -1
- package/dist/wgpuCompressedTexture.js +10 -18
- package/dist/wgpuCompressedTexture.js.map +1 -1
- package/dist/wgpuDeviceLoss.d.ts +2 -2
- package/dist/wgpuDeviceLoss.d.ts.map +1 -1
- package/dist/wgpuDeviceLoss.js +1 -1
- package/dist/wgpuDeviceLoss.js.map +1 -1
- package/dist/wgpuDraw.d.ts +11 -5
- package/dist/wgpuDraw.d.ts.map +1 -1
- package/dist/wgpuDraw.js +21 -20
- package/dist/wgpuDraw.js.map +1 -1
- package/dist/wgpuExternalImageSource.d.ts +3 -2
- package/dist/wgpuExternalImageSource.d.ts.map +1 -1
- package/dist/wgpuExternalImageSource.js.map +1 -1
- package/dist/wgpuExternalTexture.d.ts +7 -3
- package/dist/wgpuExternalTexture.d.ts.map +1 -1
- package/dist/wgpuExternalTexture.js +5 -5
- package/dist/wgpuExternalTexture.js.map +1 -1
- package/dist/wgpuFrame.d.ts +23 -0
- package/dist/wgpuFrame.d.ts.map +1 -0
- package/dist/{wgpuBackground.js → wgpuFrame.js} +67 -122
- package/dist/wgpuFrame.js.map +1 -0
- package/dist/wgpuFullscreenPass.d.ts +5 -4
- package/dist/wgpuFullscreenPass.d.ts.map +1 -1
- package/dist/wgpuFullscreenPass.js +22 -8
- package/dist/wgpuFullscreenPass.js.map +1 -1
- package/dist/wgpuHost.d.ts +4 -7
- package/dist/wgpuHost.d.ts.map +1 -1
- package/dist/wgpuHost.js +81 -70
- package/dist/wgpuHost.js.map +1 -1
- package/dist/wgpuMipmap.d.ts +2 -2
- package/dist/wgpuMipmap.d.ts.map +1 -1
- package/dist/wgpuMipmap.js +4 -3
- package/dist/wgpuMipmap.js.map +1 -1
- package/dist/wgpuQuadMaterialRegistry.d.ts +7 -0
- package/dist/wgpuQuadMaterialRegistry.d.ts.map +1 -0
- package/dist/wgpuQuadMaterialRegistry.js +33 -0
- package/dist/wgpuQuadMaterialRegistry.js.map +1 -0
- package/dist/wgpuRenderPass.d.ts +9 -0
- package/dist/wgpuRenderPass.d.ts.map +1 -0
- package/dist/wgpuRenderPass.js +210 -0
- package/dist/wgpuRenderPass.js.map +1 -0
- package/dist/wgpuRenderState.d.ts +16 -12
- package/dist/wgpuRenderState.d.ts.map +1 -1
- package/dist/wgpuRenderState.js +104 -149
- package/dist/wgpuRenderState.js.map +1 -1
- package/dist/wgpuRenderTarget.d.ts +13 -29
- package/dist/wgpuRenderTarget.d.ts.map +1 -1
- package/dist/wgpuRenderTarget.js +20 -253
- package/dist/wgpuRenderTarget.js.map +1 -1
- package/dist/wgpuRenderTargetPool.d.ts +8 -6
- package/dist/wgpuRenderTargetPool.d.ts.map +1 -1
- package/dist/wgpuRenderTargetPool.js +9 -9
- package/dist/wgpuRenderTargetPool.js.map +1 -1
- package/dist/wgpuRenderTexture.d.ts +7 -4
- package/dist/wgpuRenderTexture.d.ts.map +1 -1
- package/dist/wgpuRenderTexture.js +15 -17
- package/dist/wgpuRenderTexture.js.map +1 -1
- package/dist/wgpuRenderTexturePool.d.ts +3 -1
- package/dist/wgpuRenderTexturePool.d.ts.map +1 -1
- package/dist/wgpuRenderTexturePool.js +5 -7
- package/dist/wgpuRenderTexturePool.js.map +1 -1
- package/dist/wgpuScissor.d.ts +3 -3
- package/dist/wgpuScissor.d.ts.map +1 -1
- package/dist/wgpuScissor.js +8 -5
- package/dist/wgpuScissor.js.map +1 -1
- package/dist/wgpuScreenAntialias.d.ts +3 -0
- package/dist/wgpuScreenAntialias.d.ts.map +1 -0
- package/dist/wgpuScreenAntialias.js +120 -0
- package/dist/wgpuScreenAntialias.js.map +1 -0
- package/dist/wgpuScreenCapture.d.ts +6 -0
- package/dist/wgpuScreenCapture.d.ts.map +1 -0
- package/dist/wgpuScreenCapture.js +138 -0
- package/dist/wgpuScreenCapture.js.map +1 -0
- package/dist/wgpuScreenRenderTarget.d.ts +11 -0
- package/dist/wgpuScreenRenderTarget.d.ts.map +1 -0
- package/dist/wgpuScreenRenderTarget.js +121 -0
- package/dist/wgpuScreenRenderTarget.js.map +1 -0
- package/dist/wgpuShader.d.ts +11 -8
- package/dist/wgpuShader.d.ts.map +1 -1
- package/dist/wgpuShader.js +11 -10
- package/dist/wgpuShader.js.map +1 -1
- package/dist/wgpuShaderBinding.d.ts +3 -1
- package/dist/wgpuShaderBinding.d.ts.map +1 -1
- package/dist/wgpuShaderBinding.js +1 -1
- package/dist/wgpuShaderBinding.js.map +1 -1
- package/dist/wgpuShaderRegistry.d.ts +1 -1
- package/dist/wgpuShaderRegistry.d.ts.map +1 -1
- package/dist/wgpuShaderRegistry.js +1 -1
- package/dist/wgpuShaderRegistry.js.map +1 -1
- package/dist/wgpuTestHelper.d.ts +11 -2
- package/dist/wgpuTestHelper.d.ts.map +1 -1
- package/dist/wgpuTestHelper.js +50 -38
- package/dist/wgpuTestHelper.js.map +1 -1
- package/dist/wgpuTextureRenderTarget.d.ts +22 -0
- package/dist/wgpuTextureRenderTarget.d.ts.map +1 -0
- package/dist/wgpuTextureRenderTarget.js +123 -0
- package/dist/wgpuTextureRenderTarget.js.map +1 -0
- package/dist/wgpuTextureResolver.d.ts +5 -1
- package/dist/wgpuTextureResolver.d.ts.map +1 -1
- package/dist/wgpuTextureResolver.js +13 -12
- package/dist/wgpuTextureResolver.js.map +1 -1
- package/dist/wgpuTextureUpload.d.ts +5 -4
- package/dist/wgpuTextureUpload.d.ts.map +1 -1
- package/dist/wgpuTextureUpload.js +1 -1
- package/dist/wgpuTextureUpload.js.map +1 -1
- package/package.json +33 -13
- package/src/enableWgpuTextureResolverGuards.test.ts +40 -19
- package/src/explainWgpuTextureResolution.test.ts +6 -6
- package/src/explainWgpuUniformEndianness.test.ts +11 -0
- package/src/types/WgpuBindGroupLayout.test.ts +9 -0
- package/src/types/WgpuBuffer.test.ts +26 -0
- package/src/types/WgpuGpu.test.ts +56 -0
- package/src/types/WgpuRenderPipeline.test.ts +12 -0
- package/src/types/WgpuTexture.test.ts +15 -0
- package/src/wgpuAdapterCapabilities.test.ts +5 -4
- package/src/wgpuCompressedTexture.test.ts +31 -37
- package/src/wgpuDeviceLoss.test.ts +31 -24
- package/src/wgpuDraw.test.ts +21 -24
- package/src/wgpuExternalImageSource.test.ts +12 -11
- package/src/wgpuExternalTexture.test.ts +7 -6
- package/src/{wgpuBackground.test.ts → wgpuFrame.test.ts} +47 -29
- package/src/wgpuFullscreenPass.test.ts +8 -8
- package/src/wgpuHost.test.ts +57 -186
- package/src/wgpuMipmap.test.ts +15 -9
- package/src/wgpuQuadMaterialRegistry.test.ts +132 -0
- package/src/wgpuRenderPass.test.ts +239 -0
- package/src/wgpuRenderState.test.ts +215 -550
- package/src/wgpuRenderTarget.test.ts +44 -220
- package/src/wgpuRenderTargetPool.test.ts +23 -23
- package/src/wgpuRenderTexture.test.ts +21 -18
- package/src/wgpuRenderTexturePool.test.ts +3 -3
- package/src/wgpuScissor.test.ts +50 -19
- package/src/wgpuScreenAntialias.test.ts +65 -0
- package/src/wgpuScreenCapture.test.ts +165 -0
- package/src/wgpuScreenRenderTarget.test.ts +172 -0
- package/src/wgpuShader.test.ts +12 -11
- package/src/wgpuShaderBinding.test.ts +4 -4
- package/src/wgpuShaderRegistry.test.ts +4 -5
- package/src/wgpuTestHelper.test.ts +8 -7
- package/src/wgpuTextureRenderTarget.test.ts +129 -0
- package/src/wgpuTextureResolver.test.ts +25 -14
- package/src/wgpuTextureUpload.test.ts +15 -10
- package/dist/wgpuAntialias.d.ts +0 -14
- package/dist/wgpuAntialias.d.ts.map +0 -1
- package/dist/wgpuAntialias.js +0 -155
- package/dist/wgpuAntialias.js.map +0 -1
- package/dist/wgpuBackground.d.ts +0 -20
- package/dist/wgpuBackground.d.ts.map +0 -1
- package/dist/wgpuBackground.js.map +0 -1
- package/dist/wgpuElement.d.ts +0 -7
- package/dist/wgpuElement.d.ts.map +0 -1
- package/dist/wgpuElement.js +0 -20
- package/dist/wgpuElement.js.map +0 -1
- package/dist/wgpuMaterialRegistry.d.ts +0 -5
- package/dist/wgpuMaterialRegistry.d.ts.map +0 -1
- package/dist/wgpuMaterialRegistry.js +0 -32
- package/dist/wgpuMaterialRegistry.js.map +0 -1
- package/dist/wgpuPipeline.d.ts +0 -6
- package/dist/wgpuPipeline.d.ts.map +0 -1
- package/dist/wgpuPipeline.js +0 -33
- package/dist/wgpuPipeline.js.map +0 -1
- package/dist/wgpuSurface.d.ts +0 -6
- package/dist/wgpuSurface.d.ts.map +0 -1
- package/dist/wgpuSurface.js +0 -155
- package/dist/wgpuSurface.js.map +0 -1
- package/src/wgpuAntialias.test.ts +0 -239
- package/src/wgpuElement.test.ts +0 -145
- package/src/wgpuMaterialRegistry.test.ts +0 -100
- package/src/wgpuPipeline.test.ts +0 -62
- package/src/wgpuSurface.test.ts +0 -141
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuQuadBatchResources.js","sourceRoot":"","sources":["../../src/types/WgpuQuadBatchResources.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type { Material, MaterialData } from '@flighthq/materials/contract';
|
|
2
|
+
import type { WgpuRenderState } from './WgpuRenderState.ts';
|
|
3
|
+
import type { WgpuShaderModule } from './WgpuShaderModule.ts';
|
|
4
|
+
export interface WgpuQuadMaterialRenderer {
|
|
5
|
+
instanceFloatCount: number;
|
|
6
|
+
getShaderModule(state: WgpuRenderState): WgpuShaderModule;
|
|
7
|
+
packInstance?(state: WgpuRenderState, material: Readonly<Material> | null, materialData: MaterialData | null, out: Float32Array, offset: number): void;
|
|
8
|
+
}
|
|
9
|
+
//# sourceMappingURL=WgpuQuadMaterialRenderer.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuQuadMaterialRenderer.d.ts","sourceRoot":"","sources":["../../src/types/WgpuQuadMaterialRenderer.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,QAAQ,EAAE,YAAY,EAAE,MAAM,8BAA8B,CAAC;AAE3E,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAa9D,MAAM,WAAW,wBAAwB;IAIvC,kBAAkB,EAAE,MAAM,CAAC;IAO3B,eAAe,CAAC,KAAK,EAAE,eAAe,GAAG,gBAAgB,CAAC;IAK1D,YAAY,CAAC,CACX,KAAK,EAAE,eAAe,EACtB,QAAQ,EAAE,QAAQ,CAAC,QAAQ,CAAC,GAAG,IAAI,EACnC,YAAY,EAAE,YAAY,GAAG,IAAI,EACjC,GAAG,EAAE,YAAY,EACjB,MAAM,EAAE,MAAM,GACb,IAAI,CAAC;CACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuQuadMaterialRenderer.js","sourceRoot":"","sources":["../../src/types/WgpuQuadMaterialRenderer.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import type { WgpuBufferSource, WgpuBuffer } from './WgpuBuffer.ts';
|
|
2
|
+
import type { WgpuCommandBuffer } from './WgpuCommandBuffer.ts';
|
|
3
|
+
import type { WgpuCopyExternalImageDestInfo, WgpuCopyExternalImageSourceInfo } from './WgpuExternalImageSource.ts';
|
|
4
|
+
import type { WgpuExtent3D, WgpuTexelCopyBufferLayout, WgpuTexelCopyTextureInfo } from './WgpuTexture.ts';
|
|
5
|
+
export interface WgpuQueue {
|
|
6
|
+
copyExternalImageToTexture(source: Readonly<WgpuCopyExternalImageSourceInfo>, destination: Readonly<WgpuCopyExternalImageDestInfo>, copySize: WgpuExtent3D): void;
|
|
7
|
+
onSubmittedWorkDone(): Promise<void>;
|
|
8
|
+
submit(commandBuffers: readonly WgpuCommandBuffer[]): void;
|
|
9
|
+
writeBuffer(buffer: WgpuBuffer, bufferOffset: number, data: WgpuBufferSource, dataOffset?: number, size?: number): void;
|
|
10
|
+
writeTexture(destination: Readonly<WgpuTexelCopyTextureInfo>, data: WgpuBufferSource, dataLayout: Readonly<WgpuTexelCopyBufferLayout>, size: WgpuExtent3D): void;
|
|
11
|
+
}
|
|
12
|
+
//# sourceMappingURL=WgpuQueue.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuQueue.d.ts","sourceRoot":"","sources":["../../src/types/WgpuQueue.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,gBAAgB,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AACpE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,6BAA6B,EAAE,+BAA+B,EAAE,MAAM,8BAA8B,CAAC;AACnH,OAAO,KAAK,EAAE,YAAY,EAAE,yBAAyB,EAAE,wBAAwB,EAAE,MAAM,kBAAkB,CAAC;AAE1G,MAAM,WAAW,SAAS;IACxB,0BAA0B,CACxB,MAAM,EAAE,QAAQ,CAAC,+BAA+B,CAAC,EACjD,WAAW,EAAE,QAAQ,CAAC,6BAA6B,CAAC,EACpD,QAAQ,EAAE,YAAY,GACrB,IAAI,CAAC;IACR,mBAAmB,IAAI,OAAO,CAAC,IAAI,CAAC,CAAC;IACrC,MAAM,CAAC,cAAc,EAAE,SAAS,iBAAiB,EAAE,GAAG,IAAI,CAAC;IAC3D,WAAW,CACT,MAAM,EAAE,UAAU,EAClB,YAAY,EAAE,MAAM,EACpB,IAAI,EAAE,gBAAgB,EACtB,UAAU,CAAC,EAAE,MAAM,EACnB,IAAI,CAAC,EAAE,MAAM,GACZ,IAAI,CAAC;IACR,YAAY,CACV,WAAW,EAAE,QAAQ,CAAC,wBAAwB,CAAC,EAC/C,IAAI,EAAE,gBAAgB,EACtB,UAAU,EAAE,QAAQ,CAAC,yBAAyB,CAAC,EAC/C,IAAI,EAAE,YAAY,GACjB,IAAI,CAAC;CACT"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuQueue.js","sourceRoot":"","sources":["../../src/types/WgpuQueue.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import type { HostImageCapability } from '@flighthq/image/contract';
|
|
2
|
+
import type { Scene3DGraphSyncPolicy } from '@flighthq/render/contract';
|
|
3
|
+
import type { HostCanvasCapability } from '@flighthq/surface/contract';
|
|
4
|
+
import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
|
|
5
|
+
export interface WgpuRenderOptions {
|
|
6
|
+
canvasHost?: Readonly<HostCanvasCapability>;
|
|
7
|
+
imageHost?: Readonly<HostImageCapability>;
|
|
8
|
+
format?: WgpuTextureFormat;
|
|
9
|
+
imageSmoothingEnabled?: boolean;
|
|
10
|
+
pixelRatio?: number;
|
|
11
|
+
roundPixels?: boolean;
|
|
12
|
+
sceneGraphSyncPolicy?: Scene3DGraphSyncPolicy;
|
|
13
|
+
}
|
|
14
|
+
//# sourceMappingURL=WgpuRenderOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderOptions.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,2BAA2B,CAAC;AACxE,OAAO,KAAK,EAAE,oBAAoB,EAAE,MAAM,4BAA4B,CAAC;AAEvE,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAEhE,MAAM,WAAW,iBAAiB;IAChC,UAAU,CAAC,EAAE,QAAQ,CAAC,oBAAoB,CAAC,CAAC;IAC5C,SAAS,CAAC,EAAE,QAAQ,CAAC,mBAAmB,CAAC,CAAC;IAI1C,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,qBAAqB,CAAC,EAAE,OAAO,CAAC;IAChC,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,oBAAoB,CAAC,EAAE,sBAAsB,CAAC;CAC/C"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderOptions.js","sourceRoot":"","sources":["../../src/types/WgpuRenderOptions.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { EntityRaw, EntityRuntime, EntityRuntimeKey } from '@flighthq/entity/contract';
|
|
2
|
+
import type { WgpuRenderPassEncoder } from './WgpuRenderPassEncoder.ts';
|
|
3
|
+
import type { WgpuRenderState, WgpuScissorRect } from './WgpuRenderState.ts';
|
|
4
|
+
import type { WgpuRenderTarget } from './WgpuRenderTarget.ts';
|
|
5
|
+
import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
|
|
6
|
+
import type { WgpuTextureView } from './WgpuTextureView.ts';
|
|
7
|
+
export interface WgpuRenderPass extends EntityRaw {
|
|
8
|
+
[EntityRuntimeKey]: EntityRuntime | undefined;
|
|
9
|
+
colorView: WgpuTextureView;
|
|
10
|
+
encoder: WgpuRenderPassEncoder | null;
|
|
11
|
+
ownsFrame: boolean;
|
|
12
|
+
saved: WgpuSavedPassState;
|
|
13
|
+
state: WgpuRenderState;
|
|
14
|
+
target: WgpuRenderTarget;
|
|
15
|
+
viewport: WgpuRenderPassViewport;
|
|
16
|
+
}
|
|
17
|
+
export interface WgpuRenderPassViewport {
|
|
18
|
+
height: number;
|
|
19
|
+
width: number;
|
|
20
|
+
}
|
|
21
|
+
export interface WgpuSavedPassState {
|
|
22
|
+
clipForms: ('rect' | 'contour')[];
|
|
23
|
+
colorFormat: WgpuTextureFormat | undefined;
|
|
24
|
+
currentMaskDepth: number;
|
|
25
|
+
currentScissorRect: WgpuScissorRect | null;
|
|
26
|
+
maskWriteMode: boolean;
|
|
27
|
+
renderTarget: WgpuRenderTarget | null;
|
|
28
|
+
renderTargetViewport: WgpuRenderPassViewport | null;
|
|
29
|
+
scissorStack: WgpuScissorRect[];
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=WgpuRenderPass.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderPass.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderPass.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,SAAS,EAAE,aAAa,EAAE,gBAAgB,EAAE,MAAM,2BAA2B,CAAC;AAE5F,OAAO,KAAK,EAAE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
|
1
|
+
import type { WgpuBindGroup } from './WgpuBindGroup.ts';
|
|
2
|
+
import type { WgpuBuffer } from './WgpuBuffer.ts';
|
|
3
|
+
import type { WgpuIndexFormat, WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
|
|
4
|
+
import type { WgpuTexture } from './WgpuTexture.ts';
|
|
5
|
+
import type { WgpuTextureView } from './WgpuTextureView.ts';
|
|
6
|
+
export type WgpuColor = readonly number[] | Readonly<WgpuColorDict>;
|
|
7
|
+
export interface WgpuColorDict {
|
|
8
|
+
a: number;
|
|
9
|
+
b: number;
|
|
10
|
+
g: number;
|
|
11
|
+
r: number;
|
|
12
|
+
}
|
|
13
|
+
export type WgpuLoadOp = 'clear' | 'load';
|
|
14
|
+
export interface WgpuRenderPassColorAttachment {
|
|
15
|
+
clearValue?: WgpuColor;
|
|
16
|
+
depthSlice?: number;
|
|
17
|
+
loadOp: WgpuLoadOp;
|
|
18
|
+
resolveTarget?: WgpuTexture | WgpuTextureView;
|
|
19
|
+
storeOp: WgpuStoreOp;
|
|
20
|
+
view: WgpuTexture | WgpuTextureView;
|
|
21
|
+
}
|
|
22
|
+
export interface WgpuRenderPassDepthStencilAttachment {
|
|
23
|
+
depthClearValue?: number;
|
|
24
|
+
depthLoadOp?: WgpuLoadOp;
|
|
25
|
+
depthReadOnly?: boolean;
|
|
26
|
+
depthStoreOp?: WgpuStoreOp;
|
|
27
|
+
stencilClearValue?: number;
|
|
28
|
+
stencilLoadOp?: WgpuLoadOp;
|
|
29
|
+
stencilReadOnly?: boolean;
|
|
30
|
+
stencilStoreOp?: WgpuStoreOp;
|
|
31
|
+
view: WgpuTexture | WgpuTextureView;
|
|
32
|
+
}
|
|
33
|
+
export interface WgpuRenderPassDescriptor {
|
|
34
|
+
colorAttachments: readonly (Readonly<WgpuRenderPassColorAttachment> | null | undefined)[];
|
|
35
|
+
depthStencilAttachment?: Readonly<WgpuRenderPassDepthStencilAttachment>;
|
|
36
|
+
label?: string;
|
|
37
|
+
maxDrawCount?: number;
|
|
38
|
+
}
|
|
39
|
+
export interface WgpuRenderPassEncoder {
|
|
40
|
+
draw(vertexCount: number, instanceCount?: number, firstVertex?: number, firstInstance?: number): void;
|
|
41
|
+
drawIndexed(indexCount: number, instanceCount?: number, firstIndex?: number, baseVertex?: number, firstInstance?: number): void;
|
|
42
|
+
end(): void;
|
|
43
|
+
setBindGroup(index: number, bindGroup: WgpuBindGroup | null, dynamicOffsets?: readonly number[] | Uint32Array): void;
|
|
44
|
+
setIndexBuffer(buffer: WgpuBuffer, indexFormat: WgpuIndexFormat, offset?: number, size?: number): void;
|
|
45
|
+
setPipeline(pipeline: WgpuRenderPipeline): void;
|
|
46
|
+
setScissorRect(x: number, y: number, width: number, height: number): void;
|
|
47
|
+
setStencilReference(reference: number): void;
|
|
48
|
+
setVertexBuffer(slot: number, buffer: WgpuBuffer | null, offset?: number, size?: number): void;
|
|
49
|
+
setViewport(x: number, y: number, width: number, height: number, minDepth: number, maxDepth: number): void;
|
|
50
|
+
}
|
|
51
|
+
export type WgpuStoreOp = 'discard' | 'store';
|
|
52
|
+
//# sourceMappingURL=WgpuRenderPassEncoder.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderPassEncoder.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderPassEncoder.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,oBAAoB,CAAC;AACxD,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,iBAAiB,CAAC;AAClD,OAAO,KAAK,EAAE,eAAe,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AACnF,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,kBAAkB,CAAC;AACpD,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,sBAAsB,CAAC;AAE5D,MAAM,MAAM,SAAS,GAAG,SAAS,MAAM,EAAE,GAAG,QAAQ,CAAC,aAAa,CAAC,CAAC;AAEpE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src/types/WgpuRenderPassEncoder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
import type { WgpuPipelineLayout } from './WgpuPipelineLayout.ts';
|
|
2
|
+
import type { WgpuCompareFunction } from './WgpuSampler.ts';
|
|
3
|
+
import type { WgpuShaderModule } from './WgpuShaderModule.ts';
|
|
4
|
+
import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
|
|
5
|
+
export type WgpuRenderPipeline = GPURenderPipeline;
|
|
6
|
+
export interface WgpuBlendComponent {
|
|
7
|
+
dstFactor?: WgpuBlendFactor;
|
|
8
|
+
operation?: WgpuBlendOperation;
|
|
9
|
+
srcFactor?: WgpuBlendFactor;
|
|
10
|
+
}
|
|
11
|
+
export type WgpuBlendFactor = 'constant' | 'dst' | 'dst-alpha' | 'one' | 'one-minus-constant' | 'one-minus-dst' | 'one-minus-dst-alpha' | 'one-minus-src' | 'one-minus-src-alpha' | 'one-minus-src1' | 'one-minus-src1-alpha' | 'src' | 'src-alpha' | 'src-alpha-saturated' | 'src1' | 'src1-alpha' | 'zero';
|
|
12
|
+
export type WgpuBlendOperation = 'add' | 'max' | 'min' | 'reverse-subtract' | 'subtract';
|
|
13
|
+
export interface WgpuBlendState {
|
|
14
|
+
alpha: Readonly<WgpuBlendComponent>;
|
|
15
|
+
color: Readonly<WgpuBlendComponent>;
|
|
16
|
+
}
|
|
17
|
+
export interface WgpuColorTargetState {
|
|
18
|
+
blend?: Readonly<WgpuBlendState>;
|
|
19
|
+
format: WgpuTextureFormat;
|
|
20
|
+
writeMask?: number;
|
|
21
|
+
}
|
|
22
|
+
export declare const WgpuColorWrite: {
|
|
23
|
+
readonly ALL: 15;
|
|
24
|
+
readonly ALPHA: 8;
|
|
25
|
+
readonly BLUE: 4;
|
|
26
|
+
readonly GREEN: 2;
|
|
27
|
+
readonly RED: 1;
|
|
28
|
+
};
|
|
29
|
+
export type WgpuCullMode = 'back' | 'front' | 'none';
|
|
30
|
+
export interface WgpuDepthStencilState {
|
|
31
|
+
depthBias?: number;
|
|
32
|
+
depthBiasClamp?: number;
|
|
33
|
+
depthBiasSlopeScale?: number;
|
|
34
|
+
depthCompare?: WgpuCompareFunction;
|
|
35
|
+
depthWriteEnabled?: boolean;
|
|
36
|
+
format: WgpuTextureFormat;
|
|
37
|
+
stencilBack?: Readonly<WgpuStencilFaceState>;
|
|
38
|
+
stencilFront?: Readonly<WgpuStencilFaceState>;
|
|
39
|
+
stencilReadMask?: number;
|
|
40
|
+
stencilWriteMask?: number;
|
|
41
|
+
}
|
|
42
|
+
export interface WgpuFragmentState extends WgpuProgrammableStage {
|
|
43
|
+
targets: readonly (Readonly<WgpuColorTargetState> | null | undefined)[];
|
|
44
|
+
}
|
|
45
|
+
export type WgpuFrontFace = 'ccw' | 'cw';
|
|
46
|
+
export type WgpuIndexFormat = 'uint16' | 'uint32';
|
|
47
|
+
export interface WgpuMultisampleState {
|
|
48
|
+
alphaToCoverageEnabled?: boolean;
|
|
49
|
+
count?: number;
|
|
50
|
+
mask?: number;
|
|
51
|
+
}
|
|
52
|
+
export interface WgpuPrimitiveState {
|
|
53
|
+
cullMode?: WgpuCullMode;
|
|
54
|
+
frontFace?: WgpuFrontFace;
|
|
55
|
+
stripIndexFormat?: WgpuIndexFormat;
|
|
56
|
+
topology?: WgpuPrimitiveTopology;
|
|
57
|
+
unclippedDepth?: boolean;
|
|
58
|
+
}
|
|
59
|
+
export type WgpuPrimitiveTopology = 'line-list' | 'line-strip' | 'point-list' | 'triangle-list' | 'triangle-strip';
|
|
60
|
+
export interface WgpuProgrammableStage {
|
|
61
|
+
constants?: Readonly<Record<string, number>>;
|
|
62
|
+
entryPoint?: string;
|
|
63
|
+
module: WgpuShaderModule;
|
|
64
|
+
}
|
|
65
|
+
export interface WgpuRenderPipelineDescriptor {
|
|
66
|
+
depthStencil?: Readonly<WgpuDepthStencilState>;
|
|
67
|
+
fragment?: Readonly<WgpuFragmentState>;
|
|
68
|
+
label?: string;
|
|
69
|
+
layout: WgpuPipelineLayout | 'auto';
|
|
70
|
+
multisample?: Readonly<WgpuMultisampleState>;
|
|
71
|
+
primitive?: Readonly<WgpuPrimitiveState>;
|
|
72
|
+
vertex: Readonly<WgpuVertexState>;
|
|
73
|
+
}
|
|
74
|
+
export interface WgpuStencilFaceState {
|
|
75
|
+
compare?: WgpuCompareFunction;
|
|
76
|
+
depthFailOp?: WgpuStencilOperation;
|
|
77
|
+
failOp?: WgpuStencilOperation;
|
|
78
|
+
passOp?: WgpuStencilOperation;
|
|
79
|
+
}
|
|
80
|
+
export type WgpuStencilOperation = 'decrement-clamp' | 'decrement-wrap' | 'increment-clamp' | 'increment-wrap' | 'invert' | 'keep' | 'replace' | 'zero';
|
|
81
|
+
export interface WgpuVertexAttribute {
|
|
82
|
+
format: WgpuVertexFormat;
|
|
83
|
+
offset: number;
|
|
84
|
+
shaderLocation: number;
|
|
85
|
+
}
|
|
86
|
+
export interface WgpuVertexBufferLayout {
|
|
87
|
+
arrayStride: number;
|
|
88
|
+
attributes: readonly Readonly<WgpuVertexAttribute>[];
|
|
89
|
+
stepMode?: WgpuVertexStepMode;
|
|
90
|
+
}
|
|
91
|
+
export type WgpuVertexFormat = 'float16' | 'float16x2' | 'float16x4' | 'float32' | 'float32x2' | 'float32x3' | 'float32x4' | 'sint16' | 'sint16x2' | 'sint16x4' | 'sint32' | 'sint32x2' | 'sint32x3' | 'sint32x4' | 'sint8' | 'sint8x2' | 'sint8x4' | 'snorm16' | 'snorm16x2' | 'snorm16x4' | 'snorm8' | 'snorm8x2' | 'snorm8x4' | 'uint16' | 'uint16x2' | 'uint16x4' | 'uint32' | 'uint32x2' | 'uint32x3' | 'uint32x4' | 'uint8' | 'uint8x2' | 'uint8x4' | 'unorm10-10-10-2' | 'unorm16' | 'unorm16x2' | 'unorm16x4' | 'unorm8' | 'unorm8x2' | 'unorm8x4' | 'unorm8x4-bgra';
|
|
92
|
+
export interface WgpuVertexState extends WgpuProgrammableStage {
|
|
93
|
+
buffers?: readonly (Readonly<WgpuVertexBufferLayout> | null | undefined)[];
|
|
94
|
+
}
|
|
95
|
+
export type WgpuVertexStepMode = 'instance' | 'vertex';
|
|
96
|
+
//# sourceMappingURL=WgpuRenderPipeline.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderPipeline.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderPipeline.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAClE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,kBAAkB,CAAC;AAC5D,OAAO,KAAK,EAAE,gBAAgB,EAAE,MAAM,uBAAuB,CAAC;AAC9D,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAIhE,MAAM,MAAM,kBAAkB,GAAG,iBAAiB,CAAC;AAEnD,MAAM,WAAW,kBAAkB;IACjC,SAAS,CAAC,EAAE,eAAe,CAAC;IAC5B,SAAS,CAAC,EAAE,kBAAkB,CAAC;IAC/B,SAAS,CAAC,EAAE,eAAe,CAAC;CAC7B;AAED,MAAM,MAAM,eAAe,GACvB,UAAU,GACV,KAAK,GACL,WAAW,GACX,KAAK,GACL,oBAAoB,GACpB,eAAe,GACf,qBAAqB,GACrB,eAAe,GACf,qBAAqB,GACrB,gBAAgB,GAChB,sBAAsB,GACtB,KAAK,GACL,WAAW,GACX,qBAAqB,GACrB,MAAM,GACN,YAAY,GACZ,MAAM,CAAC;AAEX,MAAM,MAAM,kBAAkB,GAAG,KAAK,GAAG,KAAK,GAAG,KAAK,GAAG,kBAAkB,GAAG,UAAU,CAAC;AAEzF,MAAM,WAAW,cAAc;IAC7B,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;IACpC,KAAK,EAAE,QAAQ,CAAC,kBAAkB,CAAC,CAAC;CACrC;AAED,MAAM,WAAW,oBAAoB;IACnC,KAAK,CAAC,EAAE,QAAQ,CA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AE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;CACxB;AAED,MAAM,WAAW,sBAAsB;IACrC,WAAW,EAAE,MAAM,CAAC;IACpB,UAAU,EAAE,SAAS,QAAQ,CAAC,mBAAmB,CAAC,EAAE,CAAC;IACrD,QAAQ,CAAC,EAAE,kBAAkB,CAAC;CAC/B;AAED,MAAM,MAAM,gBAAgB,GACxB,SAAS,GACT,WAAW,GACX,WAAW,GACX,SAAS,GACT,WAAW,GACX,WAAW,GACX,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,UAAU,GACV,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,SAAS,GACT,WAAW,GACX,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,UAAU,GACV,QAAQ,GACR,UAAU,GACV,UAAU,GACV,UAAU,GACV,OAAO,GACP,SAAS,GACT,SAAS,GACT,iBAAiB,GACjB,SAAS,GACT,WAAW,GACX,WAAW,GACX,QAAQ,GACR,UAAU,GACV,UAAU,GACV,eAAe,CAAC;AAEpB,MAAM,WAAW,eAAgB,SAAQ,qBAAqB;IAC5D,OAAO,CAAC,EAAE,SAAS,CAAC,QAAQ,CAAC,sBAAsB,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC,EAAE,CAAC;CAC5E;AAED,MAAM,MAAM,kBAAkB,GAAG,UAAU,GAAG,QAAQ,CAAC"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderPipeline.js","sourceRoot":"","sources":["../../src/types/WgpuRenderPipeline.ts"],"names":[],"mappings":"AA+CA,wFAAwF;AACxF,MAAM,CAAC,MAAM,cAAc,GAAG;IAC5B,GAAG,EAAE,GAAG;IACR,KAAK,EAAE,GAAG;IACV,IAAI,EAAE,GAAG;IACT,KAAK,EAAE,GAAG;IACV,GAAG,EAAE,GAAG;CACA,CAAC"}
|
|
@@ -0,0 +1,249 @@
|
|
|
1
|
+
import type { ColorScaleBias } from '@flighthq/adjustments/contract';
|
|
2
|
+
import type { EntityRaw, EntityRuntime, EntityRuntimeKey, Kind } from '@flighthq/entity/contract';
|
|
3
|
+
import type { ImageResource } from '@flighthq/image/contract';
|
|
4
|
+
import type { BlendMode, Material, TintMaterialData } from '@flighthq/materials/contract';
|
|
5
|
+
import type { WgpuCompressedTextureDecoder } from '@flighthq/render-wgpu/compressed-texture-decoder-contract';
|
|
6
|
+
import type { ExternalTexture, RenderTexture } from '@flighthq/render/contract';
|
|
7
|
+
import type { RenderProxy2D, RenderRegistries, RenderState, RenderStateRuntime, ShapeRasterizer } from '@flighthq/render/contract';
|
|
8
|
+
import type { SamplerLike, TextureSource } from '@flighthq/texture/contract';
|
|
9
|
+
import type { WgpuBindGroup } from './WgpuBindGroup.ts';
|
|
10
|
+
import type { WgpuBindGroupLayout } from './WgpuBindGroupLayout.ts';
|
|
11
|
+
import type { WgpuBuffer } from './WgpuBuffer.ts';
|
|
12
|
+
import type { WgpuColorAdjustmentMaterialFeature, WgpuColorAdjustmentMaterialFeatureGuard } from './WgpuColorAdjustmentMaterialFeature.ts';
|
|
13
|
+
import type { WgpuCommandEncoder } from './WgpuCommandEncoder.ts';
|
|
14
|
+
import type { WgpuCompressedTextureUploader } from './WgpuCompressedTextureUploader.ts';
|
|
15
|
+
import type { WgpuCustomMaterialShaderSource } from './WgpuCustomMaterialShaderSource.ts';
|
|
16
|
+
import type { WgpuDevice, WgpuDeviceLostInfo } from './WgpuDevice.ts';
|
|
17
|
+
import type { WgpuDeviceRuntime } from './WgpuDeviceRuntime.ts';
|
|
18
|
+
import type { WgpuDeviceState } from './WgpuDeviceState.ts';
|
|
19
|
+
import type { WgpuEffectRegistration } from './WgpuEffectState.ts';
|
|
20
|
+
import type { WgpuMeshMaterialRenderer } from './WgpuMeshMaterialRenderer.ts';
|
|
21
|
+
import type { WgpuModifierSnippet } from './WgpuModifierSnippet.ts';
|
|
22
|
+
import type { WgpuParticleResources } from './WgpuParticleResources.ts';
|
|
23
|
+
import type { WgpuQuadBatchResources } from './WgpuQuadBatchResources.ts';
|
|
24
|
+
import type { WgpuQuadMaterialRenderer } from './WgpuQuadMaterialRenderer.ts';
|
|
25
|
+
import type { WgpuRenderPass, WgpuRenderPassViewport } from './WgpuRenderPass.ts';
|
|
26
|
+
import type { WgpuRenderPassEncoder } from './WgpuRenderPassEncoder.ts';
|
|
27
|
+
import type { WgpuRenderPipeline } from './WgpuRenderPipeline.ts';
|
|
28
|
+
import type { WgpuRenderTarget, WgpuScreenRenderTarget } from './WgpuRenderTarget.ts';
|
|
29
|
+
import type { WgpuRenderTextureEntry, WgpuRenderTextureGuard } from './WgpuRenderTexture.ts';
|
|
30
|
+
import type { WgpuSampler } from './WgpuSampler.ts';
|
|
31
|
+
import type { WgpuScene3DPass } from './WgpuScene3DRuntime.ts';
|
|
32
|
+
import type { WgpuShaderModule } from './WgpuShaderModule.ts';
|
|
33
|
+
import type { WgpuSkinningAdapter } from './WgpuSkinningAdapter.ts';
|
|
34
|
+
import type { WgpuTexture } from './WgpuTexture.ts';
|
|
35
|
+
import type { WgpuTextureFormat } from './WgpuTextureFormat.ts';
|
|
36
|
+
import type { WgpuTextureResolver } from './WgpuTextureResolver.ts';
|
|
37
|
+
import type { WgpuTextureView } from './WgpuTextureView.ts';
|
|
38
|
+
import type { WgpuVelocityWriter } from './WgpuVelocityWriter.ts';
|
|
39
|
+
export interface WgpuRenderState extends RenderState {
|
|
40
|
+
applyBlendMode: ((state: WgpuRenderState, blendMode: BlendMode | null) => void) | null;
|
|
41
|
+
deviceState: WgpuDeviceState;
|
|
42
|
+
device: WgpuDevice;
|
|
43
|
+
format: WgpuTextureFormat;
|
|
44
|
+
registries: Readonly<WgpuRenderRegistries>;
|
|
45
|
+
}
|
|
46
|
+
/**
|
|
47
|
+
* The outcome of deriving a second render pipeline over an existing one.
|
|
48
|
+
*
|
|
49
|
+
* Method-tight: `reason` names what happened, and the payload for each arm is exactly what that arm
|
|
50
|
+
* can supply. A dead GPUDevice cannot back a new pipeline, and that is an expected outcome rather
|
|
51
|
+
* than a programmer error — so it is reported, not thrown. `info` is the device's own loss report,
|
|
52
|
+
* carried through unchanged; nothing here claims a device can be rebuilt or recovered.
|
|
53
|
+
*/
|
|
54
|
+
export type WgpuOffscreenRenderStateResult = EntityRaw & {
|
|
55
|
+
[EntityRuntimeKey]: EntityRuntime | undefined;
|
|
56
|
+
} & ({
|
|
57
|
+
readonly reason: 'device-lost';
|
|
58
|
+
readonly info: WgpuDeviceLostInfo;
|
|
59
|
+
} | {
|
|
60
|
+
readonly reason: 'ok';
|
|
61
|
+
readonly state: WgpuRenderState;
|
|
62
|
+
});
|
|
63
|
+
export interface WgpuRenderRegistries extends RenderRegistries {
|
|
64
|
+
colorAdjustmentFeature?: WgpuColorAdjustmentMaterialFeature | null;
|
|
65
|
+
colorAdjustmentFeatureGuard?: WgpuColorAdjustmentMaterialFeatureGuard | null;
|
|
66
|
+
compressedTextureDecoder: WgpuCompressedTextureDecoder | null;
|
|
67
|
+
compressedTextureUpload: WgpuCompressedTextureUploader | null;
|
|
68
|
+
customMaterialShaders: ReadonlyMap<Kind, WgpuCustomMaterialShaderSource>;
|
|
69
|
+
gpuSkinning: WgpuSkinningAdapter | null;
|
|
70
|
+
materialRenderers: ReadonlyMap<Kind, WgpuMeshMaterialRenderer | WgpuQuadMaterialRenderer>;
|
|
71
|
+
modifierSnippets: ReadonlyMap<Kind, WgpuModifierSnippet>;
|
|
72
|
+
effects: ReadonlyMap<Kind, WgpuEffectRegistration>;
|
|
73
|
+
passes: readonly WgpuScene3DPass[] | null;
|
|
74
|
+
shapeRasterizer: ShapeRasterizer | null;
|
|
75
|
+
textureResolvers: ReadonlyMap<Kind, WgpuTextureResolver>;
|
|
76
|
+
velocityWriters: ReadonlyMap<Kind, WgpuVelocityWriter>;
|
|
77
|
+
}
|
|
78
|
+
export interface WgpuColorAdjustmentFlush {
|
|
79
|
+
data: Float32Array | Uint32Array;
|
|
80
|
+
floats: number;
|
|
81
|
+
module: WgpuShaderModule;
|
|
82
|
+
}
|
|
83
|
+
export interface WgpuBindGroupLayouts extends EntityRaw {
|
|
84
|
+
[EntityRuntimeKey]: EntityRuntime | undefined;
|
|
85
|
+
textureBindGroupLayout: WgpuBindGroupLayout;
|
|
86
|
+
uniformBindGroupLayout: WgpuBindGroupLayout;
|
|
87
|
+
}
|
|
88
|
+
export interface WgpuRenderStateRuntime extends RenderStateRuntime {
|
|
89
|
+
context: WgpuDeviceRuntime;
|
|
90
|
+
registries: WgpuRenderRegistries;
|
|
91
|
+
modifierSnippetRevision: number;
|
|
92
|
+
applyBlendModeParent: WgpuRenderState | null;
|
|
93
|
+
currentBlendMode: BlendMode | null;
|
|
94
|
+
teardowns: ((state: WgpuRenderState) => void)[];
|
|
95
|
+
borrowedSurfaceExtent: {
|
|
96
|
+
readonly height: number;
|
|
97
|
+
readonly width: number;
|
|
98
|
+
} | null;
|
|
99
|
+
uniformBindGroupLayout: WgpuBindGroupLayout;
|
|
100
|
+
textureBindGroupLayout: WgpuBindGroupLayout;
|
|
101
|
+
uniformBuffer: WgpuBuffer;
|
|
102
|
+
uniformData: Float32Array;
|
|
103
|
+
uniformDataU32: Uint32Array;
|
|
104
|
+
uniformOffset: number;
|
|
105
|
+
uniformStride: number;
|
|
106
|
+
uniformBindGroup: WgpuBindGroup;
|
|
107
|
+
matrixArray: Float32Array;
|
|
108
|
+
pipelineCache: Map<string, WgpuRenderPipeline>;
|
|
109
|
+
linearSampler: WgpuSampler;
|
|
110
|
+
nearestSampler: WgpuSampler;
|
|
111
|
+
samplerCache: Map<number, WgpuSampler>;
|
|
112
|
+
mipmapDegradedGuard: ((state: WgpuRenderState) => void) | null;
|
|
113
|
+
mipmapGenerator: ((state: WgpuRenderState, texture: WgpuTexture, width: number, height: number, format: WgpuTextureFormat) => void) | null;
|
|
114
|
+
mipmapPipelineCache: Map<WgpuTextureFormat, {
|
|
115
|
+
bindGroupLayout: WgpuBindGroupLayout;
|
|
116
|
+
pipeline: WgpuRenderPipeline;
|
|
117
|
+
}>;
|
|
118
|
+
textureCache: WeakMap<CanvasImageSource, WgpuTextureEntry>;
|
|
119
|
+
textureSourcePremultipliedTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
|
|
120
|
+
textureSourcePremultipliedSrgbTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
|
|
121
|
+
textureSourceStraightTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
|
|
122
|
+
textureSourceStraightSrgbTextureCache: WeakMap<TextureSource, WgpuTextureSourceTextureEntry>;
|
|
123
|
+
videoTextureCache?: WeakMap<ImageResource, WgpuVideoTextureEntry>;
|
|
124
|
+
videoSrgbTextureCache?: WeakMap<ImageResource, WgpuVideoTextureEntry>;
|
|
125
|
+
wgpuExternalTextureCache?: WeakMap<ExternalTexture, WgpuTextureEntry>;
|
|
126
|
+
wgpuRenderTextureCache?: WeakMap<RenderTexture, WgpuRenderTextureEntry>;
|
|
127
|
+
wgpuRenderTextureGuard?: WgpuRenderTextureGuard | null;
|
|
128
|
+
defaultBitmapShader: WgpuBitmapShader | null;
|
|
129
|
+
webgpuShaderBindingResolver?: (renderProxy: RenderProxy2D) => WgpuBitmapShader | undefined;
|
|
130
|
+
particleInstanceBuffer: WgpuBuffer | null;
|
|
131
|
+
particleInstanceData: Float32Array | null;
|
|
132
|
+
particleInstanceCapacity: number;
|
|
133
|
+
quadBatchWriterBlendMode: BlendMode | null;
|
|
134
|
+
quadBatchWriterMaterial: Material | null;
|
|
135
|
+
quadBatchWriterMaterialRenderer: WgpuQuadMaterialRenderer | null;
|
|
136
|
+
quadBatchWriterMaterialFloats: number;
|
|
137
|
+
quadBatchWriterCount: number;
|
|
138
|
+
quadBatchWriterInstanceData: Float32Array;
|
|
139
|
+
quadBatchWriterMaterialData: Float32Array;
|
|
140
|
+
quadBatchWriterTexture: WgpuTextureEntry | null;
|
|
141
|
+
quadBatchWriterSampler: SamplerLike | null;
|
|
142
|
+
quadBatchWriterSmoothing: boolean | null;
|
|
143
|
+
quadBatchWriterColorScaleBiasMode?: number;
|
|
144
|
+
quadBatchWriterUniformColorScaleBias?: ColorScaleBias | TintMaterialData | Readonly<Float32Array> | null;
|
|
145
|
+
quadBatchWriterColorScaleBiasData?: Float32Array;
|
|
146
|
+
quadBatchWriterColorMatrixData?: Float32Array;
|
|
147
|
+
quadBatchWriterColorTintData?: Uint32Array;
|
|
148
|
+
quadBatchWriterBufferPool: WgpuQuadBatchWriterBufferSlot[];
|
|
149
|
+
quadBatchWriterBufferCursor: number;
|
|
150
|
+
meshInstanceBufferPool: WgpuMeshInstanceBufferSlot[];
|
|
151
|
+
meshInstanceBufferCursor: number;
|
|
152
|
+
sceneMeshUploadCache?: WeakMap<object, object> | null;
|
|
153
|
+
standardMaterialModule?: WgpuShaderModule;
|
|
154
|
+
colorScaleBiasModule?: WgpuShaderModule;
|
|
155
|
+
packedTintModule?: WgpuShaderModule;
|
|
156
|
+
colorMatrixModule?: WgpuShaderModule;
|
|
157
|
+
shapeMeshColorScaleBiasPipelines?: Map<string, WgpuShapeMeshPipeline>;
|
|
158
|
+
particleResources?: WgpuParticleResources;
|
|
159
|
+
quadBatchResources?: WgpuQuadBatchResources;
|
|
160
|
+
commandEncoder: WgpuCommandEncoder | null;
|
|
161
|
+
renderPass: WgpuRenderPassEncoder | null;
|
|
162
|
+
frameScreenTarget: WgpuScreenRenderTarget | null;
|
|
163
|
+
surfaceAntialiasResolveBindGroupLayout: WgpuBindGroupLayout | null;
|
|
164
|
+
surfaceAntialiasResolvePipeline: WgpuRenderPipeline | null;
|
|
165
|
+
clipForms: ('rect' | 'contour')[];
|
|
166
|
+
currentMaskDepth: number;
|
|
167
|
+
maskWriteMode: boolean;
|
|
168
|
+
clipContourPipelines?: Map<WgpuTextureFormat, WgpuClipContourPipelines>;
|
|
169
|
+
clipContourStack: WgpuClipContourEntry[];
|
|
170
|
+
retiredBuffers?: WgpuBuffer[];
|
|
171
|
+
retiredTextures?: WgpuTexture[];
|
|
172
|
+
shapeMeshPipelines?: Map<string, WgpuShapeMeshPipeline>;
|
|
173
|
+
scissorStack: WgpuScissorRect[];
|
|
174
|
+
currentScissorRect: WgpuScissorRect | null;
|
|
175
|
+
renderTargetViewport: WgpuRenderPassViewport | null;
|
|
176
|
+
currentColorFormat?: WgpuTextureFormat;
|
|
177
|
+
currentRenderTarget: WgpuRenderTarget | null;
|
|
178
|
+
passStack: WgpuRenderPass[];
|
|
179
|
+
}
|
|
180
|
+
export interface WgpuBitmapShader {
|
|
181
|
+
pipeline: WgpuRenderPipeline;
|
|
182
|
+
bind(state: WgpuRenderState, renderProxy: {
|
|
183
|
+
alpha: number;
|
|
184
|
+
}): void;
|
|
185
|
+
}
|
|
186
|
+
export interface WgpuClipContourEntry {
|
|
187
|
+
vertexBuffer: WgpuBuffer;
|
|
188
|
+
vertexCount: number;
|
|
189
|
+
uniformBuffer: WgpuBuffer;
|
|
190
|
+
bindGroup: WgpuBindGroup;
|
|
191
|
+
depth: number;
|
|
192
|
+
}
|
|
193
|
+
export interface WgpuClipContourPipelines {
|
|
194
|
+
write: WgpuRenderPipeline;
|
|
195
|
+
erase: WgpuRenderPipeline;
|
|
196
|
+
bindGroupLayout: WgpuBindGroupLayout;
|
|
197
|
+
}
|
|
198
|
+
export interface WgpuScissorRect {
|
|
199
|
+
height: number;
|
|
200
|
+
width: number;
|
|
201
|
+
x: number;
|
|
202
|
+
y: number;
|
|
203
|
+
}
|
|
204
|
+
export interface WgpuShapeMeshBuffers {
|
|
205
|
+
vertexBuffers: WgpuBuffer[];
|
|
206
|
+
vertexCapacities: number[];
|
|
207
|
+
indexBuffers: WgpuBuffer[];
|
|
208
|
+
indexCapacities: number[];
|
|
209
|
+
uniformBuffers: WgpuBuffer[];
|
|
210
|
+
bindGroups: WgpuBindGroup[];
|
|
211
|
+
colorScaleBiasUniformBuffers: WgpuBuffer[];
|
|
212
|
+
colorScaleBiasBindGroups: WgpuBindGroup[];
|
|
213
|
+
}
|
|
214
|
+
export interface WgpuShapeMeshPipeline {
|
|
215
|
+
pipeline: WgpuRenderPipeline;
|
|
216
|
+
bindGroupLayout: WgpuBindGroupLayout;
|
|
217
|
+
}
|
|
218
|
+
export interface WgpuQuadBatchWriterBufferSlot {
|
|
219
|
+
instanceBuffer: WgpuBuffer | null;
|
|
220
|
+
instanceCapacity: number;
|
|
221
|
+
materialBuffer: WgpuBuffer | null;
|
|
222
|
+
materialCapacity: number;
|
|
223
|
+
}
|
|
224
|
+
export interface WgpuMeshInstanceBufferSlot {
|
|
225
|
+
buffer: WgpuBuffer | null;
|
|
226
|
+
capacity: number;
|
|
227
|
+
}
|
|
228
|
+
export interface WgpuTextureResource {
|
|
229
|
+
mipLevelCount: number;
|
|
230
|
+
straightAlpha?: boolean;
|
|
231
|
+
texture: WgpuTexture;
|
|
232
|
+
view: WgpuTextureView;
|
|
233
|
+
}
|
|
234
|
+
export type WgpuTextureBindings = Map<WgpuSampler, WgpuBindGroup>;
|
|
235
|
+
export interface WgpuTextureEntry extends WgpuTextureResource, EntityRaw {
|
|
236
|
+
[EntityRuntimeKey]: EntityRuntime | undefined;
|
|
237
|
+
bindings: WgpuTextureBindings;
|
|
238
|
+
sampler?: WgpuSampler;
|
|
239
|
+
}
|
|
240
|
+
export interface WgpuTextureSourceTextureEntry extends WgpuTextureEntry {
|
|
241
|
+
version: number;
|
|
242
|
+
}
|
|
243
|
+
export interface WgpuVideoTextureEntry extends WgpuTextureEntry {
|
|
244
|
+
height: number;
|
|
245
|
+
sampler: WgpuSampler;
|
|
246
|
+
uploadedVersion: number;
|
|
247
|
+
width: number;
|
|
248
|
+
}
|
|
249
|
+
//# sourceMappingURL=WgpuRenderState.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderState.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderState.ts"],"names":[],"mappings":"AAAA,OAAO,KA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AI,CAAC;IAC1B,QAAQ,EAAE,MAAM,CAAC;CAClB;AAQD,MAAM,WAAW,mBAAmB;IAClC,aAAa,EAAE,MAAM,CAAC;IAGtB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,OAAO,EAAE,WAAW,CAAC;IACrB,IAAI,EAAE,eAAe,CAAC;CACvB;AAYD,MAAM,MAAM,mBAAmB,GAAG,GAAG,CAAC,WAAW,EAAE,aAAa,CAAC,CAAC;AAIlE,MAAM,WAAW,gBAAiB,SAAQ,mBAAmB,EAAE,SAAS;IACtE,CAAC,gBAAgB,CAAC,EAAE,aAAa,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,mBAAmB,CAAC;IAI9B,OAAO,CAAC,EAAE,WAAW,CAAC;CACvB;AAGD,MAAM,WAAW,6BAA8B,SAAQ,gBAAgB;IACrE,OAAO,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,qBAAsB,SAAQ,gBAAgB;IAC7D,MAAM,EAAE,MAAM,CAAC;IACf,OAAO,EAAE,WAAW,CAAC;IACrB,eAAe,EAAE,MAAM,CAAC;IACxB,KAAK,EAAE,MAAM,CAAC;CACf"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderState.js","sourceRoot":"","sources":["../../src/types/WgpuRenderState.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import type { Kind } from '@flighthq/entity/contract';
|
|
2
|
+
import type { WgpuCompressedTextureDecoder } from '@flighthq/render-wgpu/compressed-texture-decoder-contract';
|
|
3
|
+
import type { RenderStateOptions, ShapeRasterizer } from '@flighthq/render/contract';
|
|
4
|
+
import type { WgpuColorAdjustmentMaterialFeature, WgpuColorAdjustmentMaterialFeatureGuard } from './WgpuColorAdjustmentMaterialFeature.ts';
|
|
5
|
+
import type { WgpuCompressedTextureUploader } from './WgpuCompressedTextureUploader.ts';
|
|
6
|
+
import type { WgpuCustomMaterialShaderSource } from './WgpuCustomMaterialShaderSource.ts';
|
|
7
|
+
import type { WgpuEffectRegistration } from './WgpuEffectState.ts';
|
|
8
|
+
import type { WgpuMeshMaterialRenderer } from './WgpuMeshMaterialRenderer.ts';
|
|
9
|
+
import type { WgpuModifierSnippet } from './WgpuModifierSnippet.ts';
|
|
10
|
+
import type { WgpuQuadMaterialRenderer } from './WgpuQuadMaterialRenderer.ts';
|
|
11
|
+
import type { WgpuRenderOptions } from './WgpuRenderOptions.ts';
|
|
12
|
+
import type { WgpuScene3DPass } from './WgpuScene3DRuntime.ts';
|
|
13
|
+
import type { WgpuSkinningAdapter } from './WgpuSkinningAdapter.ts';
|
|
14
|
+
import type { WgpuTextureResolver } from './WgpuTextureResolver.ts';
|
|
15
|
+
import type { WgpuVelocityWriter } from './WgpuVelocityWriter.ts';
|
|
16
|
+
export interface WgpuRenderStateOptions extends RenderStateOptions, WgpuRenderOptions {
|
|
17
|
+
colorAdjustmentFeature?: WgpuColorAdjustmentMaterialFeature | null;
|
|
18
|
+
colorAdjustmentFeatureGuard?: WgpuColorAdjustmentMaterialFeatureGuard | null;
|
|
19
|
+
compressedTextureDecoder?: WgpuCompressedTextureDecoder | null;
|
|
20
|
+
compressedTextureUpload?: WgpuCompressedTextureUploader | null;
|
|
21
|
+
customMaterialShaders?: ReadonlyMap<Kind, WgpuCustomMaterialShaderSource>;
|
|
22
|
+
effects?: ReadonlyMap<Kind, WgpuEffectRegistration>;
|
|
23
|
+
gpuSkinning?: WgpuSkinningAdapter | null;
|
|
24
|
+
materialRenderers?: ReadonlyMap<Kind, WgpuMeshMaterialRenderer | WgpuQuadMaterialRenderer>;
|
|
25
|
+
modifierSnippets?: ReadonlyMap<Kind, WgpuModifierSnippet>;
|
|
26
|
+
passes?: readonly WgpuScene3DPass[] | null;
|
|
27
|
+
shapeRasterizer?: ShapeRasterizer | null;
|
|
28
|
+
textureResolvers?: ReadonlyMap<Kind, WgpuTextureResolver>;
|
|
29
|
+
velocityWriters?: ReadonlyMap<Kind, WgpuVelocityWriter>;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=WgpuRenderStateOptions.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"WgpuRenderStateOptions.d.ts","sourceRoot":"","sources":["../../src/types/WgpuRenderStateOptions.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,IAAI,EAAE,MAAM,2BAA2B,CAAC;AACtD,OAAO,KAAK,EAAE,4BAA4B,EAAE,MAAM,2DAA2D,CAAC;AAC9G,OAAO,KAAK,EAAE,kBAAkB,EAAE,eAAe,EAAE,MAAM,2BAA2B,CAAC;AAErF,OAAO,KAAK,EACV,kCAAkC,EAClC,uCAAuC,EACxC,MAAM,yCAAyC,CAAC;AACjD,OAAO,KAAK,EAAE,6BAA6B,EAAE,MAAM,oCAAoC,CAAC;AACxF,OAAO,KAAK,EAAE,8BAA8B,EAAE,MAAM,qCAAqC,CAAC;AAC1F,OAAO,KAAK,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAC;AACnE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,wBAAwB,EAAE,MAAM,+BAA+B,CAAC;AAC9E,OAAO,KAAK,EAAE,iBAAiB,EAAE,MAAM,wBAAwB,CAAC;AAChE,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAC/D,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,mBAAmB,EAAE,MAAM,0BAA0B,CAAC;AACpE,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,yBAAyB,CAAC;AAElE,MAAM,WAAW,sBAAuB,SAAQ,kBAAkB,EAAE,iBAAiB;IACnF,sBAAsB,CAAC,EAAE,kCAAkC,GAAG,IAAI,CAAC;IACnE,2BA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