@carbonenginejs/runtime 0.1.0-alpha.0 → 0.1.0-alpha.1
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 +58 -125
- package/dist/audio/index.js +8 -1
- package/dist/audio/index.js.map +1 -1
- package/dist/audio/trinity/audio/AudActionLog/AudActionLogCB.js +84 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionLogCB.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecord.js +14 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecord.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordExecuteActionOnPlayingID.js +26 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordExecuteActionOnPlayingID.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordPostEvent.js +27 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordPostEvent.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetRTPC.js +27 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetRTPC.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetState.js +25 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetState.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetSwitch.js +26 -0
- package/dist/audio/trinity/audio/AudActionLog/AudActionRecordSetSwitch.js.map +1 -0
- package/dist/audio/trinity/audio/AudActionLog/IAudActionLog.js +58 -0
- package/dist/audio/trinity/audio/AudActionLog/IAudActionLog.js.map +1 -0
- package/dist/audio/trinity/audio/AudManager.js +1 -1
- package/dist/audio/trinity/audio/AudManager.js.map +1 -1
- package/dist/audio/trinity/audio/{AudObstructionOcclusion.js → AudObstructionOcclusion/AudObstructionOcclusion.js} +8 -52
- package/dist/audio/trinity/audio/AudObstructionOcclusion/AudObstructionOcclusion.js.map +1 -0
- package/dist/audio/trinity/audio/AudObstructionOcclusion/EmitterState.js +17 -0
- package/dist/audio/trinity/audio/AudObstructionOcclusion/EmitterState.js.map +1 -0
- package/dist/audio/trinity/audio/AudObstructionOcclusion/FadingValue.js +46 -0
- package/dist/audio/trinity/audio/AudObstructionOcclusion/FadingValue.js.map +1 -0
- package/dist/audio/trinity/index.js +8 -1
- package/dist/audio/trinity/index.js.map +1 -1
- package/dist/character/CjsCharacterAppearanceConstruction.js +5 -0
- package/dist/character/CjsCharacterAppearanceConstruction.js.map +1 -1
- package/dist/character/CjsCharacterAppearanceManager.js +14 -0
- package/dist/character/CjsCharacterAppearanceManager.js.map +1 -1
- package/dist/character/CjsCharacterFoundationConstruction.js +5 -0
- package/dist/character/CjsCharacterFoundationConstruction.js.map +1 -1
- package/dist/character/CjsCharacterTexturePolicy.js +5 -0
- package/dist/character/CjsCharacterTexturePolicy.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesAppearanceAL.js +17 -0
- package/dist/character/gles/CjsCharacterGlesAppearanceAL.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesAtlasRenderer.js +2 -0
- package/dist/character/gles/CjsCharacterGlesAtlasRenderer.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesFoundationTranslator.js +5 -0
- package/dist/character/gles/CjsCharacterGlesFoundationTranslator.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesLegacyConstructionTranslator.js +5 -0
- package/dist/character/gles/CjsCharacterGlesLegacyConstructionTranslator.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesMorphDeformation.js +2 -0
- package/dist/character/gles/CjsCharacterGlesMorphDeformation.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesPaletteCompatibility.js +5 -0
- package/dist/character/gles/CjsCharacterGlesPaletteCompatibility.js.map +1 -1
- package/dist/character/gles/CjsCharacterGlesTriangleCoverage.js +5 -0
- package/dist/character/gles/CjsCharacterGlesTriangleCoverage.js.map +1 -1
- package/dist/character/webgl2/CjsCharacterWebgl2EffectRouter.js +9 -0
- package/dist/character/webgl2/CjsCharacterWebgl2EffectRouter.js.map +1 -1
- package/dist/global/blue/CjsScriptCallback.js +142 -0
- package/dist/global/blue/CjsScriptCallback.js.map +1 -0
- package/dist/global/blue/index.js +2 -0
- package/dist/global/blue/index.js.map +1 -0
- package/dist/global/consts/renderContext/formats.js +51 -1
- package/dist/global/consts/renderContext/formats.js.map +1 -1
- package/dist/global/consts/renderContext/index.js +2 -2
- package/dist/global/consts/renderContext/renderStates.js +16 -1
- package/dist/global/consts/renderContext/renderStates.js.map +1 -1
- package/dist/global/contracts/index.js +0 -1
- package/dist/global/contracts/index.js.map +1 -1
- package/dist/global/index.js +4 -3
- package/dist/global/index.js.map +1 -1
- package/dist/global/math/index.js +2 -0
- package/dist/global/math/index.js.map +1 -1
- package/dist/global/math/mesh.js +70 -16
- package/dist/global/math/mesh.js.map +1 -1
- package/dist/global/math/noise.js +47 -68
- package/dist/global/math/noise.js.map +1 -1
- package/dist/global/math/pool.js +18 -3
- package/dist/global/math/pool.js.map +1 -1
- package/dist/global/math/random.js +52 -0
- package/dist/global/math/random.js.map +1 -0
- package/dist/global/math/tri3.js +18 -4
- package/dist/global/math/tri3.js.map +1 -1
- package/dist/global/utils/bytes.js +22 -4
- package/dist/global/utils/bytes.js.map +1 -1
- package/dist/global/utils/checksum.js +80 -0
- package/dist/global/utils/checksum.js.map +1 -0
- package/dist/global/utils/errors/CjsCancellationError.js +36 -0
- package/dist/global/utils/errors/CjsCancellationError.js.map +1 -0
- package/dist/global/utils/errors/CjsError.js +21 -52
- package/dist/global/utils/errors/CjsError.js.map +1 -1
- package/dist/global/utils/errors/abort.js +1 -1
- package/dist/global/utils/errors/abort.js.map +1 -1
- package/dist/global/utils/errors/index.js +2 -1
- package/dist/global/utils/errors/index.js.map +1 -1
- package/dist/global/utils/index.js +4 -2
- package/dist/global/utils/index.js.map +1 -1
- package/dist/index.js +95 -35
- package/dist/index.js.map +1 -1
- package/dist/input/Tr2MainWindow.js +7 -9
- package/dist/input/Tr2MainWindow.js.map +1 -1
- package/dist/resource/CjsResMan.js +33 -39
- package/dist/resource/CjsResMan.js.map +1 -1
- package/dist/resource/CjsResource.js +19 -5
- package/dist/resource/CjsResource.js.map +1 -1
- package/dist/resource/audio/AudioGeometryResData.js +22 -27
- package/dist/resource/audio/AudioGeometryResData.js.map +1 -1
- package/dist/resource/audio/CjsAudioRes.js +4 -5
- package/dist/resource/audio/CjsAudioRes.js.map +1 -1
- package/dist/resource/format/CjsBitReader.js +263 -0
- package/dist/resource/format/CjsBitReader.js.map +1 -0
- package/dist/resource/format/CjsByteReader.js +130 -125
- package/dist/resource/format/CjsByteReader.js.map +1 -1
- package/dist/resource/format/CjsFormat.js +11 -4
- package/dist/resource/format/CjsFormat.js.map +1 -1
- package/dist/resource/format/CjsFormatError.js +37 -1
- package/dist/resource/format/CjsFormatError.js.map +1 -1
- package/dist/resource/format/CjsResourceProbe.js +41 -37
- package/dist/resource/format/CjsResourceProbe.js.map +1 -1
- package/dist/resource/format/carbonRecordGuard.js +33 -0
- package/dist/resource/format/carbonRecordGuard.js.map +1 -0
- package/dist/resource/format/imageSignatures.js +202 -0
- package/dist/resource/format/imageSignatures.js.map +1 -0
- package/dist/resource/format/index.js +2 -1
- package/dist/resource/format/index.js.map +1 -1
- package/dist/resource/format/jsonPolicies.js +180 -0
- package/dist/resource/format/jsonPolicies.js.map +1 -0
- package/dist/resource/formats/black/core/helpers.js +18 -29
- package/dist/resource/formats/black/core/helpers.js.map +1 -1
- package/dist/resource/formats/bnk/CjsBnkFormat.js +4 -3
- package/dist/resource/formats/bnk/CjsBnkFormat.js.map +1 -1
- package/dist/resource/formats/bnk/core/WwiseCursor.js +218 -0
- package/dist/resource/formats/bnk/core/WwiseCursor.js.map +1 -0
- package/dist/resource/formats/bnk/core/busNodes.js +2 -1
- package/dist/resource/formats/bnk/core/busNodes.js.map +1 -1
- package/dist/resource/formats/bnk/core/effectNodes.js +2 -1
- package/dist/resource/formats/bnk/core/effectNodes.js.map +1 -1
- package/dist/resource/formats/bnk/core/eventAction.js +15 -93
- package/dist/resource/formats/bnk/core/eventAction.js.map +1 -1
- package/dist/resource/formats/bnk/core/globalSettings.js +19 -94
- package/dist/resource/formats/bnk/core/globalSettings.js.map +1 -1
- package/dist/resource/formats/bnk/core/helpers.js +2 -48
- package/dist/resource/formats/bnk/core/helpers.js.map +1 -1
- package/dist/resource/formats/bnk/core/musicNodes.js +42 -134
- package/dist/resource/formats/bnk/core/musicNodes.js.map +1 -1
- package/dist/resource/formats/bnk/core/nodeBase.js +20 -111
- package/dist/resource/formats/bnk/core/nodeBase.js.map +1 -1
- package/dist/resource/formats/bnk/core/sfxNodes.js +2 -1
- package/dist/resource/formats/bnk/core/sfxNodes.js.map +1 -1
- package/dist/resource/formats/cmf/CjsCmfFormat.js +242 -228
- package/dist/resource/formats/cmf/CjsCmfFormat.js.map +1 -1
- package/dist/resource/formats/cmf/core/binary.js +54 -60
- package/dist/resource/formats/cmf/core/binary.js.map +1 -1
- package/dist/resource/formats/dds/CjsDdsFormat.js +5 -3
- package/dist/resource/formats/dds/CjsDdsFormat.js.map +1 -1
- package/dist/resource/formats/dds/core/bc6h.js +16 -18
- package/dist/resource/formats/dds/core/bc6h.js.map +1 -1
- package/dist/resource/formats/dds/core/bc7.js +28 -24
- package/dist/resource/formats/dds/core/bc7.js.map +1 -1
- package/dist/resource/formats/dds/core/helpers.js +7 -133
- package/dist/resource/formats/dds/core/helpers.js.map +1 -1
- package/dist/resource/formats/dxbc/CjsDxbcFormat.js +3 -2
- package/dist/resource/formats/dxbc/CjsDxbcFormat.js.map +1 -1
- package/dist/resource/formats/dxbc/core/helpers.js +4 -32
- package/dist/resource/formats/dxbc/core/helpers.js.map +1 -1
- package/dist/resource/formats/fbx/CjsFbxFormat.js +11 -0
- package/dist/resource/formats/fbx/CjsFbxFormat.js.map +1 -1
- package/dist/resource/formats/fbx/core/helpers.js +18 -12
- package/dist/resource/formats/fbx/core/helpers.js.map +1 -1
- package/dist/resource/formats/flac/CjsFlacFormat.js +4 -9
- package/dist/resource/formats/flac/CjsFlacFormat.js.map +1 -1
- package/dist/resource/formats/flac/core/helpers.js +1 -62
- package/dist/resource/formats/flac/core/helpers.js.map +1 -1
- package/dist/resource/formats/gif/CjsGifFormat.js +4 -9
- package/dist/resource/formats/gif/CjsGifFormat.js.map +1 -1
- package/dist/resource/formats/gif/core/helpers.js +1 -63
- package/dist/resource/formats/gif/core/helpers.js.map +1 -1
- package/dist/resource/formats/gltf/CjsGltfFormat.js +4 -3
- package/dist/resource/formats/gltf/CjsGltfFormat.js.map +1 -1
- package/dist/resource/formats/gltf/core/helpers.js +3 -19
- package/dist/resource/formats/gltf/core/helpers.js.map +1 -1
- package/dist/resource/formats/gr2/CjsGr2Format.js +105 -92
- package/dist/resource/formats/gr2/CjsGr2Format.js.map +1 -1
- package/dist/resource/formats/gr2/core/container.js +1 -10
- package/dist/resource/formats/gr2/core/container.js.map +1 -1
- package/dist/resource/formats/gr2/core/helpers.js +24 -35
- package/dist/resource/formats/gr2/core/helpers.js.map +1 -1
- package/dist/resource/formats/gr2/core/shared.js +193 -189
- package/dist/resource/formats/gr2/core/shared.js.map +1 -1
- package/dist/resource/formats/hlsl/CjsHlslFormat.js +4 -3
- package/dist/resource/formats/hlsl/CjsHlslFormat.js.map +1 -1
- package/dist/resource/formats/hlsl/core/helpers.js +1 -30
- package/dist/resource/formats/hlsl/core/helpers.js.map +1 -1
- package/dist/resource/formats/jpeg/CjsJpegFormat.js +5 -3
- package/dist/resource/formats/jpeg/CjsJpegFormat.js.map +1 -1
- package/dist/resource/formats/jpeg/core/helpers.js +7 -134
- package/dist/resource/formats/jpeg/core/helpers.js.map +1 -1
- package/dist/resource/formats/mp3/CjsMp3Format.js +4 -9
- package/dist/resource/formats/mp3/CjsMp3Format.js.map +1 -1
- package/dist/resource/formats/mp3/core/helpers.js +1 -64
- package/dist/resource/formats/mp3/core/helpers.js.map +1 -1
- package/dist/resource/formats/mp4/CjsMp4Format.js +4 -9
- package/dist/resource/formats/mp4/CjsMp4Format.js.map +1 -1
- package/dist/resource/formats/mp4/core/helpers.js +1 -73
- package/dist/resource/formats/mp4/core/helpers.js.map +1 -1
- package/dist/resource/formats/obj/CjsObjFormat.js +4 -3
- package/dist/resource/formats/obj/CjsObjFormat.js.map +1 -1
- package/dist/resource/formats/obj/core/helpers.js +93 -115
- package/dist/resource/formats/obj/core/helpers.js.map +1 -1
- package/dist/resource/formats/ogg/CjsOggFormat.js +4 -3
- package/dist/resource/formats/ogg/CjsOggFormat.js.map +1 -1
- package/dist/resource/formats/ogg/core/helpers.js +1 -15
- package/dist/resource/formats/ogg/core/helpers.js.map +1 -1
- package/dist/resource/formats/ogg/core/vorbis.js +138 -144
- package/dist/resource/formats/ogg/core/vorbis.js.map +1 -1
- package/dist/resource/formats/pickle/CjsPickleFormat.js +83 -114
- package/dist/resource/formats/pickle/CjsPickleFormat.js.map +1 -1
- package/dist/resource/formats/png/CjsPngFormat.js +5 -3
- package/dist/resource/formats/png/CjsPngFormat.js.map +1 -1
- package/dist/resource/formats/png/core/helpers.js +13 -152
- package/dist/resource/formats/png/core/helpers.js.map +1 -1
- package/dist/resource/formats/png/core/writer.js +3 -27
- package/dist/resource/formats/png/core/writer.js.map +1 -1
- package/dist/resource/formats/red/core/helpers.js +19 -29
- package/dist/resource/formats/red/core/helpers.js.map +1 -1
- package/dist/resource/formats/stl/CjsStlFormat.js +158 -147
- package/dist/resource/formats/stl/CjsStlFormat.js.map +1 -1
- package/dist/resource/formats/stl/core/helpers.js +44 -66
- package/dist/resource/formats/stl/core/helpers.js.map +1 -1
- package/dist/resource/formats/tga/CjsTgaFormat.js +5 -3
- package/dist/resource/formats/tga/CjsTgaFormat.js.map +1 -1
- package/dist/resource/formats/tga/core/helpers.js +7 -153
- package/dist/resource/formats/tga/core/helpers.js.map +1 -1
- package/dist/resource/formats/vta/CjsVtaFormat.js +4 -3
- package/dist/resource/formats/vta/CjsVtaFormat.js.map +1 -1
- package/dist/resource/formats/vta/core/helpers.js +1 -17
- package/dist/resource/formats/vta/core/helpers.js.map +1 -1
- package/dist/resource/formats/wav/CjsWavFormat.js +4 -3
- package/dist/resource/formats/wav/CjsWavFormat.js.map +1 -1
- package/dist/resource/formats/wav/core/helpers.js +1 -15
- package/dist/resource/formats/wav/core/helpers.js.map +1 -1
- package/dist/resource/formats/webgl/CjsWebglFormat.js +4 -3
- package/dist/resource/formats/webgl/CjsWebglFormat.js.map +1 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js +52 -4
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js.map +1 -1
- package/dist/resource/formats/webgl/core/helpers.js +39 -68
- package/dist/resource/formats/webgl/core/helpers.js.map +1 -1
- package/dist/resource/formats/webgpu/CjsWebgpuFormat.js +4 -3
- package/dist/resource/formats/webgpu/CjsWebgpuFormat.js.map +1 -1
- package/dist/resource/formats/webgpu/core/helpers.js +4 -30
- package/dist/resource/formats/webgpu/core/helpers.js.map +1 -1
- package/dist/resource/formats/webm/CjsWebmFormat.js +4 -9
- package/dist/resource/formats/webm/CjsWebmFormat.js.map +1 -1
- package/dist/resource/formats/webm/core/helpers.js +1 -73
- package/dist/resource/formats/webm/core/helpers.js.map +1 -1
- package/dist/resource/formats/webp/CjsWebpFormat.js +4 -9
- package/dist/resource/formats/webp/CjsWebpFormat.js.map +1 -1
- package/dist/resource/formats/webp/core/helpers.js +1 -62
- package/dist/resource/formats/webp/core/helpers.js.map +1 -1
- package/dist/resource/formats/wem/CjsWemFormat.js +4 -3
- package/dist/resource/formats/wem/CjsWemFormat.js.map +1 -1
- package/dist/resource/formats/wem/core/bitStream.js +83 -106
- package/dist/resource/formats/wem/core/bitStream.js.map +1 -1
- package/dist/resource/formats/wem/core/codebookLibrary.js +52 -52
- package/dist/resource/formats/wem/core/codebookLibrary.js.map +1 -1
- package/dist/resource/formats/wem/core/helpers.js +1 -15
- package/dist/resource/formats/wem/core/helpers.js.map +1 -1
- package/dist/resource/formats/wem/core/wemToOgg.js +67 -67
- package/dist/resource/formats/wem/core/wemToOgg.js.map +1 -1
- package/dist/resource/geometry/MeshDecalData.js +23 -25
- package/dist/resource/geometry/MeshDecalData.js.map +1 -1
- package/dist/resource/geometry/MeshDecalLodData.js +14 -23
- package/dist/resource/geometry/MeshDecalLodData.js.map +1 -1
- package/dist/resource/geometry/TriGeometryRes.js +299 -284
- package/dist/resource/geometry/TriGeometryRes.js.map +1 -1
- package/dist/resource/geometry/TriGeometryResAreaData.js +30 -31
- package/dist/resource/geometry/TriGeometryResAreaData.js.map +1 -1
- package/dist/resource/geometry/TriGeometryResJointData.js +16 -24
- package/dist/resource/geometry/TriGeometryResJointData.js.map +1 -1
- package/dist/resource/geometry/TriGeometryResLodData.js +50 -41
- package/dist/resource/geometry/TriGeometryResLodData.js.map +1 -1
- package/dist/resource/geometry/TriGeometryResMeshData.js +32 -32
- package/dist/resource/geometry/TriGeometryResMeshData.js.map +1 -1
- package/dist/resource/geometry/TriGeometryResSkeletonData.js +14 -23
- package/dist/resource/geometry/TriGeometryResSkeletonData.js.map +1 -1
- package/dist/resource/geometry/TriJointBinding.js +16 -24
- package/dist/resource/geometry/TriJointBinding.js.map +1 -1
- package/dist/resource/geometry/TriMorphTargetGeometryConstants.js +22 -27
- package/dist/resource/geometry/TriMorphTargetGeometryConstants.js.map +1 -1
- package/dist/resource/geometry/TriRtGeometryConstants.js +50 -41
- package/dist/resource/geometry/TriRtGeometryConstants.js.map +1 -1
- package/dist/resource/geometry/granny/GStateBindingCallbackData.js +12 -22
- package/dist/resource/geometry/granny/GStateBindingCallbackData.js.map +1 -1
- package/dist/resource/geometry/granny/Tr2GrannyIntersectionResult.js +30 -31
- package/dist/resource/geometry/granny/Tr2GrannyIntersectionResult.js.map +1 -1
- package/dist/resource/index.js +1 -1
- package/dist/resource/shader/reflection/Tr2EffectConstant.js +16 -17
- package/dist/resource/shader/reflection/Tr2EffectConstant.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectDescription.js +26 -28
- package/dist/resource/shader/reflection/Tr2EffectDescription.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectLibrary.js +24 -25
- package/dist/resource/shader/reflection/Tr2EffectLibrary.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectParameterAnnotation.js +21 -22
- package/dist/resource/shader/reflection/Tr2EffectParameterAnnotation.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectResource.js +25 -26
- package/dist/resource/shader/reflection/Tr2EffectResource.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectStageInput.js +69 -72
- package/dist/resource/shader/reflection/Tr2EffectStageInput.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2EffectTechnique.js +17 -18
- package/dist/resource/shader/reflection/Tr2EffectTechnique.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2Pass.js +42 -43
- package/dist/resource/shader/reflection/Tr2Pass.js.map +1 -1
- package/dist/resource/shader/reflection/Tr2RenderStateSetup.js +26 -5
- package/dist/resource/shader/reflection/Tr2RenderStateSetup.js.map +1 -1
- package/dist/resource/shader/reflection/carbonRecordFields.js +87 -90
- package/dist/resource/shader/reflection/carbonRecordFields.js.map +1 -1
- package/dist/resource/shader/sampler/Tr2SamplerSetup.js +32 -34
- package/dist/resource/shader/sampler/Tr2SamplerSetup.js.map +1 -1
- package/dist/resource/texture/CjsTextureArrayRes.js +1 -6
- package/dist/resource/texture/CjsTextureArrayRes.js.map +1 -1
- package/dist/resource/texture/Tr2TextureLodManager.js +35 -27
- package/dist/resource/texture/Tr2TextureLodManager.js.map +1 -1
- package/dist/resource/texture/Tr2TextureLodUpdateRequest.js +16 -24
- package/dist/resource/texture/Tr2TextureLodUpdateRequest.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePackChannel.js +16 -24
- package/dist/resource/texture/Tr2TexturePackChannel.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipeline.js +24 -20
- package/dist/resource/texture/Tr2TexturePipeline.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineParams.js +14 -23
- package/dist/resource/texture/Tr2TexturePipelineParams.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepCompress.js +18 -25
- package/dist/resource/texture/Tr2TexturePipelineStepCompress.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepGenerateMips.js +11 -16
- package/dist/resource/texture/Tr2TexturePipelineStepGenerateMips.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLimitSize.js +14 -23
- package/dist/resource/texture/Tr2TexturePipelineStepLimitSize.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepLoad.js +12 -22
- package/dist/resource/texture/Tr2TexturePipelineStepLoad.js.map +1 -1
- package/dist/resource/texture/Tr2TexturePipelineStepPack.js +38 -26
- package/dist/resource/texture/Tr2TexturePipelineStepPack.js.map +1 -1
- package/dist/resource/worker/CjsResManMainThreadLoader.js +2 -5
- package/dist/resource/worker/CjsResManMainThreadLoader.js.map +1 -1
- package/dist/resource/worker/CjsResManWorkerLoader.js +6 -7
- package/dist/resource/worker/CjsResManWorkerLoader.js.map +1 -1
- package/dist/resource/worker/protocol.js +18 -1
- package/dist/resource/worker/protocol.js.map +1 -1
- package/dist/sof/EveSOF.js +2 -222
- package/dist/sof/EveSOF.js.map +1 -1
- package/dist/sof/SofDocumentBuilder.js +205 -0
- package/dist/sof/SofDocumentBuilder.js.map +1 -0
- package/dist/sof/faction/ErrSOFFactionColorSetTypeNotFound.js +16 -0
- package/dist/sof/faction/ErrSOFFactionColorSetTypeNotFound.js.map +1 -0
- package/dist/sof/faction/ErrSOFFactionColorSetTypeUnknown.js +16 -0
- package/dist/sof/faction/ErrSOFFactionColorSetTypeUnknown.js.map +1 -0
- package/dist/sof/faction/EveSOFDataFactionColorSet.js +3 -27
- package/dist/sof/faction/EveSOFDataFactionColorSet.js.map +1 -1
- package/dist/sof/faction/index.js +3 -1
- package/dist/sof/faction/index.js.map +1 -1
- package/dist/sof/generic/ErrSOFAreaShaderNotFound.js +18 -0
- package/dist/sof/generic/ErrSOFAreaShaderNotFound.js.map +1 -0
- package/dist/sof/generic/ErrSOFDecalShaderNotFound.js +18 -0
- package/dist/sof/generic/ErrSOFDecalShaderNotFound.js.map +1 -0
- package/dist/sof/generic/ErrSOFMaterialPrefixNotFound.js +21 -0
- package/dist/sof/generic/ErrSOFMaterialPrefixNotFound.js.map +1 -0
- package/dist/sof/generic/ErrSOFPatternMaterialPrefixNotFound.js +21 -0
- package/dist/sof/generic/ErrSOFPatternMaterialPrefixNotFound.js.map +1 -0
- package/dist/sof/generic/EveSOFDataGeneric.js +5 -69
- package/dist/sof/generic/EveSOFDataGeneric.js.map +1 -1
- package/dist/sof/generic/index.js +5 -1
- package/dist/sof/generic/index.js.map +1 -1
- package/dist/sof/index.js +23 -7
- package/dist/sof/index.js.map +1 -1
- package/dist/sof/pattern/ErrSOFProjectionNotFound.js +20 -0
- package/dist/sof/pattern/ErrSOFProjectionNotFound.js.map +1 -0
- package/dist/sof/pattern/EveSOFDataPattern.js +2 -17
- package/dist/sof/pattern/EveSOFDataPattern.js.map +1 -1
- package/dist/sof/pattern/index.js +2 -1
- package/dist/sof/pattern/index.js.map +1 -1
- package/dist/sof/shared/ErrSOFAreaTypeNotFound.js +16 -0
- package/dist/sof/shared/ErrSOFAreaTypeNotFound.js.map +1 -0
- package/dist/sof/shared/ErrSOFLogoSetTypeNotFound.js +16 -0
- package/dist/sof/shared/ErrSOFLogoSetTypeNotFound.js.map +1 -0
- package/dist/sof/shared/ErrSOFLogoSetTypeUnknown.js +16 -0
- package/dist/sof/shared/ErrSOFLogoSetTypeUnknown.js.map +1 -0
- package/dist/sof/shared/EveSOFDataArea.js +2 -13
- package/dist/sof/shared/EveSOFDataArea.js.map +1 -1
- package/dist/sof/shared/EveSOFDataLogoSet.js +3 -27
- package/dist/sof/shared/EveSOFDataLogoSet.js.map +1 -1
- package/dist/sof/shared/EveSOFDataParameter.js +2 -146
- package/dist/sof/shared/EveSOFDataParameter.js.map +1 -1
- package/dist/sof/shared/EveSOFDataParameterBool.js +40 -0
- package/dist/sof/shared/EveSOFDataParameterBool.js.map +1 -0
- package/dist/sof/shared/EveSOFDataParameterColor.js +36 -0
- package/dist/sof/shared/EveSOFDataParameterColor.js.map +1 -0
- package/dist/sof/shared/EveSOFDataParameterFloat.js +37 -0
- package/dist/sof/shared/EveSOFDataParameterFloat.js.map +1 -0
- package/dist/sof/shared/EveSOFDataParameterInt.js +37 -0
- package/dist/sof/shared/EveSOFDataParameterInt.js.map +1 -0
- package/dist/sof/shared/EveSOFDataParameterVector2.js +37 -0
- package/dist/sof/shared/EveSOFDataParameterVector2.js.map +1 -0
- package/dist/sof/shared/EveSOFDataParameterVector3.js +37 -0
- package/dist/sof/shared/EveSOFDataParameterVector3.js.map +1 -0
- package/dist/sof/shared/{EveSOFDataSpotlightAttachment.js → EveSOFDataSpotLightAttachment.js} +1 -1
- package/dist/sof/shared/{EveSOFDataSpotlightAttachment.js.map → EveSOFDataSpotLightAttachment.js.map} +1 -1
- package/dist/sof/shared/index.js +13 -4
- package/dist/sof/shared/index.js.map +1 -1
- package/dist/sof/sofDocumentValues.js +33 -0
- package/dist/sof/sofDocumentValues.js.map +1 -0
- package/dist/trinity/controllers/ITr2Controller/ITr2ActionController.js +168 -0
- package/dist/trinity/controllers/ITr2Controller/ITr2ActionController.js.map +1 -0
- package/dist/trinity/controllers/{ITr2Controller.js → ITr2Controller/ITr2Controller.js} +2 -134
- package/dist/trinity/controllers/ITr2Controller/ITr2Controller.js.map +1 -0
- package/dist/trinity/controllers/Tr2Controller.js +2 -1
- package/dist/trinity/controllers/Tr2Controller.js.map +1 -1
- package/dist/trinity/controllers/Tr2ControllerReference.js +2 -1
- package/dist/trinity/controllers/Tr2ControllerReference.js.map +1 -1
- package/dist/trinity/controllers/action/ITr2ControllerAction.js +2 -1
- package/dist/trinity/controllers/action/ITr2ControllerAction.js.map +1 -1
- package/dist/trinity/controllers/action/Tr2ActionSpawnParticles.js +10 -9
- package/dist/trinity/controllers/action/Tr2ActionSpawnParticles.js.map +1 -1
- package/dist/trinity/controllers/expression/CjsControllerExpressionCompileError.js +26 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionCompileError.js.map +1 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionEvaluateError.js +24 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionEvaluateError.js.map +1 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionParser.js +387 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionParser.js.map +1 -0
- package/dist/trinity/controllers/expression/CjsControllerExpressionProgram.js +4 -1011
- package/dist/trinity/controllers/expression/CjsControllerExpressionProgram.js.map +1 -1
- package/dist/trinity/controllers/expression/expressionRuntime.js +605 -0
- package/dist/trinity/controllers/expression/expressionRuntime.js.map +1 -0
- package/dist/trinity/controllers/index.js +5 -2
- package/dist/trinity/controllers/index.js.map +1 -1
- package/dist/trinity/controllers/state/ITr2StateMachineStateFinalizer.js +2 -1
- package/dist/trinity/controllers/state/ITr2StateMachineStateFinalizer.js.map +1 -1
- package/dist/trinity/controllers/timeline/Tr2TimelineController.js +2 -1
- package/dist/trinity/controllers/timeline/Tr2TimelineController.js.map +1 -1
- package/dist/trinity/core/ITr2Updateable.js +2 -1
- package/dist/trinity/core/ITr2Updateable.js.map +1 -1
- package/dist/trinity/core/Tr2Blitter.js +6 -3
- package/dist/trinity/core/Tr2Blitter.js.map +1 -1
- package/dist/trinity/core/Tr2Denoiser.js +256 -0
- package/dist/trinity/core/Tr2Denoiser.js.map +1 -0
- package/dist/trinity/core/Tr2GpuResourcePool/GpuResourceHandle.js +115 -0
- package/dist/trinity/core/Tr2GpuResourcePool/GpuResourceHandle.js.map +1 -0
- package/dist/trinity/core/Tr2GpuResourcePool/TextureSize2D.js +79 -0
- package/dist/trinity/core/Tr2GpuResourcePool/TextureSize2D.js.map +1 -0
- package/dist/trinity/core/{Tr2GpuResourcePool.js → Tr2GpuResourcePool/Tr2GpuResourcePool.js} +63 -151
- package/dist/trinity/core/Tr2GpuResourcePool/Tr2GpuResourcePool.js.map +1 -0
- package/dist/trinity/core/{Tr2QuadRenderer.js → Tr2QuadRenderer/Tr2QuadRenderer.js} +8 -30
- package/dist/trinity/core/Tr2QuadRenderer/Tr2QuadRenderer.js.map +1 -0
- package/dist/trinity/core/Tr2QuadRenderer/Tr2QuadRendererEffectRecord.js +38 -0
- package/dist/trinity/core/Tr2QuadRenderer/Tr2QuadRendererEffectRecord.js.map +1 -0
- package/dist/trinity/core/Tr2RenderUtils.js +20 -3
- package/dist/trinity/core/Tr2RenderUtils.js.map +1 -1
- package/dist/trinity/core/Tr2Renderer.js +146 -1
- package/dist/trinity/core/Tr2Renderer.js.map +1 -1
- package/dist/trinity/core/Tr2ShadowMap.js +135 -14
- package/dist/trinity/core/Tr2ShadowMap.js.map +1 -1
- package/dist/trinity/core/{Tr2TextureArray.js → Tr2TextureArray/Tr2TextureArray.js} +3 -58
- package/dist/trinity/core/Tr2TextureArray/Tr2TextureArray.js.map +1 -0
- package/dist/trinity/core/Tr2TextureArray/Tr2TextureArrayElement.js +61 -0
- package/dist/trinity/core/Tr2TextureArray/Tr2TextureArrayElement.js.map +1 -0
- package/dist/trinity/core/batch/TriRenderBatch/DefaultKeyGenerator.js +26 -0
- package/dist/trinity/core/batch/TriRenderBatch/DefaultKeyGenerator.js.map +1 -0
- package/dist/trinity/core/batch/TriRenderBatch/EffectKeyGenerator.js +29 -0
- package/dist/trinity/core/batch/TriRenderBatch/EffectKeyGenerator.js.map +1 -0
- package/dist/trinity/core/batch/{ITriRenderBatchAccumulator.js → TriRenderBatch/ITriRenderBatchAccumulator.js} +30 -30
- package/dist/trinity/core/batch/TriRenderBatch/ITriRenderBatchAccumulator.js.map +1 -0
- package/dist/trinity/core/batch/{Tr2RenderBatch.js → TriRenderBatch/Tr2RenderBatch.js} +81 -154
- package/dist/trinity/core/batch/TriRenderBatch/Tr2RenderBatch.js.map +1 -0
- package/dist/trinity/core/batch/{TriRenderBatchAccumulator.js → TriRenderBatch/TriRenderBatchAccumulator.js} +7 -38
- package/dist/trinity/core/batch/TriRenderBatch/TriRenderBatchAccumulator.js.map +1 -0
- package/dist/trinity/core/batch/TriRenderBatch/TriRenderBatchAreaBlock.js +61 -0
- package/dist/trinity/core/batch/TriRenderBatch/TriRenderBatchAreaBlock.js.map +1 -0
- package/dist/trinity/core/batch/TriRenderBatch/TriRenderBatchAreaBlocksWithSharedMaterial.js +40 -0
- package/dist/trinity/core/batch/TriRenderBatch/TriRenderBatchAreaBlocksWithSharedMaterial.js.map +1 -0
- package/dist/trinity/core/batch/TriRenderBatchMap.js +6 -1
- package/dist/trinity/core/batch/TriRenderBatchMap.js.map +1 -1
- package/dist/trinity/core/context/Tr2RenderContext.js +75 -57
- package/dist/trinity/core/context/Tr2RenderContext.js.map +1 -1
- package/dist/trinity/core/context/Tr2VisibilityResults/Tr2VisibilityEvent.js +67 -0
- package/dist/trinity/core/context/Tr2VisibilityResults/Tr2VisibilityEvent.js.map +1 -0
- package/dist/trinity/core/context/Tr2VisibilityResults/Tr2VisibilityResults.js +50 -0
- package/dist/trinity/core/context/Tr2VisibilityResults/Tr2VisibilityResults.js.map +1 -0
- package/dist/trinity/core/device/Tr2DepthStencil.js +186 -13
- package/dist/trinity/core/device/Tr2DepthStencil.js.map +1 -1
- package/dist/trinity/core/device/{Tr2RingBuffer.js → Tr2RingBuffer/Tr2RingBuffer.js} +27 -79
- package/dist/trinity/core/device/Tr2RingBuffer/Tr2RingBuffer.js.map +1 -0
- package/dist/trinity/core/device/Tr2RingBuffer/Tr2RingBufferOffsets.js +114 -0
- package/dist/trinity/core/device/Tr2RingBuffer/Tr2RingBufferOffsets.js.map +1 -0
- package/dist/trinity/core/device/{Tr2SuballocatedBuffer.js → Tr2SuballocatedBuffer/Tr2SuballocatedBuffer.js} +5 -59
- package/dist/trinity/core/device/Tr2SuballocatedBuffer/Tr2SuballocatedBuffer.js.map +1 -0
- package/dist/trinity/core/device/Tr2SuballocatedBuffer/Tr2SuballocatedBufferAllocation.js +80 -0
- package/dist/trinity/core/device/Tr2SuballocatedBuffer/Tr2SuballocatedBufferAllocation.js.map +1 -0
- package/dist/trinity/core/index.js +42 -15
- package/dist/trinity/core/index.js.map +1 -1
- package/dist/trinity/core/lighting/Tr2LightManager.js +6 -1
- package/dist/trinity/core/lighting/Tr2LightManager.js.map +1 -1
- package/dist/trinity/core/mesh/{ITr2ImpostorSource.js → ITr2ImpostorSource/ITr2ImpostorSource.js} +6 -28
- package/dist/trinity/core/mesh/ITr2ImpostorSource/ITr2ImpostorSource.js.map +1 -0
- package/dist/trinity/core/mesh/ITr2ImpostorSource/ITr2ImpostorSourceImpostorHash.js +32 -0
- package/dist/trinity/core/mesh/ITr2ImpostorSource/ITr2ImpostorSourceImpostorHash.js.map +1 -0
- package/dist/trinity/core/mesh/{ITr2InstanceData.js → ITr2InstanceData/ITr2InstanceData.js} +5 -29
- package/dist/trinity/core/mesh/ITr2InstanceData/ITr2InstanceData.js.map +1 -0
- package/dist/trinity/core/mesh/ITr2InstanceData/ITr2InstanceDataInstanceData.js +33 -0
- package/dist/trinity/core/mesh/ITr2InstanceData/ITr2InstanceDataInstanceData.js.map +1 -0
- package/dist/trinity/core/mesh/Tr2DirectInstanceData.js +2 -1
- package/dist/trinity/core/mesh/Tr2DirectInstanceData.js.map +1 -1
- package/dist/trinity/core/mesh/Tr2MeshBase.js +7 -1
- package/dist/trinity/core/mesh/Tr2MeshBase.js.map +1 -1
- package/dist/trinity/core/mesh/Tr2RuntimeInstanceData.js +2 -1
- package/dist/trinity/core/mesh/Tr2RuntimeInstanceData.js.map +1 -1
- package/dist/trinity/core/mesh/TriGeometryResAllocations.js +6 -2
- package/dist/trinity/core/mesh/TriGeometryResAllocations.js.map +1 -1
- package/dist/trinity/core/rawData/CjsConstantLayout.js +196 -0
- package/dist/trinity/core/rawData/CjsConstantLayout.js.map +1 -0
- package/dist/trinity/core/rawData/CjsPerFrameLayouts.js +8 -3
- package/dist/trinity/core/rawData/CjsPerFrameLayouts.js.map +1 -1
- package/dist/trinity/core/rawData/CjsPerObjectLayouts.js +40 -732
- package/dist/trinity/core/rawData/CjsPerObjectLayouts.js.map +1 -1
- package/dist/trinity/core/rawData/layouts/CjsEveBasicLayout.js +34 -0
- package/dist/trinity/core/rawData/layouts/CjsEveBasicLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveBoosterSetLayout.js +69 -0
- package/dist/trinity/core/rawData/layouts/CjsEveBoosterSetLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildBoosterSetLayout.js +59 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildBoosterSetLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildBulletStormLayout.js +37 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildBulletStormLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildSpherePinLayout.js +44 -0
- package/dist/trinity/core/rawData/layouts/CjsEveChildSpherePinLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveLensflareLayout.js +31 -0
- package/dist/trinity/core/rawData/layouts/CjsEveLensflareLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveMissileWarheadLayout.js +29 -0
- package/dist/trinity/core/rawData/layouts/CjsEveMissileWarheadLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEvePerObjectLayout.js +39 -0
- package/dist/trinity/core/rawData/layouts/CjsEvePerObjectLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSceneStaticParticlesLayout.js +30 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSceneStaticParticlesLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpaceObjectDecalLayout.js +78 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpaceObjectDecalLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpaceObjectLayout.js +169 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpaceObjectLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpacePerObjectLayout.js +107 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpacePerObjectLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpherePinLayout.js +44 -0
- package/dist/trinity/core/rawData/layouts/CjsEveSpherePinLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveStretch2Layout.js +34 -0
- package/dist/trinity/core/rawData/layouts/CjsEveStretch2Layout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsEveTurretSetLayout.js +82 -0
- package/dist/trinity/core/rawData/layouts/CjsEveTurretSetLayout.js.map +1 -0
- package/dist/trinity/core/rawData/layouts/CjsTr2PerObjectLayout.js +42 -0
- package/dist/trinity/core/rawData/layouts/CjsTr2PerObjectLayout.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveBasicPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveBasicPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveBoosterSetPerObjectData.js +59 -0
- package/dist/trinity/core/rawData/perObjectData/EveBoosterSetPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildBoosterSetPerObjectData.js +59 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildBoosterSetPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildBulletStormPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildBulletStormPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildSpherePinPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveChildSpherePinPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveDecalPerObjectData.js +59 -0
- package/dist/trinity/core/rawData/perObjectData/EveDecalPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveLensflarePerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveLensflarePerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveMissileWarheadPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveMissileWarheadPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveSceneStaticParticlesPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveSceneStaticParticlesPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveSpherePinPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/EveSpherePinPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/EveTurretSetPerObjectData.js +59 -0
- package/dist/trinity/core/rawData/perObjectData/EveTurretSetPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/StretchPerObjectData.js +55 -0
- package/dist/trinity/core/rawData/perObjectData/StretchPerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/{Tr2PerObjectData.js → perObjectData/Tr2PerObjectData.js} +110 -62
- package/dist/trinity/core/rawData/perObjectData/Tr2PerObjectData.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/Tr2PerObjectDataPSBuffer.js +104 -0
- package/dist/trinity/core/rawData/perObjectData/Tr2PerObjectDataPSBuffer.js.map +1 -0
- package/dist/trinity/core/rawData/perObjectData/Tr2PerObjectDataStandard.js +87 -0
- package/dist/trinity/core/rawData/perObjectData/Tr2PerObjectDataStandard.js.map +1 -0
- package/dist/trinity/core/variable/TriVariable.js +83 -83
- package/dist/trinity/core/variable/TriVariable.js.map +1 -1
- package/dist/trinity/core/vertex/{Tr2VertexDefinition.js → Tr2VertexDefinition/Tr2VertexDefinition.js} +4 -20
- package/dist/trinity/core/vertex/Tr2VertexDefinition/Tr2VertexDefinition.js.map +1 -0
- package/dist/trinity/core/vertex/Tr2VertexDefinition/Tr2VertexDefinitionItem.js +29 -0
- package/dist/trinity/core/vertex/Tr2VertexDefinition/Tr2VertexDefinitionItem.js.map +1 -0
- package/dist/trinity/core/volumetrics/Tr2VolumetricsRenderer.js +116 -36
- package/dist/trinity/core/volumetrics/Tr2VolumetricsRenderer.js.map +1 -1
- package/dist/trinity/curves/curve/Tr2CurveRandomAxisRotation.js +50 -92
- package/dist/trinity/curves/curve/Tr2CurveRandomAxisRotation.js.map +1 -1
- package/dist/trinity/eve/EveModularObjectModifier.js +9 -5
- package/dist/trinity/eve/EveModularObjectModifier.js.map +1 -1
- package/dist/trinity/eve/IEveInheritPropertiesOwner.js +2 -1
- package/dist/trinity/eve/IEveInheritPropertiesOwner.js.map +1 -1
- package/dist/trinity/eve/IEveSpaceObject2.js +2 -1
- package/dist/trinity/eve/IEveSpaceObject2.js.map +1 -1
- package/dist/trinity/eve/IEveTransform.js +2 -1
- package/dist/trinity/eve/IEveTransform.js.map +1 -1
- package/dist/trinity/eve/attachment/banner/EveBannerSet.js +2 -2
- package/dist/trinity/eve/attachment/banner/EveBannerSet.js.map +1 -1
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2.js +109 -133
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2.js.map +1 -1
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2Item.js +40 -0
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2Item.js.map +1 -0
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2Renderable.js +1 -1
- package/dist/trinity/eve/attachment/booster/EveBoosterSet2Renderable.js.map +1 -1
- package/dist/trinity/eve/attachment/decal/DecalMeshCache.js +2 -14
- package/dist/trinity/eve/attachment/decal/DecalMeshCache.js.map +1 -1
- package/dist/trinity/eve/attachment/decal/DecalMeshCacheMeshBuffers.js +18 -0
- package/dist/trinity/eve/attachment/decal/DecalMeshCacheMeshBuffers.js.map +1 -0
- package/dist/trinity/eve/attachment/decal/EveSpaceObjectDecal.js +1 -1
- package/dist/trinity/eve/attachment/decal/EveSpaceObjectDecal.js.map +1 -1
- package/dist/trinity/eve/attachment/haze/EveHazeSet.js +1 -1
- package/dist/trinity/eve/attachment/haze/EveHazeSet.js.map +1 -1
- package/dist/trinity/eve/attachment/plane/EvePlaneSet.js +1 -1
- package/dist/trinity/eve/attachment/plane/EvePlaneSet.js.map +1 -1
- package/dist/trinity/eve/attachment/spotlight/EveSpotlightSet.js +2 -2
- package/dist/trinity/eve/attachment/spotlight/EveSpotlightSet.js.map +1 -1
- package/dist/trinity/eve/attachment/sprite/EveSpriteLineSet.js +1 -1
- package/dist/trinity/eve/attachment/sprite/EveSpriteLineSet.js.map +1 -1
- package/dist/trinity/eve/attachment/sprite/EveSpriteSet.js +4 -2
- package/dist/trinity/eve/attachment/sprite/EveSpriteSet.js.map +1 -1
- package/dist/trinity/eve/attachment/turrets/EveTurretSet.js +143 -139
- package/dist/trinity/eve/attachment/turrets/EveTurretSet.js.map +1 -1
- package/dist/trinity/eve/camera/EveCamera.js +1 -1
- package/dist/trinity/eve/camera/EveCamera.js.map +1 -1
- package/dist/trinity/eve/child/EveChildBoosterSet.js +12 -1
- package/dist/trinity/eve/child/EveChildBoosterSet.js.map +1 -1
- package/dist/trinity/eve/child/EveChildCloud2.js +178 -151
- package/dist/trinity/eve/child/EveChildCloud2.js.map +1 -1
- package/dist/trinity/eve/child/EveChildContainer.js +141 -141
- package/dist/trinity/eve/child/EveChildContainer.js.map +1 -1
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMesh.js +87 -0
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMesh.js.map +1 -0
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshArea.js +46 -0
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshArea.js.map +1 -0
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshInstance.js +35 -0
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshInstance.js.map +1 -0
- package/dist/trinity/eve/child/{EveChildInstancedMeshes.js → EveChildInstancedMeshes/EveChildInstancedMeshes.js} +42 -163
- package/dist/trinity/eve/child/EveChildInstancedMeshes/EveChildInstancedMeshes.js.map +1 -0
- package/dist/trinity/eve/child/EveChildMesh.js +218 -218
- package/dist/trinity/eve/child/EveChildMesh.js.map +1 -1
- package/dist/trinity/eve/child/EveChildPartData/EveChildPartData.js +53 -0
- package/dist/trinity/eve/child/EveChildPartData/EveChildPartData.js.map +1 -0
- package/dist/trinity/eve/child/{EveChildPartData.js → EveChildPartData/EveChildPartDataPartData.js} +9 -45
- package/dist/trinity/eve/child/EveChildPartData/EveChildPartDataPartData.js.map +1 -0
- package/dist/trinity/eve/child/EveChildParticleSystem.js +30 -29
- package/dist/trinity/eve/child/EveChildParticleSystem.js.map +1 -1
- package/dist/trinity/eve/child/EveChildTransform.js +5 -0
- package/dist/trinity/eve/child/EveChildTransform.js.map +1 -1
- package/dist/trinity/eve/child/EveChildTurret.js +7 -0
- package/dist/trinity/eve/child/EveChildTurret.js.map +1 -1
- package/dist/trinity/eve/index.js +10 -4
- package/dist/trinity/eve/index.js.map +1 -1
- package/dist/trinity/eve/lights/Tr2Light.js +5 -0
- package/dist/trinity/eve/lights/Tr2Light.js.map +1 -1
- package/dist/trinity/eve/overlays/overlayBatches.js +6 -1
- package/dist/trinity/eve/overlays/overlayBatches.js.map +1 -1
- package/dist/trinity/eve/particles/static/EveSceneStaticParticles.js +4 -4
- package/dist/trinity/eve/particles/static/EveSceneStaticParticles.js.map +1 -1
- package/dist/trinity/eve/renderable/stretch/EveStretch2.js +76 -71
- package/dist/trinity/eve/renderable/stretch/EveStretch2.js.map +1 -1
- package/dist/trinity/eve/renderable/stretch/EveStretch3.js +1 -1
- package/dist/trinity/eve/renderable/stretch/EveStretch3.js.map +1 -1
- package/dist/trinity/eve/spaceObject/EveShip2.js +3 -3
- package/dist/trinity/eve/spaceObject/EveShip2.js.map +1 -1
- package/dist/trinity/eve/spaceObject/EveSpaceObject2.js +408 -407
- package/dist/trinity/eve/spaceObject/EveSpaceObject2.js.map +1 -1
- package/dist/trinity/eve/ui/EveTacticalOverlay.js +1 -1
- package/dist/trinity/eve/ui/EveTacticalOverlay.js.map +1 -1
- package/dist/trinity/eve/ui/lines/EveCurveLineSet.js +9 -9
- package/dist/trinity/eve/ui/lines/EveCurveLineSet.js.map +1 -1
- package/dist/trinity/eve/ui/lines/EveLineSet.js +27 -25
- package/dist/trinity/eve/ui/lines/EveLineSet.js.map +1 -1
- package/dist/trinity/eve/ui/tacticalOverlay/EveTacticalTrails.js +3 -2
- package/dist/trinity/eve/ui/tacticalOverlay/EveTacticalTrails.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 +59 -23
- package/dist/trinity/index.js.map +1 -1
- package/dist/trinity/particle/{ITr2GenericEmitter.js → ITr2GenericEmitter/ITr2GenericEmitter.js} +4 -32
- package/dist/trinity/particle/ITr2GenericEmitter/ITr2GenericEmitter.js.map +1 -0
- package/dist/trinity/particle/ITr2GenericEmitter/ITr2GenericEmitterUpdateArguments.js +36 -0
- package/dist/trinity/particle/ITr2GenericEmitter/ITr2GenericEmitterUpdateArguments.js.map +1 -0
- package/dist/trinity/particle/Tr2ParticleSystem.js +4 -2
- package/dist/trinity/particle/Tr2ParticleSystem.js.map +1 -1
- package/dist/trinity/particle/element/Tr2ParticleElementData.js +15 -4
- package/dist/trinity/particle/element/Tr2ParticleElementData.js.map +1 -1
- package/dist/trinity/particle/emitter/Tr2DynamicEmitter.js +21 -20
- package/dist/trinity/particle/emitter/Tr2DynamicEmitter.js.map +1 -1
- package/dist/trinity/particle/emitter/Tr2GpuSharedEmitter.js +23 -22
- package/dist/trinity/particle/emitter/Tr2GpuSharedEmitter.js.map +1 -1
- package/dist/trinity/particle/emitter/Tr2StaticEmitter.js +14 -13
- package/dist/trinity/particle/emitter/Tr2StaticEmitter.js.map +1 -1
- package/dist/trinity/particle/index.js +2 -1
- package/dist/trinity/particle/index.js.map +1 -1
- package/dist/trinity/renderJob/step/TriStepPushRenderTarget.js +7 -1
- package/dist/trinity/renderJob/step/TriStepPushRenderTarget.js.map +1 -1
- package/dist/trinity/shader/Tr2Effect.js +131 -58
- package/dist/trinity/shader/Tr2Effect.js.map +1 -1
- package/dist/trinity/shader/Tr2EffectStateManager.js +17 -5
- package/dist/trinity/shader/Tr2EffectStateManager.js.map +1 -1
- package/dist/trinity/shader/Tr2Material.js +21 -4
- package/dist/trinity/shader/Tr2Material.js.map +1 -1
- package/dist/trinity/shader/material/Tr2EffectPassParameters.js +4 -1
- package/dist/trinity/shader/material/Tr2EffectPassParameters.js.map +1 -1
- package/dist/trinity/shader/parameter/Tr2GeometryBufferParameter.js +2 -2
- package/dist/trinity/shader/parameter/Tr2GeometryBufferParameter.js.map +1 -1
- package/dist/trinityal/Tr2BufferAL/Tr2BufferDescriptionAL.js +79 -0
- package/dist/trinityal/Tr2BufferAL/Tr2BufferDescriptionAL.js.map +1 -0
- package/dist/trinityal/{Tr2DeviceResourceAL.js → Tr2DeviceResourceAL/Tr2BaseDeviceResourceAL.js} +77 -79
- package/dist/trinityal/Tr2DeviceResourceAL/Tr2BaseDeviceResourceAL.js.map +1 -0
- package/dist/trinityal/Tr2DeviceResourceAL/Tr2DeviceResourceAL.js +24 -0
- package/dist/trinityal/Tr2DeviceResourceAL/Tr2DeviceResourceAL.js.map +1 -0
- package/dist/trinityal/Tr2DrawUPHelper.js +2 -1
- package/dist/trinityal/Tr2DrawUPHelper.js.map +1 -1
- package/dist/trinityal/Tr2HalHelperStructures/Tr2MsaaDesc.js +45 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2MsaaDesc.js.map +1 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2SamplerDescription.js +154 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2SamplerDescription.js.map +1 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2SubresourceData.js +48 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2SubresourceData.js.map +1 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2TextureCoordBox.js +75 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2TextureCoordBox.js.map +1 -0
- package/dist/trinityal/{Tr2HalHelperStructures.js → Tr2HalHelperStructures/Tr2TextureSubresource.js} +11 -115
- package/dist/trinityal/Tr2HalHelperStructures/Tr2TextureSubresource.js.map +1 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2Viewport.js +51 -0
- package/dist/trinityal/Tr2HalHelperStructures/Tr2Viewport.js.map +1 -0
- package/dist/trinityal/{Tr2RenderPassAL.js → Tr2RenderPassAL/Tr2ColorAttachment.js} +5 -28
- package/dist/trinityal/Tr2RenderPassAL/Tr2ColorAttachment.js.map +1 -0
- package/dist/trinityal/Tr2RenderPassAL/Tr2DepthAttachment.js +38 -0
- package/dist/trinityal/Tr2RenderPassAL/Tr2DepthAttachment.js.map +1 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2RegisterMapAL.js +80 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2RegisterMapAL.js.map +1 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetAL.js +76 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetAL.js.map +1 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetALStub.js +96 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetALStub.js.map +1 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetDescriptionAL.js +196 -0
- package/dist/trinityal/Tr2ResourceSetAL/Tr2ResourceSetDescriptionAL.js.map +1 -0
- package/dist/trinityal/index.js +22 -9
- package/dist/trinityal/index.js.map +1 -1
- package/dist/trinityal/stub/Tr2BufferALStub.js +86 -141
- package/dist/trinityal/stub/Tr2BufferALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2CapsALStub.js +17 -0
- package/dist/trinityal/stub/Tr2CapsALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2ConstantBufferALStub.js +57 -41
- package/dist/trinityal/stub/Tr2ConstantBufferALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2FenceALStub.js +18 -2
- package/dist/trinityal/stub/Tr2FenceALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2GpuTimerALStub.js +97 -0
- package/dist/trinityal/stub/Tr2GpuTimerALStub.js.map +1 -0
- package/dist/trinityal/stub/Tr2OcclusionQueryALStub.js +124 -0
- package/dist/trinityal/stub/Tr2OcclusionQueryALStub.js.map +1 -0
- package/dist/trinityal/stub/Tr2PipelineStatsQueryALStub/Tr2PipelineStatsQueryALStub.js +146 -0
- package/dist/trinityal/stub/Tr2PipelineStatsQueryALStub/Tr2PipelineStatsQueryALStub.js.map +1 -0
- package/dist/trinityal/stub/Tr2RenderContextALStub/Tr2BindlessResourcesAL.js +28 -0
- package/dist/trinityal/stub/Tr2RenderContextALStub/Tr2BindlessResourcesAL.js.map +1 -0
- package/dist/trinityal/stub/{Tr2RenderContextALStub.js → Tr2RenderContextALStub/Tr2RenderContextALStub.js} +70 -75
- package/dist/trinityal/stub/Tr2RenderContextALStub/Tr2RenderContextALStub.js.map +1 -0
- package/dist/trinityal/stub/Tr2SamplerStateALStub.js +47 -31
- package/dist/trinityal/stub/Tr2SamplerStateALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2ShaderALStub.js +61 -45
- package/dist/trinityal/stub/Tr2ShaderALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2ShaderProgramALStub.js +51 -33
- package/dist/trinityal/stub/Tr2ShaderProgramALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2SwapChainALStub.js +61 -45
- package/dist/trinityal/stub/Tr2SwapChainALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2TextureALStub.js +188 -171
- package/dist/trinityal/stub/Tr2TextureALStub.js.map +1 -1
- package/dist/trinityal/stub/Tr2VertexLayoutALStub.js +43 -27
- package/dist/trinityal/stub/Tr2VertexLayoutALStub.js.map +1 -1
- package/dist/trinityal/stub/{Tr2VideoAdapterInfoALStub.js → Tr2VideoAdapterInfoStub.js} +16 -1
- package/dist/trinityal/stub/Tr2VideoAdapterInfoStub.js.map +1 -0
- package/dist/trinityal/stub/index.js +8 -4
- package/dist/trinityal/stub/index.js.map +1 -1
- package/dist/trinityal/vertexLayoutMatch.js +2 -2
- package/dist/trinityal/vertexLayoutMatch.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuBufferAL.js +105 -90
- package/dist/trinityal/webgpu/CjsWebgpuBufferAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuCapsAL.js +17 -0
- package/dist/trinityal/webgpu/CjsWebgpuCapsAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuConstantBufferAL.js +15 -0
- package/dist/trinityal/webgpu/CjsWebgpuConstantBufferAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuDevice.js +2 -2
- package/dist/trinityal/webgpu/CjsWebgpuDevice.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js +900 -938
- package/dist/trinityal/webgpu/CjsWebgpuRenderContextAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuResourceSetAL.js +56 -60
- package/dist/trinityal/webgpu/CjsWebgpuResourceSetAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuSamplerStateAL.js +16 -1
- package/dist/trinityal/webgpu/CjsWebgpuSamplerStateAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuShaderAL.js +100 -379
- package/dist/trinityal/webgpu/CjsWebgpuShaderAL.js.map +1 -1
- package/dist/trinityal/webgpu/CjsWebgpuShaderProgramAL.js +330 -0
- package/dist/trinityal/webgpu/CjsWebgpuShaderProgramAL.js.map +1 -0
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js +15 -0
- package/dist/trinityal/webgpu/CjsWebgpuTextureAL.js.map +1 -1
- package/dist/trinityal/webgpu/core/{constantArena.js → CjsWebgpuConstantArena.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuConstantArena.js.map +1 -0
- package/dist/trinityal/webgpu/core/{batchGroups.js → CjsWebgpuEncodeState.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuEncodeState.js.map +1 -0
- package/dist/trinityal/webgpu/core/{perFrameSource.js → CjsWebgpuPerFrameSource.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuPerFrameSource.js.map +1 -0
- package/dist/trinityal/webgpu/core/{pipelineCache.js → CjsWebgpuPipelineCache.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuPipelineCache.js.map +1 -0
- package/dist/trinityal/webgpu/core/{psoDescription.js → CjsWebgpuPsoDescription.js} +2 -2
- package/dist/trinityal/webgpu/core/CjsWebgpuPsoDescription.js.map +1 -0
- package/dist/trinityal/webgpu/core/{renderTarget.js → CjsWebgpuRenderTarget.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuRenderTarget.js.map +1 -0
- package/dist/trinityal/webgpu/core/{samplerSource.js → CjsWebgpuSamplerSource.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuSamplerSource.js.map +1 -0
- package/dist/trinityal/webgpu/core/{textureSource.js → CjsWebgpuTextureSource.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuTextureSource.js.map +1 -0
- package/dist/trinityal/webgpu/core/{trinityBatchDispatcher.js → CjsWebgpuTrinityBatchDispatcher.js} +4 -4
- package/dist/trinityal/webgpu/core/CjsWebgpuTrinityBatchDispatcher.js.map +1 -0
- package/dist/trinityal/webgpu/core/{trinityBatchResolver.js → CjsWebgpuTrinityBatchResolver.js} +81 -81
- package/dist/trinityal/webgpu/core/CjsWebgpuTrinityBatchResolver.js.map +1 -0
- package/dist/trinityal/webgpu/core/{trinityPassEncoder.js → CjsWebgpuTrinityPassEncoder.js} +2 -2
- package/dist/trinityal/webgpu/core/CjsWebgpuTrinityPassEncoder.js.map +1 -0
- package/dist/trinityal/webgpu/core/{workQueue.js → CjsWebgpuWorkQueue.js} +1 -1
- package/dist/trinityal/webgpu/core/CjsWebgpuWorkQueue.js.map +1 -0
- package/dist/trinityal/webgpu/internal.js +12 -11
- package/dist/trinityal/webgpu/internal.js.map +1 -1
- package/docs/audio/reference/classes/trinity.md +44 -34
- package/docs/character/architecture.md +276 -0
- package/docs/character/reference/character-appearance-plans.md +30 -66
- package/docs/character/reference/prepared-libraries.md +14 -30
- package/docs/global/reference/api.md +2 -1
- package/docs/global/reference/classes/README.md +53 -71
- package/docs/global/reference/classes/dropped.md +16 -0
- package/docs/resource/README.md +19 -15
- package/docs/resource/architecture.md +9 -2
- package/docs/resource/concepts/format-capabilities.md +124 -80
- package/docs/resource/concepts/shared-format-helpers.md +94 -0
- package/docs/resource/formats/README.md +230 -224
- package/docs/resource/formats/bitknit2.md +221 -0
- package/docs/resource/formats/carbon-effect-container.md +184 -269
- package/docs/resource/formats/gr2.md +6 -1
- package/docs/resource/formats/schemabound.md +28 -48
- package/docs/resource/formats/static.md +70 -97
- package/docs/resource/formats/webgl/carbon-constant-layouts.md +8 -8
- package/docs/resource/formats/webgl/decl-io.md +165 -256
- package/docs/resource/formats/webgl/memory-structured.md +64 -142
- package/docs/resource/formats/webgl/texture-sample.md +109 -138
- package/docs/resource/formats/webgpu/formats/carbon-webgpu.md +38 -69
- package/docs/resource/formats/webgpu/guides/effect-packaging.md +54 -116
- package/docs/resource/formats/webgpu/reference/api.md +64 -67
- package/docs/resource/formats/webgpu/reference/wgsl-compatibility.md +104 -260
- package/docs/resource/reference/classes/core.md +256 -236
- package/docs/resource/reference/classes/formats.md +1668 -1672
- package/docs/resource/reference/workers.md +4 -2
- package/docs/sof/reference/classes/core.md +1 -1
- package/docs/sof/reference/classes/faction.md +2 -2
- package/docs/sof/reference/classes/generic.md +4 -4
- package/docs/sof/reference/classes/pattern.md +1 -1
- package/docs/sof/reference/classes/shared.md +10 -10
- package/docs/trinity/architecture.md +55 -44
- package/docs/trinity/concepts/generated-class-lifecycle.md +10 -15
- package/docs/trinity/reference/classes/curves-and-utilities.md +496 -506
- package/docs/trinity/reference/classes/dropped.md +0 -189
- package/docs/trinity/reference/classes/eve-runtime.md +8 -8
- package/docs/trinity/reference/classes/generated.md +0 -10
- package/docs/trinity/reference/classes/particle.md +2 -2
- package/docs/trinity/reference/classes/trinity-core.md +1554 -1256
- package/docs/trinity/reference/implementation-status.md +50 -75
- package/docs/trinity/reference/main-semantic-extraction.md +13 -17
- package/docs/trinityal/reference/classes/README.md +77 -27
- package/docs/trinityal/reference/classes/dropped.md +82 -0
- package/docs/trinityal/webgpu/README.md +3 -1
- package/docs/trinityal/webgpu/architecture.md +121 -228
- package/docs/trinityal/webgpu/reference/api.md +5 -5
- package/docs/trinityal/webgpu/reference/classes/README.md +13 -13
- package/format-notices/gr2/NOTICE +18 -12
- package/format-notices/gr2/THIRD-PARTY-NOTICES.md +5 -5
- package/package.json +4 -1
- package/dist/audio/trinity/audio/AudActionLog.js +0 -173
- package/dist/audio/trinity/audio/AudActionLog.js.map +0 -1
- package/dist/audio/trinity/audio/AudObstructionOcclusion.js.map +0 -1
- package/dist/global/contracts/CjsScriptCallback.js +0 -94
- package/dist/global/contracts/CjsScriptCallback.js.map +0 -1
- package/dist/trinity/controllers/ITr2Controller.js.map +0 -1
- package/dist/trinity/core/Tr2GpuResourcePool.js.map +0 -1
- package/dist/trinity/core/Tr2QuadRenderer.js.map +0 -1
- package/dist/trinity/core/Tr2TextureArray.js.map +0 -1
- package/dist/trinity/core/batch/ITriRenderBatchAccumulator.js.map +0 -1
- package/dist/trinity/core/batch/Tr2RenderBatch.js.map +0 -1
- package/dist/trinity/core/batch/TriRenderBatchAccumulator.js.map +0 -1
- package/dist/trinity/core/context/CjsShadowMapExecutor.js +0 -43
- package/dist/trinity/core/context/CjsShadowMapExecutor.js.map +0 -1
- package/dist/trinity/core/context/CjsVolumetricsExecutor.js +0 -64
- package/dist/trinity/core/context/CjsVolumetricsExecutor.js.map +0 -1
- package/dist/trinity/core/context/Tr2VisibilityResults.js +0 -109
- package/dist/trinity/core/context/Tr2VisibilityResults.js.map +0 -1
- package/dist/trinity/core/device/Tr2RingBuffer.js.map +0 -1
- package/dist/trinity/core/device/Tr2SuballocatedBuffer.js.map +0 -1
- package/dist/trinity/core/mesh/ITr2ImpostorSource.js.map +0 -1
- package/dist/trinity/core/mesh/ITr2InstanceData.js.map +0 -1
- package/dist/trinity/core/rawData/Tr2PerObjectData.js.map +0 -1
- package/dist/trinity/core/rawData/constantLayout.js +0 -175
- package/dist/trinity/core/rawData/constantLayout.js.map +0 -1
- package/dist/trinity/core/vertex/Tr2VertexDefinition.js.map +0 -1
- package/dist/trinity/eve/child/EveChildInstancedMeshes.js.map +0 -1
- package/dist/trinity/eve/child/EveChildPartData.js.map +0 -1
- package/dist/trinity/generated/trinityCore/Tr2Denoiser.js +0 -47
- package/dist/trinity/generated/trinityCore/Tr2Denoiser.js.map +0 -1
- package/dist/trinity/particle/ITr2GenericEmitter.js.map +0 -1
- package/dist/trinityal/Tr2DeviceResourceAL.js.map +0 -1
- package/dist/trinityal/Tr2HalHelperStructures.js.map +0 -1
- package/dist/trinityal/Tr2RenderPassAL.js.map +0 -1
- package/dist/trinityal/Tr2ResourceSetAL.js +0 -419
- package/dist/trinityal/Tr2ResourceSetAL.js.map +0 -1
- package/dist/trinityal/Tr2SamplerDescription.js +0 -72
- package/dist/trinityal/Tr2SamplerDescription.js.map +0 -1
- package/dist/trinityal/stub/Tr2QueryALStub.js +0 -326
- package/dist/trinityal/stub/Tr2QueryALStub.js.map +0 -1
- package/dist/trinityal/stub/Tr2RenderContextALStub.js.map +0 -1
- package/dist/trinityal/stub/Tr2VideoAdapterInfoALStub.js.map +0 -1
- package/dist/trinityal/webgpu/core/batchGroups.js.map +0 -1
- package/dist/trinityal/webgpu/core/constantArena.js.map +0 -1
- package/dist/trinityal/webgpu/core/perFrameSource.js.map +0 -1
- package/dist/trinityal/webgpu/core/pipelineCache.js.map +0 -1
- package/dist/trinityal/webgpu/core/psoDescription.js.map +0 -1
- package/dist/trinityal/webgpu/core/renderTarget.js.map +0 -1
- package/dist/trinityal/webgpu/core/samplerSource.js.map +0 -1
- package/dist/trinityal/webgpu/core/textureSource.js.map +0 -1
- package/dist/trinityal/webgpu/core/trinityBatchDispatcher.js.map +0 -1
- package/dist/trinityal/webgpu/core/trinityBatchResolver.js.map +0 -1
- package/dist/trinityal/webgpu/core/trinityPassEncoder.js.map +0 -1
- package/dist/trinityal/webgpu/core/workQueue.js.map +0 -1
|
@@ -0,0 +1,114 @@
|
|
|
1
|
+
// Source: trinity/trinity/Tr2RingBuffer.h
|
|
2
|
+
// Source: trinity/trinity/Tr2RingBuffer.cpp
|
|
3
|
+
//
|
|
4
|
+
// One shared arena that many objects upload per-frame rows into, and a small
|
|
5
|
+
// per-consumer cursor that remembers where this frame's rows and last frame's
|
|
6
|
+
// rows landed.
|
|
7
|
+
//
|
|
8
|
+
// WHY A RING AND NOT A BUFFER EACH. Every booster set, every morph target, every
|
|
9
|
+
// skinned thing wants a handful of rows on the GPU each frame. A buffer each
|
|
10
|
+
// means an allocation each; one ring means one allocation and an offset each.
|
|
11
|
+
// The offset is what a shader is handed.
|
|
12
|
+
//
|
|
13
|
+
// WHY TWO OBJECTS, which is the part worth reading twice. `Tr2RingBuffer` is the
|
|
14
|
+
// arena and there is one per DATA TYPE. `Tr2RingBufferOffsets` is the cursor and
|
|
15
|
+
// there is one per CONSUMER, held by value. The cursor keeps the PREVIOUS
|
|
16
|
+
// frame's offset as well as this frame's, which is what a pass reading last
|
|
17
|
+
// frame's transforms needs - motion vectors, trails, anything comparing two
|
|
18
|
+
// frames. Collapsing the two into "upload and get an offset back" works today
|
|
19
|
+
// and quietly loses that.
|
|
20
|
+
//
|
|
21
|
+
// THE FRAME FENCE IS THE WHOLE DESIGN. Rows uploaded for a frame cannot be
|
|
22
|
+
// overwritten until the GPU has finished that frame, so the ring records a
|
|
23
|
+
// locked region per upload and only moves its tail past regions whose frame the
|
|
24
|
+
// device reports complete. `SetFrameNumbers` is deliberately pessimistic - it
|
|
25
|
+
// clamps "completed" to two frames behind "recording" no matter what it is
|
|
26
|
+
// told.
|
|
27
|
+
//
|
|
28
|
+
// THREE DIFFERENCES FROM CARBON, EACH FORCED:
|
|
29
|
+
//
|
|
30
|
+
// - Carbon reaches a process-wide render context through a macro; we have none,
|
|
31
|
+
// so the context is supplied to `GetInstance` and kept. Same reason
|
|
32
|
+
// `TriDevice`'s capability methods are still unimplemented.
|
|
33
|
+
// - Carbon drives the fence from EveSpaceScene::Update, which reaches the
|
|
34
|
+
// process-wide render context (`EveSpaceScene.cpp:441-445`). We have no
|
|
35
|
+
// process-wide context, so nothing ticks a ring per frame yet and a caller
|
|
36
|
+
// must drive `SetFrameNumbers` itself. The seeding at creation IS Carbon's.
|
|
37
|
+
// - Carbon's `SetFrameNumbers` erases consumed locked regions only when it finds
|
|
38
|
+
// an incomplete one, so a ring whose regions all complete erases none and the
|
|
39
|
+
// list grows for the life of the process. That is survivable in a game
|
|
40
|
+
// session and is not in a browser tab, so the consumed prefix is erased in
|
|
41
|
+
// both cases. The tail it computes is identical either way.
|
|
42
|
+
|
|
43
|
+
/** Carbon's `Tr2RingBufferOffsets::INVALID_OFFSET`. */
|
|
44
|
+
const INVALID_OFFSET = 0xffffffff;
|
|
45
|
+
|
|
46
|
+
/**
|
|
47
|
+
* Where one consumer's rows landed, this frame and last.
|
|
48
|
+
*
|
|
49
|
+
* Held by value in Carbon, so each consumer owns one rather than sharing.
|
|
50
|
+
*/
|
|
51
|
+
class Tr2RingBufferOffsets {
|
|
52
|
+
/** Carbon's `INVALID_OFFSET`; the "nothing uploaded" state, and a no-draw. */
|
|
53
|
+
static INVALID_OFFSET = INVALID_OFFSET;
|
|
54
|
+
|
|
55
|
+
/** m_currentFrameOffset */
|
|
56
|
+
#currentFrameOffset = INVALID_OFFSET;
|
|
57
|
+
|
|
58
|
+
/** m_previousFrameOffset */
|
|
59
|
+
#previousFrameOffset = INVALID_OFFSET;
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Where this frame's rows start, in elements.
|
|
63
|
+
*
|
|
64
|
+
* @returns {number} The offset, or `INVALID_OFFSET` before an upload.
|
|
65
|
+
*/
|
|
66
|
+
GetCurrentFrameOffset() {
|
|
67
|
+
return this.#currentFrameOffset;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Where last frame's rows start, in elements.
|
|
72
|
+
*
|
|
73
|
+
* @returns {number} The offset, or `INVALID_OFFSET` before a second frame.
|
|
74
|
+
*/
|
|
75
|
+
GetPreviousFrameOffset() {
|
|
76
|
+
return this.#previousFrameOffset;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
/**
|
|
80
|
+
* Uploads this consumer's rows, ONCE per frame.
|
|
81
|
+
*
|
|
82
|
+
* The early return is the interesting line: a second upload in the same frame
|
|
83
|
+
* is ignored rather than appended, so an object updated twice does not eat
|
|
84
|
+
* the ring twice. `AdvanceFrame` is what re-arms it.
|
|
85
|
+
*
|
|
86
|
+
* @param {Tr2RingBuffer} buffer The arena for this data type.
|
|
87
|
+
* @param {ArrayBufferView} transforms The packed rows.
|
|
88
|
+
* @param {number} count How many rows.
|
|
89
|
+
* @returns {void}
|
|
90
|
+
*/
|
|
91
|
+
UploadTransforms(buffer, transforms, count) {
|
|
92
|
+
if (this.#currentFrameOffset !== INVALID_OFFSET) return;
|
|
93
|
+
this.#currentFrameOffset = buffer.UploadTransforms(transforms, count);
|
|
94
|
+
|
|
95
|
+
// First frame: last frame's rows are this frame's, so a shader reading the
|
|
96
|
+
// previous offset reads something valid rather than nothing.
|
|
97
|
+
if (this.#previousFrameOffset === INVALID_OFFSET) {
|
|
98
|
+
this.#previousFrameOffset = this.#currentFrameOffset;
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
/**
|
|
103
|
+
* Rolls this frame's offset into last frame's and re-arms the upload.
|
|
104
|
+
*
|
|
105
|
+
* @returns {void}
|
|
106
|
+
*/
|
|
107
|
+
AdvanceFrame() {
|
|
108
|
+
this.#previousFrameOffset = this.#currentFrameOffset;
|
|
109
|
+
this.#currentFrameOffset = INVALID_OFFSET;
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
|
|
113
|
+
export { Tr2RingBufferOffsets };
|
|
114
|
+
//# sourceMappingURL=Tr2RingBufferOffsets.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tr2RingBufferOffsets.js","sources":["../../../../../../src/trinity/core/device/Tr2RingBuffer/Tr2RingBufferOffsets.js"],"sourcesContent":["// Source: trinity/trinity/Tr2RingBuffer.h\n// Source: trinity/trinity/Tr2RingBuffer.cpp\n//\n// One shared arena that many objects upload per-frame rows into, and a small\n// per-consumer cursor that remembers where this frame's rows and last frame's\n// rows landed.\n//\n// WHY A RING AND NOT A BUFFER EACH. Every booster set, every morph target, every\n// skinned thing wants a handful of rows on the GPU each frame. A buffer each\n// means an allocation each; one ring means one allocation and an offset each.\n// The offset is what a shader is handed.\n//\n// WHY TWO OBJECTS, which is the part worth reading twice. `Tr2RingBuffer` is the\n// arena and there is one per DATA TYPE. `Tr2RingBufferOffsets` is the cursor and\n// there is one per CONSUMER, held by value. The cursor keeps the PREVIOUS\n// frame's offset as well as this frame's, which is what a pass reading last\n// frame's transforms needs - motion vectors, trails, anything comparing two\n// frames. Collapsing the two into \"upload and get an offset back\" works today\n// and quietly loses that.\n//\n// THE FRAME FENCE IS THE WHOLE DESIGN. Rows uploaded for a frame cannot be\n// overwritten until the GPU has finished that frame, so the ring records a\n// locked region per upload and only moves its tail past regions whose frame the\n// device reports complete. `SetFrameNumbers` is deliberately pessimistic - it\n// clamps \"completed\" to two frames behind \"recording\" no matter what it is\n// told.\n//\n// THREE DIFFERENCES FROM CARBON, EACH FORCED:\n//\n// - Carbon reaches a process-wide render context through a macro; we have none,\n// so the context is supplied to `GetInstance` and kept. Same reason\n// `TriDevice`'s capability methods are still unimplemented.\n// - Carbon drives the fence from EveSpaceScene::Update, which reaches the\n// process-wide render context (`EveSpaceScene.cpp:441-445`). We have no\n// process-wide context, so nothing ticks a ring per frame yet and a caller\n// must drive `SetFrameNumbers` itself. The seeding at creation IS Carbon's.\n// - Carbon's `SetFrameNumbers` erases consumed locked regions only when it finds\n// an incomplete one, so a ring whose regions all complete erases none and the\n// list grows for the life of the process. That is survivable in a game\n// session and is not in a browser tab, so the consumed prefix is erased in\n// both cases. The tail it computes is identical either way.\n\n/** Carbon's `Tr2RingBufferOffsets::INVALID_OFFSET`. */\nconst INVALID_OFFSET = 0xffffffff;\n\n/**\n * Where one consumer's rows landed, this frame and last.\n *\n * Held by value in Carbon, so each consumer owns one rather than sharing.\n */\nexport class Tr2RingBufferOffsets\n{\n /** Carbon's `INVALID_OFFSET`; the \"nothing uploaded\" state, and a no-draw. */\n static INVALID_OFFSET = INVALID_OFFSET;\n\n /** m_currentFrameOffset */\n #currentFrameOffset = INVALID_OFFSET;\n\n /** m_previousFrameOffset */\n #previousFrameOffset = INVALID_OFFSET;\n\n /**\n * Where this frame's rows start, in elements.\n *\n * @returns {number} The offset, or `INVALID_OFFSET` before an upload.\n */\n GetCurrentFrameOffset()\n {\n return this.#currentFrameOffset;\n }\n\n /**\n * Where last frame's rows start, in elements.\n *\n * @returns {number} The offset, or `INVALID_OFFSET` before a second frame.\n */\n GetPreviousFrameOffset()\n {\n return this.#previousFrameOffset;\n }\n\n /**\n * Uploads this consumer's rows, ONCE per frame.\n *\n * The early return is the interesting line: a second upload in the same frame\n * is ignored rather than appended, so an object updated twice does not eat\n * the ring twice. `AdvanceFrame` is what re-arms it.\n *\n * @param {Tr2RingBuffer} buffer The arena for this data type.\n * @param {ArrayBufferView} transforms The packed rows.\n * @param {number} count How many rows.\n * @returns {void}\n */\n UploadTransforms(buffer, transforms, count)\n {\n if (this.#currentFrameOffset !== INVALID_OFFSET) return;\n\n this.#currentFrameOffset = buffer.UploadTransforms(transforms, count);\n\n // First frame: last frame's rows are this frame's, so a shader reading the\n // previous offset reads something valid rather than nothing.\n if (this.#previousFrameOffset === INVALID_OFFSET)\n {\n this.#previousFrameOffset = this.#currentFrameOffset;\n }\n }\n\n /**\n * Rolls this frame's offset into last frame's and re-arms the upload.\n *\n * @returns {void}\n */\n AdvanceFrame()\n {\n this.#previousFrameOffset = this.#currentFrameOffset;\n this.#currentFrameOffset = INVALID_OFFSET;\n }\n}\n"],"names":["INVALID_OFFSET","Tr2RingBufferOffsets","GetCurrentFrameOffset","GetPreviousFrameOffset","UploadTransforms","buffer","transforms","count","AdvanceFrame"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAEA;AACA,MAAMA,cAAc,GAAG,UAAU;;AAEjC;AACA;AACA;AACA;AACA;AACO,MAAMC,oBAAoB,CACjC;AACE;EACA,OAAOD,cAAc,GAAGA,cAAc;;AAEtC;EACA,mBAAmB,GAAGA,cAAc;;AAEpC;EACA,oBAAoB,GAAGA,cAAc;;AAErC;AACF;AACA;AACA;AACA;AACEE,EAAAA,qBAAqBA,GACrB;IACE,OAAO,IAAI,CAAC,mBAAmB;AACjC,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACEC,EAAAA,sBAAsBA,GACtB;IACE,OAAO,IAAI,CAAC,oBAAoB;AAClC,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,gBAAgBA,CAACC,MAAM,EAAEC,UAAU,EAAEC,KAAK,EAC1C;AACE,IAAA,IAAI,IAAI,CAAC,mBAAmB,KAAKP,cAAc,EAAE;IAEjD,IAAI,CAAC,mBAAmB,GAAGK,MAAM,CAACD,gBAAgB,CAACE,UAAU,EAAEC,KAAK,CAAC;;AAErE;AACA;AACA,IAAA,IAAI,IAAI,CAAC,oBAAoB,KAAKP,cAAc,EAChD;AACE,MAAA,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,mBAAmB;AACtD,IAAA;AACF,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACEQ,EAAAA,YAAYA,GACZ;AACE,IAAA,IAAI,CAAC,oBAAoB,GAAG,IAAI,CAAC,mBAAmB;AACpD,IAAA,IAAI,CAAC,mBAAmB,GAAGR,cAAc;AAC3C,EAAA;AACF;;;;"}
|
|
@@ -1,6 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Tr2SuballocatedBufferAllocation } from './Tr2SuballocatedBufferAllocation.js';
|
|
2
|
+
import '../../../../trinityal/stub/Tr2BufferALStub.js';
|
|
2
3
|
import { Tr2CpuUsage } from '#consts/render-context';
|
|
3
|
-
import { Failed } from '
|
|
4
|
+
import { Failed } from '../../../../trinityal/ALResult.js';
|
|
5
|
+
import { Tr2BufferDescriptionAL } from '../../../../trinityal/Tr2BufferAL/Tr2BufferDescriptionAL.js';
|
|
4
6
|
|
|
5
7
|
// Source: trinity/trinity/Tr2SuballocatedBuffer.h
|
|
6
8
|
// trinity/trinity/Tr2SuballocatedBuffer.cpp
|
|
@@ -29,62 +31,6 @@ const SHARED_BUFFER_BLOCK_SIZE = 32 * 1024 * 1024;
|
|
|
29
31
|
/** `SHARED_BUFFER_MAX_SIZE` (`TriGeometryRes.h:16`). */
|
|
30
32
|
const SHARED_BUFFER_MAX_SIZE = 2048 * 1024 * 1024;
|
|
31
33
|
|
|
32
|
-
/**
|
|
33
|
-
* Carbon's `Tr2SuballocatedBuffer::Allocation`: where in which buffer, at
|
|
34
|
-
* what stride.
|
|
35
|
-
*/
|
|
36
|
-
class Tr2SuballocatedBufferAllocation {
|
|
37
|
-
/** The block's `Tr2BufferAL`. */
|
|
38
|
-
m_buffer = null;
|
|
39
|
-
m_offset = 0;
|
|
40
|
-
m_size = 0;
|
|
41
|
-
m_stride = 0;
|
|
42
|
-
m_parent = null;
|
|
43
|
-
|
|
44
|
-
/** The block's `Tr2BufferAL`. */
|
|
45
|
-
GetBuffer() {
|
|
46
|
-
return this.m_buffer;
|
|
47
|
-
}
|
|
48
|
-
|
|
49
|
-
/** The allocation's first byte within that block. */
|
|
50
|
-
GetOffset() {
|
|
51
|
-
return this.m_offset;
|
|
52
|
-
}
|
|
53
|
-
|
|
54
|
-
/** The allocation's size in bytes. */
|
|
55
|
-
GetSize() {
|
|
56
|
-
return this.m_size;
|
|
57
|
-
}
|
|
58
|
-
|
|
59
|
-
/** Bytes per element, which `GetStartIndex` divides by. */
|
|
60
|
-
GetStride() {
|
|
61
|
-
return this.m_stride;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/** `m_offset / m_stride`: the first element, which the draw arguments add. */
|
|
65
|
-
GetStartIndex() {
|
|
66
|
-
return this.m_stride ? Math.floor(this.m_offset / this.m_stride) : 0;
|
|
67
|
-
}
|
|
68
|
-
|
|
69
|
-
/** Whether the allocation names a block and has any size. */
|
|
70
|
-
IsValid() {
|
|
71
|
-
return this.m_buffer !== null && this.m_size > 0;
|
|
72
|
-
}
|
|
73
|
-
|
|
74
|
-
/**
|
|
75
|
-
* Rewrites the allocation, whole or in part.
|
|
76
|
-
*
|
|
77
|
-
* @param {ArrayBufferView} data The bytes.
|
|
78
|
-
* @param {object} renderContext The context to update through.
|
|
79
|
-
* @param {number} [offset] Byte offset within the allocation.
|
|
80
|
-
* @param {number} [size] Bytes to write.
|
|
81
|
-
* @returns {number} An `ALResult` value.
|
|
82
|
-
*/
|
|
83
|
-
Update(data, renderContext, offset = 0, size = data.byteLength) {
|
|
84
|
-
return this.m_buffer.UpdateBuffer(this.m_offset + offset, size, data, renderContext);
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
|
-
|
|
88
34
|
/**
|
|
89
35
|
* Carbon's `Tr2SuballocatedBuffer`: one growable pool of device buffer blocks
|
|
90
36
|
* that hands out `Tr2SuballocatedBufferAllocation` slices.
|
|
@@ -196,5 +142,5 @@ function Lcm(a, b) {
|
|
|
196
142
|
return a * b / Gcd(a, b);
|
|
197
143
|
}
|
|
198
144
|
|
|
199
|
-
export { SHARED_BUFFER_BLOCK_SIZE, SHARED_BUFFER_MAX_SIZE, Tr2SuballocatedBuffer
|
|
145
|
+
export { SHARED_BUFFER_BLOCK_SIZE, SHARED_BUFFER_MAX_SIZE, Tr2SuballocatedBuffer };
|
|
200
146
|
//# sourceMappingURL=Tr2SuballocatedBuffer.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tr2SuballocatedBuffer.js","sources":["../../../../../../src/trinity/core/device/Tr2SuballocatedBuffer/Tr2SuballocatedBuffer.js"],"sourcesContent":["// Source: trinity/trinity/Tr2SuballocatedBuffer.h\n// trinity/trinity/Tr2SuballocatedBuffer.cpp\n//\n// Carbon's suballocated device buffer: one big `Tr2BufferAL` that many\n// allocations share, so that a mesh's vertices are `(buffer, offset, stride)`\n// rather than a buffer of their own. `TriGeometryRes` keeps ONE of these for\n// the whole process (`TriGeometryRes.cpp:33-38`, 32 MiB blocks), and a render\n// batch carries the shared buffer plus a stride while the allocation's offset\n// rides `baseVertexLocation` / `startIndexLocation` (`Tr2MeshBase.cpp:372-392`).\n//\n// WHERE THIS DIFFERS. Carbon grows by `Expand()`: a bigger buffer, a GPU copy of\n// the old contents, one buffer still. WebGPU can copy buffer to buffer only\n// inside a command encoder, which a load-time allocation does not have, so this\n// grows by adding a BLOCK: a second `Tr2BufferAL` of the block size, and\n// allocations after it carry that block. A batch binds its allocation's own\n// buffer, so nothing above notices - except that two meshes in different\n// blocks cannot share one stream binding, which they could not anyway.\n//\n// Not ported: `Free` (Carbon's virtual allocator reclaims; ours is append-only\n// until the resource that owns the buffer releases it), `MapForReading`.\nimport { Tr2SuballocatedBufferAllocation } from \"./Tr2SuballocatedBufferAllocation.js\";\nimport { Tr2BufferDescriptionAL } from \"../../../../trinityal/stub/Tr2BufferALStub.js\";\nimport { Tr2CpuUsage } from \"#consts/render-context\";\nimport { Failed } from \"../../../../trinityal/ALResult.js\";\n\n\n/** `SHARED_BUFFER_BLOCK_SIZE` (`TriGeometryRes.h:15`). */\nexport const SHARED_BUFFER_BLOCK_SIZE = 32 * 1024 * 1024;\n\n/** `SHARED_BUFFER_MAX_SIZE` (`TriGeometryRes.h:16`). */\nexport const SHARED_BUFFER_MAX_SIZE = 2048 * 1024 * 1024;\n\n\n/**\n * Carbon's `Tr2SuballocatedBuffer`: one growable pool of device buffer blocks\n * that hands out `Tr2SuballocatedBufferAllocation` slices.\n */\nexport class Tr2SuballocatedBuffer\n{\n m_name = \"\";\n\n m_gpuUsage = 0;\n\n m_blockSize = SHARED_BUFFER_BLOCK_SIZE;\n\n m_maxSize = SHARED_BUFFER_MAX_SIZE;\n\n /** The blocks, each a `Tr2BufferAL` of `m_blockSize` bytes. */\n m_blocks = [];\n\n /** The next free byte in the last block. */\n m_offset = 0;\n\n m_allocations = [];\n\n /**\n * @param {string} name A debug name.\n * @param {number} gpuUsage `Tr2GpuUsage` flags for every block.\n * @param {number} [blockSize] Bytes per block.\n * @param {number} [maxSize] Bytes in total before allocation refuses.\n */\n constructor(name, gpuUsage, blockSize = SHARED_BUFFER_BLOCK_SIZE, maxSize = SHARED_BUFFER_MAX_SIZE)\n {\n this.m_name = String(name ?? \"\");\n this.m_gpuUsage = gpuUsage;\n this.m_blockSize = blockSize;\n this.m_maxSize = maxSize;\n }\n\n /**\n * Reserves `count` elements of `stride` bytes and uploads them.\n *\n * Carbon asserts `offset % stride == 0` (`Tr2SuballocatedBuffer.cpp:24-63`):\n * the offset is element-aligned so `GetStartIndex` is exact. Alignment here\n * is to the least common multiple of the stride and four, which keeps the\n * offset both element-aligned and a legal `writeBuffer` offset.\n *\n * @param {number} stride Bytes per element.\n * @param {number} count Elements.\n * @param {ArrayBufferView|null} data The bytes, or null to reserve only.\n * @param {object} renderContext The context to create and update through.\n * @returns {Tr2SuballocatedBufferAllocation|null} The allocation, or null when refused.\n */\n Allocate(stride, count, data, renderContext)\n {\n if (!Number.isInteger(stride) || stride <= 0 || !Number.isInteger(count) || count <= 0) return null;\n\n const size = stride * count;\n\n if (size > this.m_blockSize) return null;\n\n const alignment = Lcm(stride, 4);\n let offset = Math.ceil(this.m_offset / alignment) * alignment;\n\n if (this.m_blocks.length === 0 || offset + size > this.m_blockSize)\n {\n if ((this.m_blocks.length + 1) * this.m_blockSize > this.m_maxSize) return null;\n if (!this.#AddBlock(renderContext)) return null;\n\n offset = 0;\n }\n\n const allocation = new Tr2SuballocatedBufferAllocation();\n\n allocation.m_buffer = this.m_blocks[this.m_blocks.length - 1];\n allocation.m_offset = offset;\n allocation.m_size = size;\n allocation.m_stride = stride;\n allocation.m_parent = this;\n\n this.m_offset = offset + size;\n this.m_allocations.push(allocation);\n\n if (data && Failed(allocation.Update(data, renderContext)))\n {\n this.m_allocations.pop();\n\n return null;\n }\n\n return allocation;\n }\n\n /** Carbon's `OnPrepareResources`: the block is a stride-4 byte pool. */\n #AddBlock(renderContext)\n {\n const description = Tr2BufferDescriptionAL.FromStride(4, this.m_blockSize / 4, this.m_gpuUsage, Tr2CpuUsage.WRITE);\n const block = renderContext.CreateBuffer(description, null);\n\n if (!block) return false;\n\n block.SetName(`${this.m_name} block ${this.m_blocks.length}`);\n this.m_blocks.push(block);\n this.m_offset = 0;\n\n return true;\n }\n\n /** The most recent block, Carbon's one buffer. */\n GetBuffer()\n {\n return this.m_blocks[this.m_blocks.length - 1] ?? null;\n }\n\n /** Every block this buffer has made. */\n GetBlocks()\n {\n return this.m_blocks;\n }\n\n /** Releases every block and forgets every allocation. */\n ReleaseResources()\n {\n for (const block of this.m_blocks) block.Destroy();\n\n this.m_blocks = [];\n this.m_offset = 0;\n\n for (const allocation of this.m_allocations)\n {\n allocation.m_buffer = null;\n allocation.m_size = 0;\n }\n\n this.m_allocations = [];\n }\n}\n\n\nfunction Gcd(a, b)\n{\n while (b) [ a, b ] = [ b, a % b ];\n\n return a;\n}\n\nfunction Lcm(a, b)\n{\n return (a * b) / Gcd(a, b);\n}\n"],"names":["SHARED_BUFFER_BLOCK_SIZE","SHARED_BUFFER_MAX_SIZE","Tr2SuballocatedBuffer","m_name","m_gpuUsage","m_blockSize","m_maxSize","m_blocks","m_offset","m_allocations","constructor","name","gpuUsage","blockSize","maxSize","String","Allocate","stride","count","data","renderContext","Number","isInteger","size","alignment","Lcm","offset","Math","ceil","length","allocation","Tr2SuballocatedBufferAllocation","m_buffer","m_size","m_stride","m_parent","push","Failed","Update","pop","#AddBlock","description","Tr2BufferDescriptionAL","FromStride","Tr2CpuUsage","WRITE","block","CreateBuffer","SetName","GetBuffer","GetBlocks","ReleaseResources","Destroy","Gcd","a","b"],"mappings":";;;;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAOA;MACaA,wBAAwB,GAAG,EAAE,GAAG,IAAI,GAAG;;AAEpD;MACaC,sBAAsB,GAAG,IAAI,GAAG,IAAI,GAAG;;AAGpD;AACA;AACA;AACA;AACO,MAAMC,qBAAqB,CAClC;AACEC,EAAAA,MAAM,GAAG,EAAE;AAEXC,EAAAA,UAAU,GAAG,CAAC;AAEdC,EAAAA,WAAW,GAAGL,wBAAwB;AAEtCM,EAAAA,SAAS,GAAGL,sBAAsB;;AAElC;AACAM,EAAAA,QAAQ,GAAG,EAAE;;AAEb;AACAC,EAAAA,QAAQ,GAAG,CAAC;AAEZC,EAAAA,aAAa,GAAG,EAAE;;AAElB;AACF;AACA;AACA;AACA;AACA;AACEC,EAAAA,WAAWA,CAACC,IAAI,EAAEC,QAAQ,EAAEC,SAAS,GAAGb,wBAAwB,EAAEc,OAAO,GAAGb,sBAAsB,EAClG;IACE,IAAI,CAACE,MAAM,GAAGY,MAAM,CAACJ,IAAI,IAAI,EAAE,CAAC;IAChC,IAAI,CAACP,UAAU,GAAGQ,QAAQ;IAC1B,IAAI,CAACP,WAAW,GAAGQ,SAAS;IAC5B,IAAI,CAACP,SAAS,GAAGQ,OAAO;AAC1B,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEE,QAAQA,CAACC,MAAM,EAAEC,KAAK,EAAEC,IAAI,EAAEC,aAAa,EAC3C;IACE,IAAI,CAACC,MAAM,CAACC,SAAS,CAACL,MAAM,CAAC,IAAIA,MAAM,IAAI,CAAC,IAAI,CAACI,MAAM,CAACC,SAAS,CAACJ,KAAK,CAAC,IAAIA,KAAK,IAAI,CAAC,EAAE,OAAO,IAAI;AAEnG,IAAA,MAAMK,IAAI,GAAGN,MAAM,GAAGC,KAAK;AAE3B,IAAA,IAAIK,IAAI,GAAG,IAAI,CAAClB,WAAW,EAAE,OAAO,IAAI;AAExC,IAAA,MAAMmB,SAAS,GAAGC,GAAG,CAACR,MAAM,EAAE,CAAC,CAAC;AAChC,IAAA,IAAIS,MAAM,GAAGC,IAAI,CAACC,IAAI,CAAC,IAAI,CAACpB,QAAQ,GAAGgB,SAAS,CAAC,GAAGA,SAAS;AAE7D,IAAA,IAAI,IAAI,CAACjB,QAAQ,CAACsB,MAAM,KAAK,CAAC,IAAIH,MAAM,GAAGH,IAAI,GAAG,IAAI,CAAClB,WAAW,EAClE;AACE,MAAA,IAAI,CAAC,IAAI,CAACE,QAAQ,CAACsB,MAAM,GAAG,CAAC,IAAI,IAAI,CAACxB,WAAW,GAAG,IAAI,CAACC,SAAS,EAAE,OAAO,IAAI;MAC/E,IAAI,CAAC,IAAI,CAAC,SAAS,CAACc,aAAa,CAAC,EAAE,OAAO,IAAI;AAE/CM,MAAAA,MAAM,GAAG,CAAC;AACZ,IAAA;AAEA,IAAA,MAAMI,UAAU,GAAG,IAAIC,+BAA+B,EAAE;AAExDD,IAAAA,UAAU,CAACE,QAAQ,GAAG,IAAI,CAACzB,QAAQ,CAAC,IAAI,CAACA,QAAQ,CAACsB,MAAM,GAAG,CAAC,CAAC;IAC7DC,UAAU,CAACtB,QAAQ,GAAGkB,MAAM;IAC5BI,UAAU,CAACG,MAAM,GAAGV,IAAI;IACxBO,UAAU,CAACI,QAAQ,GAAGjB,MAAM;IAC5Ba,UAAU,CAACK,QAAQ,GAAG,IAAI;AAE1B,IAAA,IAAI,CAAC3B,QAAQ,GAAGkB,MAAM,GAAGH,IAAI;AAC7B,IAAA,IAAI,CAACd,aAAa,CAAC2B,IAAI,CAACN,UAAU,CAAC;AAEnC,IAAA,IAAIX,IAAI,IAAIkB,MAAM,CAACP,UAAU,CAACQ,MAAM,CAACnB,IAAI,EAAEC,aAAa,CAAC,CAAC,EAC1D;AACE,MAAA,IAAI,CAACX,aAAa,CAAC8B,GAAG,EAAE;AAExB,MAAA,OAAO,IAAI;AACb,IAAA;AAEA,IAAA,OAAOT,UAAU;AACnB,EAAA;;AAEA;EACA,SAASU,CAACpB,aAAa,EACvB;IACE,MAAMqB,WAAW,GAAGC,sBAAsB,CAACC,UAAU,CAAC,CAAC,EAAE,IAAI,CAACtC,WAAW,GAAG,CAAC,EAAE,IAAI,CAACD,UAAU,EAAEwC,WAAW,CAACC,KAAK,CAAC;IAClH,MAAMC,KAAK,GAAG1B,aAAa,CAAC2B,YAAY,CAACN,WAAW,EAAE,IAAI,CAAC;AAE3D,IAAA,IAAI,CAACK,KAAK,EAAE,OAAO,KAAK;AAExBA,IAAAA,KAAK,CAACE,OAAO,CAAC,CAAA,EAAG,IAAI,CAAC7C,MAAM,CAAA,OAAA,EAAU,IAAI,CAACI,QAAQ,CAACsB,MAAM,EAAE,CAAC;AAC7D,IAAA,IAAI,CAACtB,QAAQ,CAAC6B,IAAI,CAACU,KAAK,CAAC;IACzB,IAAI,CAACtC,QAAQ,GAAG,CAAC;AAEjB,IAAA,OAAO,IAAI;AACb,EAAA;;AAEA;AACAyC,EAAAA,SAASA,GACT;AACE,IAAA,OAAO,IAAI,CAAC1C,QAAQ,CAAC,IAAI,CAACA,QAAQ,CAACsB,MAAM,GAAG,CAAC,CAAC,IAAI,IAAI;AACxD,EAAA;;AAEA;AACAqB,EAAAA,SAASA,GACT;IACE,OAAO,IAAI,CAAC3C,QAAQ;AACtB,EAAA;;AAEA;AACA4C,EAAAA,gBAAgBA,GAChB;IACE,KAAK,MAAML,KAAK,IAAI,IAAI,CAACvC,QAAQ,EAAEuC,KAAK,CAACM,OAAO,EAAE;IAElD,IAAI,CAAC7C,QAAQ,GAAG,EAAE;IAClB,IAAI,CAACC,QAAQ,GAAG,CAAC;AAEjB,IAAA,KAAK,MAAMsB,UAAU,IAAI,IAAI,CAACrB,aAAa,EAC3C;MACEqB,UAAU,CAACE,QAAQ,GAAG,IAAI;MAC1BF,UAAU,CAACG,MAAM,GAAG,CAAC;AACvB,IAAA;IAEA,IAAI,CAACxB,aAAa,GAAG,EAAE;AACzB,EAAA;AACF;AAGA,SAAS4C,GAAGA,CAACC,CAAC,EAAEC,CAAC,EACjB;AACE,EAAA,OAAOA,CAAC,EAAE,CAAED,CAAC,EAAEC,CAAC,CAAE,GAAG,CAAEA,CAAC,EAAED,CAAC,GAAGC,CAAC,CAAE;AAEjC,EAAA,OAAOD,CAAC;AACV;AAEA,SAAS7B,GAAGA,CAAC6B,CAAC,EAAEC,CAAC,EACjB;EACE,OAAQD,CAAC,GAAGC,CAAC,GAAIF,GAAG,CAACC,CAAC,EAAEC,CAAC,CAAC;AAC5B;;;;"}
|
|
@@ -0,0 +1,80 @@
|
|
|
1
|
+
// Source: trinity/trinity/Tr2SuballocatedBuffer.h
|
|
2
|
+
// trinity/trinity/Tr2SuballocatedBuffer.cpp
|
|
3
|
+
//
|
|
4
|
+
// Carbon's suballocated device buffer: one big `Tr2BufferAL` that many
|
|
5
|
+
// allocations share, so that a mesh's vertices are `(buffer, offset, stride)`
|
|
6
|
+
// rather than a buffer of their own. `TriGeometryRes` keeps ONE of these for
|
|
7
|
+
// the whole process (`TriGeometryRes.cpp:33-38`, 32 MiB blocks), and a render
|
|
8
|
+
// batch carries the shared buffer plus a stride while the allocation's offset
|
|
9
|
+
// rides `baseVertexLocation` / `startIndexLocation` (`Tr2MeshBase.cpp:372-392`).
|
|
10
|
+
//
|
|
11
|
+
// WHERE THIS DIFFERS. Carbon grows by `Expand()`: a bigger buffer, a GPU copy of
|
|
12
|
+
// the old contents, one buffer still. WebGPU can copy buffer to buffer only
|
|
13
|
+
// inside a command encoder, which a load-time allocation does not have, so this
|
|
14
|
+
// grows by adding a BLOCK: a second `Tr2BufferAL` of the block size, and
|
|
15
|
+
// allocations after it carry that block. A batch binds its allocation's own
|
|
16
|
+
// buffer, so nothing above notices - except that two meshes in different
|
|
17
|
+
// blocks cannot share one stream binding, which they could not anyway.
|
|
18
|
+
//
|
|
19
|
+
// Not ported: `Free` (Carbon's virtual allocator reclaims; ours is append-only
|
|
20
|
+
// until the resource that owns the buffer releases it), `MapForReading`.
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
/**
|
|
24
|
+
* Carbon's `Tr2SuballocatedBuffer::Allocation`: where in which buffer, at
|
|
25
|
+
* what stride.
|
|
26
|
+
*/
|
|
27
|
+
class Tr2SuballocatedBufferAllocation {
|
|
28
|
+
/** The block's `Tr2BufferAL`. */
|
|
29
|
+
m_buffer = null;
|
|
30
|
+
m_offset = 0;
|
|
31
|
+
m_size = 0;
|
|
32
|
+
m_stride = 0;
|
|
33
|
+
m_parent = null;
|
|
34
|
+
|
|
35
|
+
/** The block's `Tr2BufferAL`. */
|
|
36
|
+
GetBuffer() {
|
|
37
|
+
return this.m_buffer;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/** The allocation's first byte within that block. */
|
|
41
|
+
GetOffset() {
|
|
42
|
+
return this.m_offset;
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
/** The allocation's size in bytes. */
|
|
46
|
+
GetSize() {
|
|
47
|
+
return this.m_size;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/** Bytes per element, which `GetStartIndex` divides by. */
|
|
51
|
+
GetStride() {
|
|
52
|
+
return this.m_stride;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/** `m_offset / m_stride`: the first element, which the draw arguments add. */
|
|
56
|
+
GetStartIndex() {
|
|
57
|
+
return this.m_stride ? Math.floor(this.m_offset / this.m_stride) : 0;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
/** Whether the allocation names a block and has any size. */
|
|
61
|
+
IsValid() {
|
|
62
|
+
return this.m_buffer !== null && this.m_size > 0;
|
|
63
|
+
}
|
|
64
|
+
|
|
65
|
+
/**
|
|
66
|
+
* Rewrites the allocation, whole or in part.
|
|
67
|
+
*
|
|
68
|
+
* @param {ArrayBufferView} data The bytes.
|
|
69
|
+
* @param {object} renderContext The context to update through.
|
|
70
|
+
* @param {number} [offset] Byte offset within the allocation.
|
|
71
|
+
* @param {number} [size] Bytes to write.
|
|
72
|
+
* @returns {number} An `ALResult` value.
|
|
73
|
+
*/
|
|
74
|
+
Update(data, renderContext, offset = 0, size = data.byteLength) {
|
|
75
|
+
return this.m_buffer.UpdateBuffer(this.m_offset + offset, size, data, renderContext);
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
export { Tr2SuballocatedBufferAllocation };
|
|
80
|
+
//# sourceMappingURL=Tr2SuballocatedBufferAllocation.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Tr2SuballocatedBufferAllocation.js","sources":["../../../../../../src/trinity/core/device/Tr2SuballocatedBuffer/Tr2SuballocatedBufferAllocation.js"],"sourcesContent":["// Source: trinity/trinity/Tr2SuballocatedBuffer.h\n// trinity/trinity/Tr2SuballocatedBuffer.cpp\n//\n// Carbon's suballocated device buffer: one big `Tr2BufferAL` that many\n// allocations share, so that a mesh's vertices are `(buffer, offset, stride)`\n// rather than a buffer of their own. `TriGeometryRes` keeps ONE of these for\n// the whole process (`TriGeometryRes.cpp:33-38`, 32 MiB blocks), and a render\n// batch carries the shared buffer plus a stride while the allocation's offset\n// rides `baseVertexLocation` / `startIndexLocation` (`Tr2MeshBase.cpp:372-392`).\n//\n// WHERE THIS DIFFERS. Carbon grows by `Expand()`: a bigger buffer, a GPU copy of\n// the old contents, one buffer still. WebGPU can copy buffer to buffer only\n// inside a command encoder, which a load-time allocation does not have, so this\n// grows by adding a BLOCK: a second `Tr2BufferAL` of the block size, and\n// allocations after it carry that block. A batch binds its allocation's own\n// buffer, so nothing above notices - except that two meshes in different\n// blocks cannot share one stream binding, which they could not anyway.\n//\n// Not ported: `Free` (Carbon's virtual allocator reclaims; ours is append-only\n// until the resource that owns the buffer releases it), `MapForReading`.\n\n\n/** `SHARED_BUFFER_BLOCK_SIZE` (`TriGeometryRes.h:15`). */\nexport const SHARED_BUFFER_BLOCK_SIZE = 32 * 1024 * 1024;\n\n/** `SHARED_BUFFER_MAX_SIZE` (`TriGeometryRes.h:16`). */\nexport const SHARED_BUFFER_MAX_SIZE = 2048 * 1024 * 1024;\n\n\n/**\n * Carbon's `Tr2SuballocatedBuffer::Allocation`: where in which buffer, at\n * what stride.\n */\nexport class Tr2SuballocatedBufferAllocation\n{\n /** The block's `Tr2BufferAL`. */\n m_buffer = null;\n\n m_offset = 0;\n\n m_size = 0;\n\n m_stride = 0;\n\n m_parent = null;\n\n /** The block's `Tr2BufferAL`. */\n GetBuffer()\n {\n return this.m_buffer;\n }\n\n /** The allocation's first byte within that block. */\n GetOffset()\n {\n return this.m_offset;\n }\n\n /** The allocation's size in bytes. */\n GetSize()\n {\n return this.m_size;\n }\n\n /** Bytes per element, which `GetStartIndex` divides by. */\n GetStride()\n {\n return this.m_stride;\n }\n\n /** `m_offset / m_stride`: the first element, which the draw arguments add. */\n GetStartIndex()\n {\n return this.m_stride ? Math.floor(this.m_offset / this.m_stride) : 0;\n }\n\n /** Whether the allocation names a block and has any size. */\n IsValid()\n {\n return this.m_buffer !== null && this.m_size > 0;\n }\n\n /**\n * Rewrites the allocation, whole or in part.\n *\n * @param {ArrayBufferView} data The bytes.\n * @param {object} renderContext The context to update through.\n * @param {number} [offset] Byte offset within the allocation.\n * @param {number} [size] Bytes to write.\n * @returns {number} An `ALResult` value.\n */\n Update(data, renderContext, offset = 0, size = data.byteLength)\n {\n return this.m_buffer.UpdateBuffer(this.m_offset + offset, size, data, renderContext);\n }\n}\n"],"names":["Tr2SuballocatedBufferAllocation","m_buffer","m_offset","m_size","m_stride","m_parent","GetBuffer","GetOffset","GetSize","GetStride","GetStartIndex","Math","floor","IsValid","Update","data","renderContext","offset","size","byteLength","UpdateBuffer"],"mappings":"AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;;AAUA;AACA;AACA;AACA;AACO,MAAMA,+BAA+B,CAC5C;AACE;AACAC,EAAAA,QAAQ,GAAG,IAAI;AAEfC,EAAAA,QAAQ,GAAG,CAAC;AAEZC,EAAAA,MAAM,GAAG,CAAC;AAEVC,EAAAA,QAAQ,GAAG,CAAC;AAEZC,EAAAA,QAAQ,GAAG,IAAI;;AAEf;AACAC,EAAAA,SAASA,GACT;IACE,OAAO,IAAI,CAACL,QAAQ;AACtB,EAAA;;AAEA;AACAM,EAAAA,SAASA,GACT;IACE,OAAO,IAAI,CAACL,QAAQ;AACtB,EAAA;;AAEA;AACAM,EAAAA,OAAOA,GACP;IACE,OAAO,IAAI,CAACL,MAAM;AACpB,EAAA;;AAEA;AACAM,EAAAA,SAASA,GACT;IACE,OAAO,IAAI,CAACL,QAAQ;AACtB,EAAA;;AAEA;AACAM,EAAAA,aAAaA,GACb;AACE,IAAA,OAAO,IAAI,CAACN,QAAQ,GAAGO,IAAI,CAACC,KAAK,CAAC,IAAI,CAACV,QAAQ,GAAG,IAAI,CAACE,QAAQ,CAAC,GAAG,CAAC;AACtE,EAAA;;AAEA;AACAS,EAAAA,OAAOA,GACP;IACE,OAAO,IAAI,CAACZ,QAAQ,KAAK,IAAI,IAAI,IAAI,CAACE,MAAM,GAAG,CAAC;AAClD,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEW,EAAAA,MAAMA,CAACC,IAAI,EAAEC,aAAa,EAAEC,MAAM,GAAG,CAAC,EAAEC,IAAI,GAAGH,IAAI,CAACI,UAAU,EAC9D;AACE,IAAA,OAAO,IAAI,CAAClB,QAAQ,CAACmB,YAAY,CAAC,IAAI,CAAClB,QAAQ,GAAGe,MAAM,EAAEC,IAAI,EAAEH,IAAI,EAAEC,aAAa,CAAC;AACtF,EAAA;AACF;;;;"}
|
|
@@ -1,9 +1,12 @@
|
|
|
1
1
|
export { Tr2MaterialParameterStore } from './Tr2MaterialParameterStore.js';
|
|
2
2
|
export { ITr2Renderable, withITr2Renderable } from './ITr2Renderable.js';
|
|
3
3
|
export { ITr2Updateable, withITr2Updateable } from './ITr2Updateable.js';
|
|
4
|
-
export {
|
|
4
|
+
export { Tr2QuadRendererEffectRecord } from './Tr2QuadRenderer/Tr2QuadRendererEffectRecord.js';
|
|
5
|
+
export { Tr2QuadRenderer } from './Tr2QuadRenderer/Tr2QuadRenderer.js';
|
|
5
6
|
export { Tr2Transform } from './Tr2Transform.js';
|
|
6
|
-
export {
|
|
7
|
+
export { TextureSize2D } from './Tr2GpuResourcePool/TextureSize2D.js';
|
|
8
|
+
export { GetGlobalGpuResourcePool, Tr2GpuResourcePool } from './Tr2GpuResourcePool/Tr2GpuResourcePool.js';
|
|
9
|
+
export { GpuResourceHandle } from './Tr2GpuResourcePool/GpuResourceHandle.js';
|
|
7
10
|
export { Tr2ShadowMap } from './Tr2ShadowMap.js';
|
|
8
11
|
export { AccumulatePriorityAttribute } from './PriorityBlend.js';
|
|
9
12
|
export { TriSettings } from './TriSettings.js';
|
|
@@ -16,9 +19,13 @@ export { TriTorque } from './animation/TriTorque.js';
|
|
|
16
19
|
export { CjsBatchManager } from './batch/CjsBatchManager.js';
|
|
17
20
|
export { CjsTrinityBatchDispatcher } from './batch/CjsTrinityBatchDispatcher.js';
|
|
18
21
|
export { CjsTrinityBatchResolver } from './batch/CjsTrinityBatchResolver.js';
|
|
19
|
-
export {
|
|
20
|
-
export {
|
|
21
|
-
export {
|
|
22
|
+
export { TriRenderBatchAreaBlock } from './batch/TriRenderBatch/TriRenderBatchAreaBlock.js';
|
|
23
|
+
export { TriRenderBatchAreaBlocksWithSharedMaterial } from './batch/TriRenderBatch/TriRenderBatchAreaBlocksWithSharedMaterial.js';
|
|
24
|
+
export { CanBeBinned, CompareBatches, OrderOf, Tr2GdprBatchFullPartition, Tr2GdprBatchStableFullPartition, Tr2RenderBatch } from './batch/TriRenderBatch/Tr2RenderBatch.js';
|
|
25
|
+
export { DefaultKeyGenerator } from './batch/TriRenderBatch/DefaultKeyGenerator.js';
|
|
26
|
+
export { EffectKeyGenerator } from './batch/TriRenderBatch/EffectKeyGenerator.js';
|
|
27
|
+
export { ITriRenderBatchAccumulator } from './batch/TriRenderBatch/ITriRenderBatchAccumulator.js';
|
|
28
|
+
export { TriRenderBatchAccumulator } from './batch/TriRenderBatch/TriRenderBatchAccumulator.js';
|
|
22
29
|
export { TriRenderBatchMap } from './batch/TriRenderBatchMap.js';
|
|
23
30
|
export { Tr2BindingVector3 } from './binding/Tr2BindingVector3.js';
|
|
24
31
|
export { Tr2DynamicBinding } from './binding/Tr2DynamicBinding.js';
|
|
@@ -28,21 +35,23 @@ export { TriValueBinding } from './binding/TriValueBinding.js';
|
|
|
28
35
|
export { EFFECT_CONSTANTS, PER_FRAME_PS, PER_FRAME_VS, PER_OBJECT_PS, PER_OBJECT_VS, Tr2Renderer } from './Tr2Renderer.js';
|
|
29
36
|
export { AdjustTextureCoordsToViewport, FillAndSetConstants, SCREEN_QUAD_FLOATS, SCREEN_VERTEX_BYTES, SCREEN_VERTEX_FLOATS, SetConstants, SetupScreenQuad, SetupScreenQuadInCameraSpace } from './Tr2RenderUtils.js';
|
|
30
37
|
export { BLIT_EFFECT_PATH, BLIT_FILTERED_EFFECT_PATH, Filtering, Tr2Blitter } from './Tr2Blitter.js';
|
|
38
|
+
export { Tr2Denoiser } from './Tr2Denoiser.js';
|
|
31
39
|
export { Tr2RenderContext } from './context/Tr2RenderContext.js';
|
|
32
40
|
export { Tr2PrimaryRenderContext } from './context/Tr2PrimaryRenderContext.js';
|
|
33
|
-
export {
|
|
41
|
+
export { Tr2VisibilityResults } from './context/Tr2VisibilityResults/Tr2VisibilityResults.js';
|
|
42
|
+
export { Tr2VisibilityEvent } from './context/Tr2VisibilityResults/Tr2VisibilityEvent.js';
|
|
34
43
|
export { CjsDirectTrinityStepExecutor } from './context/CjsDirectTrinityStepExecutor.js';
|
|
35
|
-
export { CjsShadowMapExecutor } from './context/CjsShadowMapExecutor.js';
|
|
36
44
|
export { CjsTrinityStepExecutor } from './context/CjsTrinityStepExecutor.js';
|
|
37
|
-
export {
|
|
38
|
-
export {
|
|
45
|
+
export { Tr2BindlessResourcesAL } from '../../trinityal/stub/Tr2RenderContextALStub/Tr2BindlessResourcesAL.js';
|
|
46
|
+
export { Tr2RenderContextALStub } from '../../trinityal/stub/Tr2RenderContextALStub/Tr2RenderContextALStub.js';
|
|
39
47
|
export { TriDevice } from './device/TriDevice.js';
|
|
40
48
|
export { Tr2UpscalingTechniqueInfo } from './device/Tr2UpscalingTechniqueInfo.js';
|
|
41
49
|
export { Tr2SwapChain } from './device/Tr2SwapChain.js';
|
|
42
50
|
export { Tr2DepthStencil } from './device/Tr2DepthStencil.js';
|
|
43
51
|
export { Tr2RenderTarget } from './device/Tr2RenderTarget.js';
|
|
44
52
|
export { Tr2GpuBuffer } from './device/Tr2GpuBuffer.js';
|
|
45
|
-
export {
|
|
53
|
+
export { Tr2RingBufferOffsets } from './device/Tr2RingBuffer/Tr2RingBufferOffsets.js';
|
|
54
|
+
export { Tr2RingBuffer } from './device/Tr2RingBuffer/Tr2RingBuffer.js';
|
|
46
55
|
export { Tr2RuntimeGpuBuffer } from './device/Tr2RuntimeGpuBuffer.js';
|
|
47
56
|
export { Tr2LightManager } from './lighting/Tr2LightManager.js';
|
|
48
57
|
export { Tr2ShLightingManager } from './lighting/Tr2ShLightingManager.js';
|
|
@@ -62,11 +71,27 @@ export { Tr2InstancedMesh } from './mesh/Tr2InstancedMesh.js';
|
|
|
62
71
|
export { Tr2SerializedMorphAnimation } from './mesh/Tr2SerializedMorphAnimation.js';
|
|
63
72
|
export { Tr2DirectInstanceData } from './mesh/Tr2DirectInstanceData.js';
|
|
64
73
|
export { Tr2RuntimeInstanceData } from './mesh/Tr2RuntimeInstanceData.js';
|
|
65
|
-
export {
|
|
66
|
-
export {
|
|
74
|
+
export { ITr2InstanceDataInstanceData } from './mesh/ITr2InstanceData/ITr2InstanceDataInstanceData.js';
|
|
75
|
+
export { ITr2InstanceData, withITr2InstanceData } from './mesh/ITr2InstanceData/ITr2InstanceData.js';
|
|
76
|
+
export { ITr2ImpostorSourceImpostorHash } from './mesh/ITr2ImpostorSource/ITr2ImpostorSourceImpostorHash.js';
|
|
77
|
+
export { ITr2ImpostorSource, withITr2ImpostorSource } from './mesh/ITr2ImpostorSource/ITr2ImpostorSource.js';
|
|
67
78
|
export { RawData, RawDataEncoders, RawDataType } from './rawData/RawData.js';
|
|
68
79
|
export { TriPoolAllocator } from './rawData/TriPoolAllocator.js';
|
|
69
|
-
export { Tr2PerObjectData } from './rawData/Tr2PerObjectData.js';
|
|
80
|
+
export { Tr2PerObjectData } from './rawData/perObjectData/Tr2PerObjectData.js';
|
|
81
|
+
export { Tr2PerObjectDataPSBuffer } from './rawData/perObjectData/Tr2PerObjectDataPSBuffer.js';
|
|
82
|
+
export { Tr2PerObjectDataStandard } from './rawData/perObjectData/Tr2PerObjectDataStandard.js';
|
|
83
|
+
export { EveBasicPerObjectData } from './rawData/perObjectData/EveBasicPerObjectData.js';
|
|
84
|
+
export { EveBoosterSetPerObjectData } from './rawData/perObjectData/EveBoosterSetPerObjectData.js';
|
|
85
|
+
export { EveChildBoosterSetPerObjectData } from './rawData/perObjectData/EveChildBoosterSetPerObjectData.js';
|
|
86
|
+
export { EveChildBulletStormPerObjectData } from './rawData/perObjectData/EveChildBulletStormPerObjectData.js';
|
|
87
|
+
export { EveChildSpherePinPerObjectData } from './rawData/perObjectData/EveChildSpherePinPerObjectData.js';
|
|
88
|
+
export { EveDecalPerObjectData } from './rawData/perObjectData/EveDecalPerObjectData.js';
|
|
89
|
+
export { EveLensflarePerObjectData } from './rawData/perObjectData/EveLensflarePerObjectData.js';
|
|
90
|
+
export { EveMissileWarheadPerObjectData } from './rawData/perObjectData/EveMissileWarheadPerObjectData.js';
|
|
91
|
+
export { EveSceneStaticParticlesPerObjectData } from './rawData/perObjectData/EveSceneStaticParticlesPerObjectData.js';
|
|
92
|
+
export { EveSpherePinPerObjectData } from './rawData/perObjectData/EveSpherePinPerObjectData.js';
|
|
93
|
+
export { EveTurretSetPerObjectData } from './rawData/perObjectData/EveTurretSetPerObjectData.js';
|
|
94
|
+
export { StretchPerObjectData } from './rawData/perObjectData/StretchPerObjectData.js';
|
|
70
95
|
export { Tr2ManipulationTool } from './tool/Tr2ManipulationTool.js';
|
|
71
96
|
export { Tr2RotationTool } from './tool/Tr2RotationTool.js';
|
|
72
97
|
export { Tr2ScalingTool } from './tool/Tr2ScalingTool.js';
|
|
@@ -76,7 +101,8 @@ export { TriVariable } from './variable/TriVariable.js';
|
|
|
76
101
|
export { TriFloat } from './variable/TriFloat.js';
|
|
77
102
|
export { SendEventToAudEmitter, TriObserverLocal } from './variable/TriObserverLocal.js';
|
|
78
103
|
export { Tr2ExpressionTermInfo } from './variable/Tr2ExpressionTermInfo.js';
|
|
79
|
-
export {
|
|
104
|
+
export { Tr2VertexDefinitionItem } from './vertex/Tr2VertexDefinition/Tr2VertexDefinitionItem.js';
|
|
105
|
+
export { Tr2VertexDefinition } from './vertex/Tr2VertexDefinition/Tr2VertexDefinition.js';
|
|
80
106
|
export { CarbonUsageFromChannel, CarbonUsageFromCmf, CarbonVertexElements } from './vertex/vertexUsage.js';
|
|
81
107
|
export { FLOAT_MAX, PlaneDotCoord, PlaneDotNormal, TriFrustum } from './view/TriFrustum.js';
|
|
82
108
|
export { TriFrustumOrtho } from './view/TriFrustumOrtho.js';
|
|
@@ -88,5 +114,6 @@ export { convertProjectionCoordToWorldPickRay, screenToProjection } from './view
|
|
|
88
114
|
export { TR2_PICK_TYPE_DEFAULT, Tr2PickType } from './view/Tr2PickType.js';
|
|
89
115
|
export { Tr2VolumetricsRenderer } from './volumetrics/Tr2VolumetricsRenderer.js';
|
|
90
116
|
export { Tr2StreamingBitmapSaver } from './Tr2StreamingBitmapSaver.js';
|
|
91
|
-
export {
|
|
117
|
+
export { Tr2TextureArrayElement } from './Tr2TextureArray/Tr2TextureArrayElement.js';
|
|
118
|
+
export { Tr2TextureArray } from './Tr2TextureArray/Tr2TextureArray.js';
|
|
92
119
|
//# sourceMappingURL=index.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;"}
|
|
@@ -4,7 +4,7 @@ import { carbon, impl, type } from '#schema';
|
|
|
4
4
|
import { num } from '#math/num';
|
|
5
5
|
import { vec3 } from '#math/vec3';
|
|
6
6
|
import { ShadowQuality } from '../../generated/trinityCore/enums.js';
|
|
7
|
-
import { Tr2TextureArray as _Tr2TextureArray } from '../Tr2TextureArray.js';
|
|
7
|
+
import { Tr2TextureArray as _Tr2TextureArray } from '../Tr2TextureArray/Tr2TextureArray.js';
|
|
8
8
|
|
|
9
9
|
let _initStatic, _initProto, _initClass;
|
|
10
10
|
|
|
@@ -594,6 +594,11 @@ new class extends _identity {
|
|
|
594
594
|
// cutoff - absent at the cutoff, full brightness FADE_SIZE above it.
|
|
595
595
|
return Math.min((size - this.#adjustedCutoff) / FADE_SIZE, 1);
|
|
596
596
|
}
|
|
597
|
+
|
|
598
|
+
/**
|
|
599
|
+
* Returns the light's projected pixel size, or its radius when no frustum is
|
|
600
|
+
* set.
|
|
601
|
+
*/
|
|
597
602
|
#ScreenSize(record) {
|
|
598
603
|
if (!this.#frustum) return record.radius;
|
|
599
604
|
return this.#frustum.GetPixelSizeAccross(record.position, record.radius);
|