@carbonenginejs/runtime 0.1.0-alpha.4 → 0.1.0-alpha.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/global/blue/BlueClasses.js +200 -0
- package/dist/global/blue/BlueClasses.js.map +1 -0
- package/dist/global/blue/IBlueClasses.js +79 -0
- package/dist/global/blue/IBlueClasses.js.map +1 -0
- package/dist/global/blue/IBlueDynamicResourceConstructor.js +16 -0
- package/dist/global/blue/IBlueDynamicResourceConstructor.js.map +1 -1
- package/dist/global/blue/blue.js +8 -2
- package/dist/global/blue/blue.js.map +1 -1
- package/dist/global/blue/index.js +2 -0
- package/dist/global/blue/index.js.map +1 -1
- package/dist/global/consts/index.js +0 -1
- package/dist/global/consts/index.js.map +1 -1
- package/dist/global/consts/renderContext/formats.js +26 -25
- package/dist/global/consts/renderContext/formats.js.map +1 -1
- package/dist/{trinityal/Tr2BitmapDimensions.js → global/imageio/BitmapDimensions.js} +19 -15
- package/dist/global/imageio/BitmapDimensions.js.map +1 -0
- package/dist/global/imageio/Cutout.js +28 -0
- package/dist/global/imageio/Cutout.js.map +1 -0
- package/dist/global/imageio/HostBitmap.js +1106 -0
- package/dist/global/imageio/HostBitmap.js.map +1 -0
- package/dist/global/imageio/ImageIOResult.js +99 -0
- package/dist/global/imageio/ImageIOResult.js.map +1 -0
- package/dist/global/imageio/ImageUtility.js +205 -0
- package/dist/global/imageio/ImageUtility.js.map +1 -0
- package/dist/global/imageio/LoadParameters.js +86 -0
- package/dist/global/imageio/LoadParameters.js.map +1 -0
- package/dist/global/imageio/Metadata.js +22 -0
- package/dist/global/imageio/Metadata.js.map +1 -0
- package/dist/global/imageio/index.js +8 -0
- package/dist/global/{consts/webgpu → imageio}/index.js.map +1 -1
- package/dist/global/index.js +2 -1
- package/dist/global/index.js.map +1 -1
- package/dist/global/math/color.js +1 -1
- package/dist/global/math/color.js.map +1 -1
- package/dist/global/schema/CjsSchema.js +8 -0
- package/dist/global/schema/CjsSchema.js.map +1 -1
- package/dist/index.js +12 -4
- package/dist/index.js.map +1 -1
- package/dist/resource/CjsResMan.js +47 -7
- package/dist/resource/CjsResMan.js.map +1 -1
- package/dist/resource/Tr2LightProfileRes.js +37 -0
- package/dist/resource/Tr2LightProfileRes.js.map +1 -1
- package/dist/resource/format/CjsByteWriter.js +46 -46
- package/dist/resource/format/CjsByteWriter.js.map +1 -1
- package/dist/resource/format/CjsFormat.js +7 -8
- package/dist/resource/format/CjsFormat.js.map +1 -1
- package/dist/resource/format/CjsFormatStore.js +8 -8
- package/dist/resource/format/CjsFormatStore.js.map +1 -1
- package/dist/resource/format/CjsGeometryFormat.js +114 -0
- package/dist/resource/format/CjsGeometryFormat.js.map +1 -0
- package/dist/resource/format/CjsImageFormat.js +282 -0
- package/dist/resource/format/CjsImageFormat.js.map +1 -0
- package/dist/resource/format/CjsResourceProbe.js +12 -48
- package/dist/resource/format/CjsResourceProbe.js.map +1 -1
- package/dist/resource/format/CjsStringTable.js +37 -37
- package/dist/resource/format/CjsStringTable.js.map +1 -1
- package/dist/resource/format/carbonEffect/CjsCarbonEffectReader.js +10 -10
- package/dist/resource/format/carbonEffect/CjsCarbonEffectReader.js.map +1 -1
- package/dist/resource/format/carbonEffect/CjsCarbonEffectWriter.js +37 -37
- package/dist/resource/format/carbonEffect/CjsCarbonEffectWriter.js.map +1 -1
- package/dist/resource/format/carbonEffect/carbonEffectBackendBlock.js +35 -7
- package/dist/resource/format/carbonEffect/carbonEffectBackendBlock.js.map +1 -1
- package/dist/resource/format/index.js +3 -1
- package/dist/resource/format/index.js.map +1 -1
- package/dist/resource/formats/black/CjsBlackFormat.js +130 -137
- package/dist/resource/formats/black/CjsBlackFormat.js.map +1 -1
- package/dist/resource/formats/bnk/CjsBnkFormat.js +12 -19
- package/dist/resource/formats/bnk/CjsBnkFormat.js.map +1 -1
- package/dist/resource/formats/bnk/core/helpers.js +1 -3
- package/dist/resource/formats/bnk/core/helpers.js.map +1 -1
- package/dist/resource/formats/cmf/CjsCmfFormat.js +19 -82
- package/dist/resource/formats/cmf/CjsCmfFormat.js.map +1 -1
- package/dist/resource/formats/cmf/core/constants.js +1 -2
- package/dist/resource/formats/cmf/core/constants.js.map +1 -1
- package/dist/resource/formats/{stl/core/targets.js → cmf/core/flatShared.js} +9 -8
- package/dist/resource/formats/cmf/core/flatShared.js.map +1 -0
- package/dist/resource/formats/cmf/core/helpers.js +13 -13
- package/dist/resource/formats/cmf/core/helpers.js.map +1 -1
- package/dist/resource/formats/cmf/core/writer.js +24 -24
- package/dist/resource/formats/cmf/core/writer.js.map +1 -1
- package/dist/resource/formats/dds/CjsDdsFormat.js +134 -17
- package/dist/resource/formats/dds/CjsDdsFormat.js.map +1 -1
- package/dist/resource/formats/dds/core/helpers.js +125 -40
- package/dist/resource/formats/dds/core/helpers.js.map +1 -1
- package/dist/resource/formats/dxbc/CjsDxbcFormat.js +14 -16
- package/dist/resource/formats/dxbc/CjsDxbcFormat.js.map +1 -1
- package/dist/resource/formats/dxbc/core/{container.js → DxbcContainer.js} +2 -2
- package/dist/resource/formats/dxbc/core/DxbcContainer.js.map +1 -0
- package/dist/resource/formats/dxbc/core/{errors.js → DxbcReadError.js} +1 -1
- package/dist/resource/formats/dxbc/core/DxbcReadError.js.map +1 -0
- package/dist/resource/formats/dxbc/core/DxbcReader.js +1 -1
- package/dist/resource/formats/dxbc/core/DxbcReader.js.map +1 -1
- package/dist/resource/formats/dxbc/core/{program.js → DxbcShaderProgram.js} +2 -2
- package/dist/resource/formats/dxbc/core/DxbcShaderProgram.js.map +1 -0
- package/dist/resource/formats/dxbc/core/{signature.js → DxbcSignatureChunk.js} +2 -2
- package/dist/resource/formats/dxbc/core/DxbcSignatureChunk.js.map +1 -0
- package/dist/resource/formats/dxbc/core/decoder.js +2 -2
- package/dist/resource/formats/dxbc/core/decoder.js.map +1 -1
- package/dist/resource/formats/dxbc/core/helpers.js +3 -3
- package/dist/resource/formats/dxbc/core/helpers.js.map +1 -1
- package/dist/resource/formats/fbx/CjsFbxFormat.js +18 -20
- package/dist/resource/formats/fbx/CjsFbxFormat.js.map +1 -1
- package/dist/resource/formats/flac/CjsFlacFormat.js +7 -13
- package/dist/resource/formats/flac/CjsFlacFormat.js.map +1 -1
- package/dist/resource/formats/fsd/32/CjsFsd32Format.js +29 -29
- package/dist/resource/formats/fsd/32/CjsFsd32Format.js.map +1 -1
- package/dist/resource/formats/fsd/64/CjsFsd64Format.js +3 -3
- package/dist/resource/formats/fsd/64/CjsFsd64Format.js.map +1 -1
- package/dist/resource/formats/fsd/64/core/CjsFsd64Binary.js +23 -23
- package/dist/resource/formats/fsd/64/core/CjsFsd64Binary.js.map +1 -1
- package/dist/resource/formats/fsd/64/core/CjsFsd64Reader.js +8 -8
- package/dist/resource/formats/fsd/64/core/CjsFsd64Reader.js.map +1 -1
- package/dist/resource/formats/fsd/CjsFsdFormat.js +23 -23
- package/dist/resource/formats/fsd/CjsFsdFormat.js.map +1 -1
- package/dist/resource/formats/gif/CjsGifFormat.js +24 -15
- package/dist/resource/formats/gif/CjsGifFormat.js.map +1 -1
- package/dist/resource/formats/gltf/CjsGltfFormat.js +33 -98
- package/dist/resource/formats/gltf/CjsGltfFormat.js.map +1 -1
- package/dist/resource/formats/gltf/core/helpers.js +3 -12
- package/dist/resource/formats/gltf/core/helpers.js.map +1 -1
- package/dist/resource/formats/gr2/CjsGr2Format.js +27 -91
- package/dist/resource/formats/gr2/CjsGr2Format.js.map +1 -1
- package/dist/resource/formats/hlsl/CjsHlslFormat.js +22 -25
- package/dist/resource/formats/hlsl/CjsHlslFormat.js.map +1 -1
- package/dist/resource/formats/hlsl/core/carbonDescriptionToRuntime.js +1 -1
- package/dist/resource/formats/hlsl/core/carbonDescriptionToRuntime.js.map +1 -1
- package/dist/resource/formats/hlsl/core/tr2/shader/HlslEffectStageInput.js +3 -3
- package/dist/resource/formats/hlsl/core/tr2/shader/HlslEffectStageInput.js.map +1 -1
- package/dist/resource/formats/ies/CjsIESFormat.js +29 -29
- package/dist/resource/formats/ies/CjsIESFormat.js.map +1 -1
- package/dist/resource/formats/jpeg/CjsJpegFormat.js +24 -15
- package/dist/resource/formats/jpeg/CjsJpegFormat.js.map +1 -1
- package/dist/resource/formats/jpeg/core/helpers.js +3 -5
- package/dist/resource/formats/jpeg/core/helpers.js.map +1 -1
- package/dist/resource/formats/jpeg/core/jpeg.js +58 -58
- package/dist/resource/formats/jpeg/core/jpeg.js.map +1 -1
- package/dist/resource/formats/jsonl/CjsJsonlFormat.js +3 -3
- package/dist/resource/formats/jsonl/CjsJsonlFormat.js.map +1 -1
- package/dist/resource/formats/mp3/CjsMp3Format.js +7 -14
- package/dist/resource/formats/mp3/CjsMp3Format.js.map +1 -1
- package/dist/resource/formats/mp3/core/helpers.js +3 -5
- package/dist/resource/formats/mp3/core/helpers.js.map +1 -1
- package/dist/resource/formats/mp4/CjsMp4Format.js +7 -13
- package/dist/resource/formats/mp4/CjsMp4Format.js.map +1 -1
- package/dist/resource/formats/mp4/core/helpers.js +3 -5
- package/dist/resource/formats/mp4/core/helpers.js.map +1 -1
- package/dist/resource/formats/obj/CjsObjFormat.js +92 -157
- package/dist/resource/formats/obj/CjsObjFormat.js.map +1 -1
- package/dist/resource/formats/obj/core/helpers.js +5 -113
- package/dist/resource/formats/obj/core/helpers.js.map +1 -1
- package/dist/resource/formats/ogg/CjsOggFormat.js +7 -14
- package/dist/resource/formats/ogg/CjsOggFormat.js.map +1 -1
- package/dist/resource/formats/pickle/CjsPickleFormat.js +7 -12
- package/dist/resource/formats/pickle/CjsPickleFormat.js.map +1 -1
- package/dist/resource/formats/pickle/core/CjsPickleProtocol0Reader.js +7 -7
- package/dist/resource/formats/pickle/core/CjsPickleProtocol0Reader.js.map +1 -1
- package/dist/resource/formats/pickle/core/CjsPickleProtocol4Reader.js +7 -7
- package/dist/resource/formats/pickle/core/CjsPickleProtocol4Reader.js.map +1 -1
- package/dist/resource/formats/png/CjsPngFormat.js +40 -15
- package/dist/resource/formats/png/CjsPngFormat.js.map +1 -1
- package/dist/resource/formats/png/core/helpers.js +4 -6
- package/dist/resource/formats/png/core/helpers.js.map +1 -1
- package/dist/resource/formats/red/CjsRedFormat.js +22 -28
- package/dist/resource/formats/red/CjsRedFormat.js.map +1 -1
- package/dist/resource/formats/schemabound/CjsSchemaBoundFormat.js +3 -7
- package/dist/resource/formats/schemabound/CjsSchemaBoundFormat.js.map +1 -1
- package/dist/resource/formats/schemabound/core/schemaBoundValues.js +5 -0
- package/dist/resource/formats/schemabound/core/schemaBoundValues.js.map +1 -1
- package/dist/resource/formats/sqlite/CjsSqliteFormat.js +4 -9
- package/dist/resource/formats/sqlite/CjsSqliteFormat.js.map +1 -1
- package/dist/resource/formats/static/CjsStaticFormat.js +4 -4
- package/dist/resource/formats/static/CjsStaticFormat.js.map +1 -1
- package/dist/resource/formats/stl/CjsStlFormat.js +39 -104
- package/dist/resource/formats/stl/CjsStlFormat.js.map +1 -1
- package/dist/resource/formats/stl/core/helpers.js +5 -19
- package/dist/resource/formats/stl/core/helpers.js.map +1 -1
- package/dist/resource/formats/tga/CjsTgaFormat.js +26 -15
- package/dist/resource/formats/tga/CjsTgaFormat.js.map +1 -1
- package/dist/resource/formats/tga/core/helpers.js +3 -5
- package/dist/resource/formats/tga/core/helpers.js.map +1 -1
- package/dist/resource/formats/vta/CjsVtaFormat.js +8 -15
- package/dist/resource/formats/vta/CjsVtaFormat.js.map +1 -1
- package/dist/resource/formats/wav/CjsWavFormat.js +7 -14
- package/dist/resource/formats/wav/CjsWavFormat.js.map +1 -1
- package/dist/resource/formats/wav/core/helpers.js +3 -5
- package/dist/resource/formats/wav/core/helpers.js.map +1 -1
- package/dist/resource/formats/webgl/CjsWebglFormat.js +103 -105
- package/dist/resource/formats/webgl/CjsWebglFormat.js.map +1 -1
- package/dist/resource/formats/webgl/core/{errors.js → WebglReadError.js} +1 -1
- package/dist/resource/formats/webgl/core/WebglReadError.js.map +1 -0
- package/dist/resource/formats/webgl/core/effectPackage.js +1 -1
- package/dist/resource/formats/webgl/core/effectPackage.js.map +1 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js +3 -3
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js.map +1 -1
- package/dist/resource/formats/webgl/core/glsl/{DxbcGlslHelpers.js → DxbcGlslHelperRegistry.js} +2 -2
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslHelperRegistry.js.map +1 -0
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslOperandFormatter.js +1 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslOperandFormatter.js.map +1 -1
- package/dist/resource/formats/webgl/core/glslBackendBlock.js +1 -1
- package/dist/resource/formats/webgl/core/glslBackendBlock.js.map +1 -1
- package/dist/resource/formats/webgl/core/helpers.js.map +1 -1
- package/dist/resource/formats/webgpu/CjsWebgpuFormat.js +28 -29
- package/dist/resource/formats/webgpu/CjsWebgpuFormat.js.map +1 -1
- package/dist/resource/formats/webgpu/core/{errors.js → WebgpuReadError.js} +1 -1
- package/dist/resource/formats/webgpu/core/WebgpuReadError.js.map +1 -0
- package/dist/resource/formats/webgpu/core/carbonWebgpu/validateContainer.js +1 -1
- package/dist/resource/formats/webgpu/core/carbonWebgpu/validateContainer.js.map +1 -1
- package/dist/resource/formats/webgpu/core/helpers.js +1 -1
- package/dist/resource/formats/webgpu/core/helpers.js.map +1 -1
- package/dist/resource/formats/webgpu/core/ir/lowerDxbcToIr.js +1 -1
- package/dist/resource/formats/webgpu/core/ir/lowerDxbcToIr.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/buildWgslSet.js +18 -6
- package/dist/resource/formats/webgpu/core/wgsl/buildWgslSet.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/lowerBindingLayout.js +39 -13
- package/dist/resource/formats/webgpu/core/wgsl/lowerBindingLayout.js.map +1 -1
- package/dist/resource/formats/webgpu/core/wgsl/lowerCreateHistogramsComputeProgram.js +16 -14
- package/dist/resource/formats/webgpu/core/wgsl/lowerCreateHistogramsComputeProgram.js.map +1 -1
- package/dist/resource/formats/webm/CjsWebmFormat.js +8 -13
- package/dist/resource/formats/webm/CjsWebmFormat.js.map +1 -1
- package/dist/resource/formats/webm/core/helpers.js +3 -5
- package/dist/resource/formats/webm/core/helpers.js.map +1 -1
- package/dist/resource/formats/webp/CjsWebpFormat.js +8 -12
- package/dist/resource/formats/webp/CjsWebpFormat.js.map +1 -1
- package/dist/resource/formats/wem/CjsWemFormat.js +9 -17
- package/dist/resource/formats/wem/CjsWemFormat.js.map +1 -1
- package/dist/resource/formats/wem/core/bitStream.js +35 -35
- package/dist/resource/formats/wem/core/bitStream.js.map +1 -1
- package/dist/resource/formats/wem/core/helpers.js +1 -3
- package/dist/resource/formats/wem/core/helpers.js.map +1 -1
- package/dist/resource/formats/yaml/CjsYamlFormat.js +28 -37
- package/dist/resource/formats/yaml/CjsYamlFormat.js.map +1 -1
- package/dist/resource/imageio/ImageIO.js +142 -0
- package/dist/resource/imageio/ImageIO.js.map +1 -0
- package/dist/resource/imageio/index.js +17 -0
- package/dist/resource/imageio/index.js.map +1 -0
- package/dist/resource/index.js +7 -0
- package/dist/resource/index.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectResource.js +24 -2
- package/dist/resource/shader/reflection/Tr2EffectResource.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2Pass.js +76 -5
- package/dist/resource/shader/reflection/Tr2Pass.js.map +1 -1
- package/dist/resource/texture/CjsTextureArrayConstructor.js +97 -0
- package/dist/resource/texture/CjsTextureArrayConstructor.js.map +1 -0
- package/dist/resource/texture/CjsTexturePackConstructor.js +160 -0
- package/dist/resource/texture/CjsTexturePackConstructor.js.map +1 -0
- package/dist/resource/texture/CjsTexturePipelineStepArray.js +72 -0
- package/dist/resource/texture/CjsTexturePipelineStepArray.js.map +1 -0
- package/dist/resource/texture/CjsTexturePipelineStepConvert.js +73 -0
- package/dist/resource/texture/CjsTexturePipelineStepConvert.js.map +1 -0
- package/dist/resource/texture/CjsTexturePipelineStepPack.js +71 -0
- package/dist/resource/texture/CjsTexturePipelineStepPack.js.map +1 -0
- package/dist/resource/texture/CjsTexturePipelineStepResize.js +123 -0
- package/dist/resource/texture/CjsTexturePipelineStepResize.js.map +1 -0
- package/dist/resource/texture/SolidColorTextureConstructor.js +11 -1
- package/dist/resource/texture/SolidColorTextureConstructor.js.map +1 -1
- package/dist/resource/texture/Tr2ImageRes.js +100 -68
- package/dist/resource/texture/Tr2ImageRes.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipeline.js +45 -25
- package/dist/resource/texture/Tr2TexturePipeline.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepCompress.js +34 -1
- package/dist/resource/texture/Tr2TexturePipelineStepCompress.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepGenerateMips.js +30 -3
- package/dist/resource/texture/Tr2TexturePipelineStepGenerateMips.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLimitSize.js +81 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLimitSize.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLoad.js +36 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLoad.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepPack.js +146 -24
- package/dist/resource/texture/Tr2TexturePipelineStepPack.js.map +1 -1
- package/dist/resource/texture/TriTextureRes.js +151 -29
- package/dist/resource/texture/TriTextureRes.js.map +1 -1
- package/dist/resource/texture/index.js +7 -0
- package/dist/resource/texture/index.js.map +1 -1
- package/dist/resource/texture/registerTextureResources.js +83 -0
- package/dist/resource/texture/registerTextureResources.js.map +1 -0
- package/dist/resource/texture/solidColorTexture.js +10 -19
- package/dist/resource/texture/solidColorTexture.js.map +1 -1
- package/dist/sof/EveSOF.js +39 -7
- package/dist/sof/EveSOF.js.map +1 -1
- package/dist/trinity/core/Tr2GpuResourcePool/Tr2GpuResourcePool.js +2 -2
- package/dist/trinity/core/Tr2GpuResourcePool/Tr2GpuResourcePool.js.map +1 -1
- package/dist/trinity/core/Tr2ImageIOHelpers.js +80 -17
- package/dist/trinity/core/Tr2ImageIOHelpers.js.map +1 -1
- package/dist/trinity/core/Tr2RenderUtils.js +1 -1
- package/dist/trinity/core/Tr2TextureArray/Tr2TextureArray.js +49 -62
- package/dist/trinity/core/Tr2TextureArray/Tr2TextureArray.js.map +1 -1
- package/dist/trinity/core/Tr2TextureReference.js +114 -0
- package/dist/trinity/core/Tr2TextureReference.js.map +1 -0
- package/dist/trinity/core/device/Tr2DepthStencil.js +2 -2
- package/dist/trinity/core/device/Tr2DepthStencil.js.map +1 -1
- package/dist/trinity/core/device/Tr2RingBuffer/Tr2RingBuffer.js +1 -1
- package/dist/trinity/core/index.js +1 -0
- package/dist/trinity/core/index.js.map +1 -1
- package/dist/trinity/core/lighting/Tr2LightManager.js +5 -4
- package/dist/trinity/core/lighting/Tr2LightManager.js.map +1 -1
- package/dist/trinity/core/procedural/GradientTextureConstructor.js +5 -4
- package/dist/trinity/core/procedural/GradientTextureConstructor.js.map +1 -1
- package/dist/trinity/core/procedural/gradientTexture.js +10 -13
- package/dist/trinity/core/procedural/gradientTexture.js.map +1 -1
- package/dist/trinity/core/volumetrics/Tr2VolumetricsRenderer.js +1 -1
- package/dist/trinity/core/volumetrics/Tr2VolumetricsRenderer.js.map +1 -1
- package/dist/trinity/eve/EveImpactOverlay.js +102 -50
- package/dist/trinity/eve/EveImpactOverlay.js.map +1 -1
- package/dist/trinity/eve/EveModularObjectModifier.js +9 -18
- package/dist/trinity/eve/EveModularObjectModifier.js.map +1 -1
- package/dist/trinity/eve/attachment/turrets/EveTurretSet.js +175 -157
- package/dist/trinity/eve/attachment/turrets/EveTurretSet.js.map +1 -1
- package/dist/trinity/eve/attachment/turrets/EveTurretTarget.js +100 -83
- package/dist/trinity/eve/attachment/turrets/EveTurretTarget.js.map +1 -1
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMesh.js +26 -20
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMesh.js.map +1 -1
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshes.js +368 -179
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshes.js.map +1 -1
- package/dist/trinity/eve/child/EveChildMesh.js +242 -234
- package/dist/trinity/eve/child/EveChildMesh.js.map +1 -1
- package/dist/trinity/eve/child/EveChildTurret.js +57 -16
- package/dist/trinity/eve/child/EveChildTurret.js.map +1 -1
- package/dist/trinity/eve/child/EveSpaceObjectChild.js +28 -1
- package/dist/trinity/eve/child/EveSpaceObjectChild.js.map +1 -1
- package/dist/trinity/eve/index.js +2 -2
- package/dist/trinity/eve/overlays/EveDamageOverlay.js +5 -1
- package/dist/trinity/eve/overlays/EveDamageOverlay.js.map +1 -1
- package/dist/trinity/eve/scene/EveSpaceScene.js +234 -233
- package/dist/trinity/eve/scene/EveSpaceScene.js.map +1 -1
- package/dist/trinity/eve/scene/EveSpaceSceneRenderDriver.js +2 -0
- package/dist/trinity/eve/scene/EveSpaceSceneRenderDriver.js.map +1 -1
- package/dist/trinity/eve/spaceObject/EveSpaceObject2.js +492 -437
- package/dist/trinity/eve/spaceObject/EveSpaceObject2.js.map +1 -1
- package/dist/trinity/generated/index.js +0 -1
- package/dist/trinity/generated/index.js.map +1 -1
- package/dist/trinity/generated/trinityCore/index.js +0 -1
- package/dist/trinity/generated/trinityCore/index.js.map +1 -1
- package/dist/trinity/index.js +3 -3
- package/dist/trinity/particle/emitter/Tr2GpuSharedEmitter.js +10 -1
- package/dist/trinity/particle/emitter/Tr2GpuSharedEmitter.js.map +1 -1
- package/dist/trinity/shader/Tr2DataTextureManager.js +152 -66
- package/dist/trinity/shader/Tr2DataTextureManager.js.map +1 -1
- package/dist/trinity/shader/Tr2Material.js +1 -1
- package/dist/trinityal/Tr2HalHelperStructures/Tr2TextureSubresource.js +5 -5
- package/dist/trinityal/Tr2HalHelperStructures/Tr2TextureSubresource.js.map +1 -1
- package/dist/trinityal/index.js +1 -1
- package/dist/trinityal/stub/Tr2RenderContextALStub/Tr2RenderContextALStub.js +2 -2
- package/dist/trinityal/stub/Tr2RenderContextALStub/Tr2RenderContextALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2SwapChainALStub.js +45 -45
- package/dist/trinityal/stub/Tr2SwapChainALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2TextureALStub.js +170 -170
- package/dist/trinityal/stub/Tr2TextureALStub.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuDevice.js +234 -164
- package/dist/trinityal/webgpu/CjsWebgpuDevice.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js +7 -0
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js +78 -14
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js.map +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuUtils.js +94 -0
- package/dist/trinityal/webgpu/core/CjsWebgpuUtils.js.map +1 -0
- package/dist/trinityal/webgpu/internal.js +1 -0
- package/dist/trinityal/webgpu/internal.js.map +1 -1
- package/docs/global/reference/classes/README.md +90 -0
- package/docs/resource/concepts/format-capabilities.md +3 -3
- package/docs/resource/formats/README.md +1 -1
- package/docs/resource/reference/classes/core.md +31 -1
- package/docs/resource/reference/classes/formats.md +7 -7
- package/docs/resource/reference/classes/resources.md +76 -16
- package/docs/trinity/reference/classes/generated.md +0 -10
- package/docs/trinity/reference/classes/trinity-core.md +1692 -1682
- package/docs/trinityal/reference/classes/README.md +0 -10
- package/docs/trinityal/webgpu/reference/classes/README.md +276 -266
- package/package.json +4 -3
- package/dist/global/consts/webgpu/index.js +0 -2
- package/dist/global/consts/webgpu/textureFormats.js +0 -180
- package/dist/global/consts/webgpu/textureFormats.js.map +0 -1
- package/dist/resource/formats/dxbc/core/container.js.map +0 -1
- package/dist/resource/formats/dxbc/core/errors.js.map +0 -1
- package/dist/resource/formats/dxbc/core/program.js.map +0 -1
- package/dist/resource/formats/dxbc/core/signature.js.map +0 -1
- package/dist/resource/formats/stl/core/targets.js.map +0 -1
- package/dist/resource/formats/webgl/core/errors.js.map +0 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslHelpers.js.map +0 -1
- package/dist/resource/formats/webgpu/core/errors.js.map +0 -1
- package/dist/resource/texture/texturePipelineBehavior.js +0 -332
- package/dist/resource/texture/texturePipelineBehavior.js.map +0 -1
- package/dist/trinity/generated/trinityCore/Tr2TextureReference.js +0 -40
- package/dist/trinity/generated/trinityCore/Tr2TextureReference.js.map +0 -1
- package/dist/trinityal/Tr2BitmapDimensions.js.map +0 -1
|
@@ -15,16 +15,6 @@ The base of every AL resource.
|
|
|
15
15
|
- Visibility: Public
|
|
16
16
|
- Kind: Carbon
|
|
17
17
|
|
|
18
|
-
<!-- class:Tr2BitmapDimensions -->
|
|
19
|
-
## `Tr2BitmapDimensions`
|
|
20
|
-
|
|
21
|
-
Texture type, format, size and mip layout, with the mip arithmetic every create, map and copy is described in.
|
|
22
|
-
|
|
23
|
-
- Export: `@carbonenginejs/runtime/trinityal`
|
|
24
|
-
- Source: `src/trinityal/Tr2BitmapDimensions.js`
|
|
25
|
-
- Visibility: Public
|
|
26
|
-
- Kind: Carbon
|
|
27
|
-
|
|
28
18
|
<!-- class:Tr2DrawUPHelper -->
|
|
29
19
|
## `Tr2DrawUPHelper`
|
|
30
20
|
|
|
@@ -1,269 +1,269 @@
|
|
|
1
|
-
# Class catalog
|
|
2
|
-
|
|
3
|
-
Status: Evolving
|
|
4
|
-
Scope: `@carbonenginejs/runtime/trinityal/webgpu` maintained classes
|
|
5
|
-
Audience: Users, maintainers, and automated readers
|
|
6
|
-
Summary: Provides one-sentence purpose descriptors for every maintained class in the WebGPU engine package.
|
|
7
|
-
|
|
8
|
-
<!-- class:CjsWebgpuRenderContextAL -->
|
|
9
|
-
## `CjsWebgpuRenderContextAL`
|
|
10
|
-
|
|
11
|
-
WebGPU behind Carbon's abstraction layer: holds the bound geometry and program state, validates it, and delegates the draw to a work queue.
|
|
12
|
-
|
|
13
|
-
- Export: Not exported
|
|
14
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuRenderContextAL.js`
|
|
15
|
-
- Visibility: Internal
|
|
16
|
-
- Kind: Carbon
|
|
17
|
-
|
|
18
|
-
<!-- class:CjsWebgpuWorkQueue -->
|
|
19
|
-
## `CjsWebgpuWorkQueue`
|
|
20
|
-
|
|
21
|
-
Owns the encoder lifetime for one frame, opening a render pass lazily on the work that needs one and folding the declared pass hint into its attachments.
|
|
22
|
-
|
|
23
|
-
- Export: Not exported
|
|
24
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuWorkQueue.js`
|
|
25
|
-
- Visibility: Internal
|
|
26
|
-
- Kind: Carbon
|
|
27
|
-
|
|
28
|
-
<!-- class:CjsWebgpuPackage -->
|
|
29
|
-
## `CjsWebgpuPackage`
|
|
30
|
-
|
|
31
|
-
Immutable descriptor-only consumer for `Carbon WebGPU` package data.
|
|
32
|
-
|
|
33
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
34
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuPackage.js`
|
|
35
|
-
- Visibility: Public
|
|
36
|
-
- Kind: CarbonEngineJS
|
|
37
|
-
|
|
38
|
-
<!-- class:CjsWebgpuDevice -->
|
|
39
|
-
## `CjsWebgpuDevice`
|
|
40
|
-
|
|
41
|
-
Engine-owned WebGPU device boundary.
|
|
42
|
-
|
|
43
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
44
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuDevice.js`
|
|
45
|
-
- Visibility: Public
|
|
46
|
-
- Kind: CarbonEngineJS
|
|
47
|
-
|
|
48
|
-
<!-- class:CjsWebgpuBackendCandidate -->
|
|
49
|
-
## `CjsWebgpuBackendCandidate`
|
|
50
|
-
|
|
51
|
-
WebGPU participant in runtime backend selection.
|
|
52
|
-
|
|
53
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
54
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuBackendCandidate.js`
|
|
55
|
-
- Visibility: Public
|
|
56
|
-
- Kind: CarbonEngineJS
|
|
57
|
-
|
|
58
|
-
<!-- class:CjsWebgpuPipeline -->
|
|
59
|
-
## `CjsWebgpuPipeline`
|
|
60
|
-
|
|
61
|
-
Immutable WebGPU-facing pass/pipeline descriptor.
|
|
62
|
-
|
|
63
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
64
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuPipeline.js`
|
|
65
|
-
- Visibility: Public
|
|
66
|
-
- Kind: CarbonEngineJS
|
|
67
|
-
|
|
68
|
-
<!-- class:CjsWebgpuShaderModule -->
|
|
69
|
-
## `CjsWebgpuShaderModule`
|
|
70
|
-
|
|
71
|
-
Immutable WebGPU-facing shader-module descriptor.
|
|
72
|
-
|
|
73
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
74
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuShaderModule.js`
|
|
75
|
-
- Visibility: Public
|
|
76
|
-
- Kind: CarbonEngineJS
|
|
77
|
-
|
|
78
|
-
<!-- class:CjsWebgpuBindGroup -->
|
|
79
|
-
## `CjsWebgpuBindGroup`
|
|
80
|
-
|
|
81
|
-
Immutable WebGPU-facing bind-group descriptor.
|
|
82
|
-
|
|
83
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
84
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuBindGroup.js`
|
|
85
|
-
- Visibility: Public
|
|
86
|
-
- Kind: CarbonEngineJS
|
|
87
|
-
|
|
88
|
-
<!-- class:CjsWebgpuResource -->
|
|
89
|
-
## `CjsWebgpuResource`
|
|
90
|
-
|
|
91
|
-
Immutable WebGPU-facing binding/resource descriptor.
|
|
92
|
-
|
|
93
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
94
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuResource.js`
|
|
95
|
-
- Visibility: Public
|
|
96
|
-
- Kind: CarbonEngineJS
|
|
97
|
-
|
|
98
|
-
<!-- class:CjsWebgpuBuffer -->
|
|
99
|
-
## `CjsWebgpuBuffer`
|
|
100
|
-
|
|
101
|
-
Immutable WebGPU-facing buffer binding descriptor.
|
|
102
|
-
|
|
103
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
104
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuBuffer.js`
|
|
105
|
-
- Visibility: Public
|
|
106
|
-
- Kind: CarbonEngineJS
|
|
107
|
-
|
|
108
|
-
<!-- class:CjsWebgpuTexture -->
|
|
109
|
-
## `CjsWebgpuTexture`
|
|
110
|
-
|
|
111
|
-
Immutable WebGPU-facing texture binding descriptor.
|
|
112
|
-
|
|
113
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
114
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuTexture.js`
|
|
115
|
-
- Visibility: Public
|
|
116
|
-
- Kind: CarbonEngineJS
|
|
117
|
-
|
|
118
|
-
<!-- class:CjsWebgpuSampler -->
|
|
119
|
-
## `CjsWebgpuSampler`
|
|
120
|
-
|
|
121
|
-
Immutable WebGPU-facing sampler binding descriptor.
|
|
122
|
-
|
|
123
|
-
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
124
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuSampler.js`
|
|
125
|
-
- Visibility: Public
|
|
126
|
-
- Kind: CarbonEngineJS
|
|
127
|
-
|
|
128
|
-
<!-- class:CjsWebgpuEncodeState -->
|
|
129
|
-
## `CjsWebgpuEncodeState`
|
|
130
|
-
|
|
131
|
-
Per-render-pass record of bound pipeline and buffers, so a grouped run's later batches skip redundant sets.
|
|
132
|
-
|
|
133
|
-
- Export: Not exported
|
|
134
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuEncodeState.js`
|
|
135
|
-
- Visibility: Internal
|
|
136
|
-
- Kind: CarbonEngineJS
|
|
137
|
-
|
|
138
|
-
<!-- class:CjsWebgpuPipelineCache -->
|
|
139
|
-
## `CjsWebgpuPipelineCache`
|
|
140
|
-
|
|
141
|
-
Generation-bound cache of asynchronously built pipeline objects, keyed exactly rather than by hash.
|
|
142
|
-
|
|
143
|
-
- Export: Not exported
|
|
144
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuPipelineCache.js`
|
|
145
|
-
- Visibility: Internal
|
|
146
|
-
- Kind: CarbonEngineJS
|
|
147
|
-
|
|
148
|
-
<!-- class:CjsWebgpuRenderTarget -->
|
|
149
|
-
## `CjsWebgpuRenderTarget`
|
|
150
|
-
|
|
151
|
-
Owns the presentation surface, depth and multisample attachments, pass descriptors, viewport and scissor.
|
|
152
|
-
|
|
153
|
-
- Export: Not exported
|
|
154
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuRenderTarget.js`
|
|
155
|
-
- Visibility: Internal
|
|
156
|
-
- Kind: CarbonEngineJS
|
|
157
|
-
|
|
158
|
-
<!-- class:CjsWebgpuTrinityBatchDispatcher -->
|
|
159
|
-
## `CjsWebgpuTrinityBatchDispatcher`
|
|
160
|
-
|
|
161
|
-
Engine-side adapter for canonical Trinity render batches.
|
|
162
|
-
|
|
163
|
-
- Export: Not exported
|
|
164
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityBatchDispatcher.js`
|
|
165
|
-
- Visibility: Internal
|
|
166
|
-
- Kind: CarbonEngineJS
|
|
167
|
-
|
|
168
|
-
<!-- class:CjsWebgpuTrinityPassEncoder -->
|
|
169
|
-
## `CjsWebgpuTrinityPassEncoder`
|
|
170
|
-
|
|
171
|
-
Internal encoder for caller-owned WebGPU pass plans over prepared Trinity batch maps.
|
|
172
|
-
|
|
173
|
-
- Export: Not exported
|
|
174
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityPassEncoder.js`
|
|
175
|
-
- Visibility: Internal
|
|
176
|
-
- Kind: CarbonEngineJS
|
|
177
|
-
|
|
178
|
-
<!-- class:CjsWebgpuTrinityBatchResolver -->
|
|
179
|
-
## `CjsWebgpuTrinityBatchResolver`
|
|
180
|
-
|
|
181
|
-
Resolves a Trinity batch to a WebGPU pipeline, device geometry and the bindings the pipeline declares.
|
|
182
|
-
|
|
183
|
-
- Export: Not exported
|
|
184
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityBatchResolver.js`
|
|
185
|
-
- Visibility: Internal
|
|
186
|
-
- Kind: CarbonEngineJS
|
|
187
|
-
|
|
188
|
-
<!-- class:CjsWebgpuTextureSource -->
|
|
189
|
-
## `CjsWebgpuTextureSource`
|
|
190
|
-
|
|
191
|
-
Realizes an authored texture path into a device texture, once per resource.
|
|
192
|
-
|
|
193
|
-
- Export: Not exported
|
|
194
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuTextureSource.js`
|
|
195
|
-
- Visibility: Internal
|
|
196
|
-
- Kind: CarbonEngineJS
|
|
197
|
-
|
|
198
|
-
<!-- class:CjsWebgpuSamplerSource -->
|
|
199
|
-
## `CjsWebgpuSamplerSource`
|
|
200
|
-
|
|
201
|
-
Creates and shares device samplers, keyed on authored sampler state rather than on a binding name.
|
|
202
|
-
|
|
203
|
-
- Export: Not exported
|
|
204
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuSamplerSource.js`
|
|
205
|
-
- Visibility: Internal
|
|
206
|
-
- Kind: CarbonEngineJS
|
|
207
|
-
|
|
208
|
-
<!-- class:CjsWebgpuPerFrameSource -->
|
|
209
|
-
## `CjsWebgpuPerFrameSource`
|
|
210
|
-
|
|
211
|
-
Supplies the packed per-frame constant bytes for a frame slot, which the scene owns rather than the batch.
|
|
212
|
-
|
|
213
|
-
- Export: Not exported
|
|
214
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuPerFrameSource.js`
|
|
215
|
-
- Visibility: Internal
|
|
216
|
-
- Kind: CarbonEngineJS
|
|
217
|
-
|
|
218
|
-
<!-- class:CjsWebgpuBufferAL -->
|
|
219
|
-
## `CjsWebgpuBufferAL`
|
|
220
|
-
|
|
221
|
-
A `Tr2BufferAL` backed by a real `GPUBuffer`, writing through a retained CPU shadow that is uploaded whole on unmap.
|
|
222
|
-
|
|
223
|
-
- Export: Not exported
|
|
224
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuBufferAL.js`
|
|
225
|
-
- Visibility: Internal
|
|
226
|
-
- Kind: Carbon
|
|
227
|
-
|
|
228
|
-
<!-- class:CjsWebgpuCapsAL -->
|
|
229
|
-
## `CjsWebgpuCapsAL`
|
|
230
|
-
|
|
231
|
-
The capabilities this backend reports, answering Carbon's caps questions from WebGPU's guaranteed baseline and, for `shader-f16` alone, from the composed device.
|
|
232
|
-
|
|
233
|
-
- Export: Not exported
|
|
234
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuCapsAL.js`
|
|
235
|
-
- Visibility: Internal
|
|
236
|
-
- Kind: Carbon
|
|
237
|
-
|
|
238
|
-
<!-- class:CjsWebgpuShaderAL -->
|
|
239
|
-
## `CjsWebgpuShaderAL`
|
|
240
|
-
|
|
241
|
-
A `Tr2ShaderAL` that compiles its bytecode, which here is WGSL text, into a `GPUShaderModule` and keeps the source for the pipeline and for error reporting.
|
|
242
|
-
|
|
243
|
-
- Export: Not exported
|
|
244
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuShaderAL.js`
|
|
245
|
-
- Visibility: Internal
|
|
246
|
-
- Kind: Carbon
|
|
247
|
-
|
|
248
|
-
<!-- class:CjsWebgpuShaderProgramAL -->
|
|
249
|
-
## `CjsWebgpuShaderProgramAL`
|
|
250
|
-
|
|
251
|
-
A `Tr2ShaderProgramAL` holding validated stages and answering for their modules, since WebGPU has no link step.
|
|
252
|
-
|
|
253
|
-
- Export: Not exported
|
|
254
|
-
- Source: `src/trinityal/webgpu/CjsWebgpuShaderProgramAL.js`
|
|
255
|
-
- Visibility: Internal
|
|
256
|
-
- Kind: Carbon
|
|
257
|
-
|
|
258
|
-
<!-- class:CjsWebgpuPsoDescription -->
|
|
259
|
-
## `CjsWebgpuPsoDescription`
|
|
260
|
-
|
|
261
|
-
DX12's `PSODescription` for WebGPU: the pipeline state the abstraction layer's setters describe incrementally, resolved to one cached pipeline by a canonical key.
|
|
262
|
-
|
|
263
|
-
- Export: Not exported
|
|
264
|
-
- Source: `src/trinityal/webgpu/core/CjsWebgpuPsoDescription.js`
|
|
265
|
-
- Visibility: Internal
|
|
266
|
-
- Kind: Carbon
|
|
1
|
+
# Class catalog
|
|
2
|
+
|
|
3
|
+
Status: Evolving
|
|
4
|
+
Scope: `@carbonenginejs/runtime/trinityal/webgpu` maintained classes
|
|
5
|
+
Audience: Users, maintainers, and automated readers
|
|
6
|
+
Summary: Provides one-sentence purpose descriptors for every maintained class in the WebGPU engine package.
|
|
7
|
+
|
|
8
|
+
<!-- class:CjsWebgpuRenderContextAL -->
|
|
9
|
+
## `CjsWebgpuRenderContextAL`
|
|
10
|
+
|
|
11
|
+
WebGPU behind Carbon's abstraction layer: holds the bound geometry and program state, validates it, and delegates the draw to a work queue.
|
|
12
|
+
|
|
13
|
+
- Export: Not exported
|
|
14
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuRenderContextAL.js`
|
|
15
|
+
- Visibility: Internal
|
|
16
|
+
- Kind: Carbon
|
|
17
|
+
|
|
18
|
+
<!-- class:CjsWebgpuWorkQueue -->
|
|
19
|
+
## `CjsWebgpuWorkQueue`
|
|
20
|
+
|
|
21
|
+
Owns the encoder lifetime for one frame, opening a render pass lazily on the work that needs one and folding the declared pass hint into its attachments.
|
|
22
|
+
|
|
23
|
+
- Export: Not exported
|
|
24
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuWorkQueue.js`
|
|
25
|
+
- Visibility: Internal
|
|
26
|
+
- Kind: Carbon
|
|
27
|
+
|
|
28
|
+
<!-- class:CjsWebgpuPackage -->
|
|
29
|
+
## `CjsWebgpuPackage`
|
|
30
|
+
|
|
31
|
+
Immutable descriptor-only consumer for `Carbon WebGPU` package data.
|
|
32
|
+
|
|
33
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
34
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuPackage.js`
|
|
35
|
+
- Visibility: Public
|
|
36
|
+
- Kind: CarbonEngineJS
|
|
37
|
+
|
|
38
|
+
<!-- class:CjsWebgpuDevice -->
|
|
39
|
+
## `CjsWebgpuDevice`
|
|
40
|
+
|
|
41
|
+
Engine-owned WebGPU device boundary.
|
|
42
|
+
|
|
43
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
44
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuDevice.js`
|
|
45
|
+
- Visibility: Public
|
|
46
|
+
- Kind: CarbonEngineJS
|
|
47
|
+
|
|
48
|
+
<!-- class:CjsWebgpuBackendCandidate -->
|
|
49
|
+
## `CjsWebgpuBackendCandidate`
|
|
50
|
+
|
|
51
|
+
WebGPU participant in runtime backend selection.
|
|
52
|
+
|
|
53
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
54
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuBackendCandidate.js`
|
|
55
|
+
- Visibility: Public
|
|
56
|
+
- Kind: CarbonEngineJS
|
|
57
|
+
|
|
58
|
+
<!-- class:CjsWebgpuPipeline -->
|
|
59
|
+
## `CjsWebgpuPipeline`
|
|
60
|
+
|
|
61
|
+
Immutable WebGPU-facing pass/pipeline descriptor.
|
|
62
|
+
|
|
63
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
64
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuPipeline.js`
|
|
65
|
+
- Visibility: Public
|
|
66
|
+
- Kind: CarbonEngineJS
|
|
67
|
+
|
|
68
|
+
<!-- class:CjsWebgpuShaderModule -->
|
|
69
|
+
## `CjsWebgpuShaderModule`
|
|
70
|
+
|
|
71
|
+
Immutable WebGPU-facing shader-module descriptor.
|
|
72
|
+
|
|
73
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
74
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuShaderModule.js`
|
|
75
|
+
- Visibility: Public
|
|
76
|
+
- Kind: CarbonEngineJS
|
|
77
|
+
|
|
78
|
+
<!-- class:CjsWebgpuBindGroup -->
|
|
79
|
+
## `CjsWebgpuBindGroup`
|
|
80
|
+
|
|
81
|
+
Immutable WebGPU-facing bind-group descriptor.
|
|
82
|
+
|
|
83
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
84
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuBindGroup.js`
|
|
85
|
+
- Visibility: Public
|
|
86
|
+
- Kind: CarbonEngineJS
|
|
87
|
+
|
|
88
|
+
<!-- class:CjsWebgpuResource -->
|
|
89
|
+
## `CjsWebgpuResource`
|
|
90
|
+
|
|
91
|
+
Immutable WebGPU-facing binding/resource descriptor.
|
|
92
|
+
|
|
93
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
94
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuResource.js`
|
|
95
|
+
- Visibility: Public
|
|
96
|
+
- Kind: CarbonEngineJS
|
|
97
|
+
|
|
98
|
+
<!-- class:CjsWebgpuBuffer -->
|
|
99
|
+
## `CjsWebgpuBuffer`
|
|
100
|
+
|
|
101
|
+
Immutable WebGPU-facing buffer binding descriptor.
|
|
102
|
+
|
|
103
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
104
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuBuffer.js`
|
|
105
|
+
- Visibility: Public
|
|
106
|
+
- Kind: CarbonEngineJS
|
|
107
|
+
|
|
108
|
+
<!-- class:CjsWebgpuTexture -->
|
|
109
|
+
## `CjsWebgpuTexture`
|
|
110
|
+
|
|
111
|
+
Immutable WebGPU-facing texture binding descriptor.
|
|
112
|
+
|
|
113
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
114
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuTexture.js`
|
|
115
|
+
- Visibility: Public
|
|
116
|
+
- Kind: CarbonEngineJS
|
|
117
|
+
|
|
118
|
+
<!-- class:CjsWebgpuSampler -->
|
|
119
|
+
## `CjsWebgpuSampler`
|
|
120
|
+
|
|
121
|
+
Immutable WebGPU-facing sampler binding descriptor.
|
|
122
|
+
|
|
123
|
+
- Export: `@carbonenginejs/runtime/trinityal/webgpu`
|
|
124
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuSampler.js`
|
|
125
|
+
- Visibility: Public
|
|
126
|
+
- Kind: CarbonEngineJS
|
|
127
|
+
|
|
128
|
+
<!-- class:CjsWebgpuEncodeState -->
|
|
129
|
+
## `CjsWebgpuEncodeState`
|
|
130
|
+
|
|
131
|
+
Per-render-pass record of bound pipeline and buffers, so a grouped run's later batches skip redundant sets.
|
|
132
|
+
|
|
133
|
+
- Export: Not exported
|
|
134
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuEncodeState.js`
|
|
135
|
+
- Visibility: Internal
|
|
136
|
+
- Kind: CarbonEngineJS
|
|
137
|
+
|
|
138
|
+
<!-- class:CjsWebgpuPipelineCache -->
|
|
139
|
+
## `CjsWebgpuPipelineCache`
|
|
140
|
+
|
|
141
|
+
Generation-bound cache of asynchronously built pipeline objects, keyed exactly rather than by hash.
|
|
142
|
+
|
|
143
|
+
- Export: Not exported
|
|
144
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuPipelineCache.js`
|
|
145
|
+
- Visibility: Internal
|
|
146
|
+
- Kind: CarbonEngineJS
|
|
147
|
+
|
|
148
|
+
<!-- class:CjsWebgpuRenderTarget -->
|
|
149
|
+
## `CjsWebgpuRenderTarget`
|
|
150
|
+
|
|
151
|
+
Owns the presentation surface, depth and multisample attachments, pass descriptors, viewport and scissor.
|
|
152
|
+
|
|
153
|
+
- Export: Not exported
|
|
154
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuRenderTarget.js`
|
|
155
|
+
- Visibility: Internal
|
|
156
|
+
- Kind: CarbonEngineJS
|
|
157
|
+
|
|
158
|
+
<!-- class:CjsWebgpuTrinityBatchDispatcher -->
|
|
159
|
+
## `CjsWebgpuTrinityBatchDispatcher`
|
|
160
|
+
|
|
161
|
+
Engine-side adapter for canonical Trinity render batches.
|
|
162
|
+
|
|
163
|
+
- Export: Not exported
|
|
164
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityBatchDispatcher.js`
|
|
165
|
+
- Visibility: Internal
|
|
166
|
+
- Kind: CarbonEngineJS
|
|
167
|
+
|
|
168
|
+
<!-- class:CjsWebgpuTrinityPassEncoder -->
|
|
169
|
+
## `CjsWebgpuTrinityPassEncoder`
|
|
170
|
+
|
|
171
|
+
Internal encoder for caller-owned WebGPU pass plans over prepared Trinity batch maps.
|
|
172
|
+
|
|
173
|
+
- Export: Not exported
|
|
174
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityPassEncoder.js`
|
|
175
|
+
- Visibility: Internal
|
|
176
|
+
- Kind: CarbonEngineJS
|
|
177
|
+
|
|
178
|
+
<!-- class:CjsWebgpuTrinityBatchResolver -->
|
|
179
|
+
## `CjsWebgpuTrinityBatchResolver`
|
|
180
|
+
|
|
181
|
+
Resolves a Trinity batch to a WebGPU pipeline, device geometry and the bindings the pipeline declares.
|
|
182
|
+
|
|
183
|
+
- Export: Not exported
|
|
184
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuTrinityBatchResolver.js`
|
|
185
|
+
- Visibility: Internal
|
|
186
|
+
- Kind: CarbonEngineJS
|
|
187
|
+
|
|
188
|
+
<!-- class:CjsWebgpuTextureSource -->
|
|
189
|
+
## `CjsWebgpuTextureSource`
|
|
190
|
+
|
|
191
|
+
Realizes an authored texture path into a device texture, once per resource.
|
|
192
|
+
|
|
193
|
+
- Export: Not exported
|
|
194
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuTextureSource.js`
|
|
195
|
+
- Visibility: Internal
|
|
196
|
+
- Kind: CarbonEngineJS
|
|
197
|
+
|
|
198
|
+
<!-- class:CjsWebgpuSamplerSource -->
|
|
199
|
+
## `CjsWebgpuSamplerSource`
|
|
200
|
+
|
|
201
|
+
Creates and shares device samplers, keyed on authored sampler state rather than on a binding name.
|
|
202
|
+
|
|
203
|
+
- Export: Not exported
|
|
204
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuSamplerSource.js`
|
|
205
|
+
- Visibility: Internal
|
|
206
|
+
- Kind: CarbonEngineJS
|
|
207
|
+
|
|
208
|
+
<!-- class:CjsWebgpuPerFrameSource -->
|
|
209
|
+
## `CjsWebgpuPerFrameSource`
|
|
210
|
+
|
|
211
|
+
Supplies the packed per-frame constant bytes for a frame slot, which the scene owns rather than the batch.
|
|
212
|
+
|
|
213
|
+
- Export: Not exported
|
|
214
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuPerFrameSource.js`
|
|
215
|
+
- Visibility: Internal
|
|
216
|
+
- Kind: CarbonEngineJS
|
|
217
|
+
|
|
218
|
+
<!-- class:CjsWebgpuBufferAL -->
|
|
219
|
+
## `CjsWebgpuBufferAL`
|
|
220
|
+
|
|
221
|
+
A `Tr2BufferAL` backed by a real `GPUBuffer`, writing through a retained CPU shadow that is uploaded whole on unmap.
|
|
222
|
+
|
|
223
|
+
- Export: Not exported
|
|
224
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuBufferAL.js`
|
|
225
|
+
- Visibility: Internal
|
|
226
|
+
- Kind: Carbon
|
|
227
|
+
|
|
228
|
+
<!-- class:CjsWebgpuCapsAL -->
|
|
229
|
+
## `CjsWebgpuCapsAL`
|
|
230
|
+
|
|
231
|
+
The capabilities this backend reports, answering Carbon's caps questions from WebGPU's guaranteed baseline and, for `shader-f16` alone, from the composed device.
|
|
232
|
+
|
|
233
|
+
- Export: Not exported
|
|
234
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuCapsAL.js`
|
|
235
|
+
- Visibility: Internal
|
|
236
|
+
- Kind: Carbon
|
|
237
|
+
|
|
238
|
+
<!-- class:CjsWebgpuShaderAL -->
|
|
239
|
+
## `CjsWebgpuShaderAL`
|
|
240
|
+
|
|
241
|
+
A `Tr2ShaderAL` that compiles its bytecode, which here is WGSL text, into a `GPUShaderModule` and keeps the source for the pipeline and for error reporting.
|
|
242
|
+
|
|
243
|
+
- Export: Not exported
|
|
244
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuShaderAL.js`
|
|
245
|
+
- Visibility: Internal
|
|
246
|
+
- Kind: Carbon
|
|
247
|
+
|
|
248
|
+
<!-- class:CjsWebgpuShaderProgramAL -->
|
|
249
|
+
## `CjsWebgpuShaderProgramAL`
|
|
250
|
+
|
|
251
|
+
A `Tr2ShaderProgramAL` holding validated stages and answering for their modules, since WebGPU has no link step.
|
|
252
|
+
|
|
253
|
+
- Export: Not exported
|
|
254
|
+
- Source: `src/trinityal/webgpu/CjsWebgpuShaderProgramAL.js`
|
|
255
|
+
- Visibility: Internal
|
|
256
|
+
- Kind: Carbon
|
|
257
|
+
|
|
258
|
+
<!-- class:CjsWebgpuPsoDescription -->
|
|
259
|
+
## `CjsWebgpuPsoDescription`
|
|
260
|
+
|
|
261
|
+
DX12's `PSODescription` for WebGPU: the pipeline state the abstraction layer's setters describe incrementally, resolved to one cached pipeline by a canonical key.
|
|
262
|
+
|
|
263
|
+
- Export: Not exported
|
|
264
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuPsoDescription.js`
|
|
265
|
+
- Visibility: Internal
|
|
266
|
+
- Kind: Carbon
|
|
267
267
|
|
|
268
268
|
<!-- class:CjsWebgpuConstantBufferAL -->
|
|
269
269
|
## `CjsWebgpuConstantBufferAL`
|
|
@@ -285,6 +285,16 @@ Carbon's `ConstantBufferAllocator`: the per-frame constant arena of 2 MiB pages,
|
|
|
285
285
|
- Visibility: Internal
|
|
286
286
|
- Kind: Carbon
|
|
287
287
|
|
|
288
|
+
<!-- class:CjsWebgpuUtils -->
|
|
289
|
+
## `CjsWebgpuUtils`
|
|
290
|
+
|
|
291
|
+
Modelled on Carbon's Metal `MetalUtils`: the backend's translation tables, owned by the render context as `m_utils`. Today it carries the pixel format table (Carbon `PixelFormat` to `GPUTextureFormat`, entry for entry with Metal's) and the sRGB view format.
|
|
292
|
+
|
|
293
|
+
- Export: Not exported
|
|
294
|
+
- Source: `src/trinityal/webgpu/core/CjsWebgpuUtils.js`
|
|
295
|
+
- Visibility: Internal
|
|
296
|
+
- Kind: Carbon
|
|
297
|
+
|
|
288
298
|
<!-- class:CjsWebgpuSamplerStateAL -->
|
|
289
299
|
## `CjsWebgpuSamplerStateAL`
|
|
290
300
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@carbonenginejs/runtime",
|
|
3
|
-
"version": "0.1.0-alpha.
|
|
3
|
+
"version": "0.1.0-alpha.5",
|
|
4
4
|
"private": false,
|
|
5
5
|
"description": "Browser-safe CarbonEngineJS runtime: resource and format readers, the Trinity/EVE object graph, SOF, audio, character, and the WebGPU renderer.",
|
|
6
6
|
"type": "module",
|
|
@@ -54,9 +54,9 @@
|
|
|
54
54
|
"./consts/audio": "./dist/global/consts/audio/index.js",
|
|
55
55
|
"./consts/shader": "./dist/global/consts/shader/index.js",
|
|
56
56
|
"./consts/d3d": "./dist/global/consts/d3d/index.js",
|
|
57
|
-
"./consts/webgpu": "./dist/global/consts/webgpu/index.js",
|
|
58
57
|
"./contracts": "./dist/global/contracts/index.js",
|
|
59
58
|
"./blue": "./dist/global/blue/index.js",
|
|
59
|
+
"./imageio": "./dist/global/imageio/index.js",
|
|
60
60
|
"./schema": "./dist/global/schema/index.js",
|
|
61
61
|
"./schema/types": "./dist/global/schema/types/index.js",
|
|
62
62
|
"./schema/hydration": "./dist/global/schema/hydration.js",
|
|
@@ -72,6 +72,7 @@
|
|
|
72
72
|
"./resource/geometry/granny": "./dist/resource/geometry/granny/index.js",
|
|
73
73
|
"./resource/shader": "./dist/resource/shader/index.js",
|
|
74
74
|
"./resource/texture": "./dist/resource/texture/index.js",
|
|
75
|
+
"./resource/imageio": "./dist/resource/imageio/index.js",
|
|
75
76
|
"./resource/worker": "./dist/resource/worker/CjsResManWorker.js",
|
|
76
77
|
"./resource/format": "./dist/resource/format/index.js",
|
|
77
78
|
"./resource/formats": "./dist/resource/formats/index.js",
|
|
@@ -191,10 +192,10 @@
|
|
|
191
192
|
"#consts/audio": "./dist/global/consts/audio/index.js",
|
|
192
193
|
"#consts/shader": "./dist/global/consts/shader/index.js",
|
|
193
194
|
"#consts/d3d": "./dist/global/consts/d3d/index.js",
|
|
194
|
-
"#consts/webgpu": "./dist/global/consts/webgpu/index.js",
|
|
195
195
|
"#consts/*": "./dist/global/consts/*.js",
|
|
196
196
|
"#contracts": "./dist/global/contracts/index.js",
|
|
197
197
|
"#blue": "./dist/global/blue/index.js",
|
|
198
|
+
"#imageio": "./dist/global/imageio/index.js",
|
|
198
199
|
"#contracts/*": "./dist/global/contracts/*.js",
|
|
199
200
|
"#schema": "./dist/global/schema/index.js",
|
|
200
201
|
"#schema/types": "./dist/global/schema/types/index.js",
|