@carbonenginejs/runtime 0.1.0-alpha.0 → 0.1.0-alpha.2
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/schema/CjsSchema.js +20 -2
- package/dist/global/schema/CjsSchema.js.map +1 -1
- package/dist/global/schema/hydration.js +14 -0
- package/dist/global/schema/hydration.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 +69 -9
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslEmitter.js.map +1 -1
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslOperandFormatter.js +12 -3
- package/dist/resource/formats/webgl/core/glsl/DxbcGlslOperandFormatter.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 +158 -345
- 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 +92 -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
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipeline.js","sources":["../../../../src/resource/texture/Tr2TexturePipeline.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp\r\nimport { carbon, impl, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\nimport {\r\n executeTexturePipeline,\r\n getTexturePipelineDependencies\r\n} from \"./texturePipelineBehavior.js\";\r\n\r\n/**\r\n * Carbon texture-specific CPU bitmap transformation pipeline.\r\n *\r\n * Inputs are supplied explicitly, through a load callback, or through an\r\n * injected CjsResMan. The result is a canonical plain RGBA payload.\r\n */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipeline.js","sources":["../../../../src/resource/texture/Tr2TexturePipeline.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipeline.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.cpp\r\n// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp\r\nimport { carbon, CjsSchema, impl, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\nimport {\r\n executeTexturePipeline,\r\n getTexturePipelineDependencies\r\n} from \"./texturePipelineBehavior.js\";\r\n\r\n/**\r\n * Carbon texture-specific CPU bitmap transformation pipeline.\r\n *\r\n * Inputs are supplied explicitly, through a load callback, or through an\r\n * injected CjsResMan. The result is a canonical plain RGBA payload.\r\n */\r\nexport class Tr2TexturePipeline extends CjsModel\r\n{\r\n\r\n /** m_pipelineType (std::string) [READWRITE, PERSIST] */\r\n pipelineType = \"\";\r\n\r\n /** m_steps (PITr2TexturePipelineStepVector) [READ, PERSIST] */\r\n steps = [];\r\n\r\n /** Creates a Tr2TexturePipeline with caller-provided initial state. */\r\n constructor(values = null)\r\n {\r\n super();\r\n this.SetValues(values || {}, {\r\n markDirty: false,\r\n skipUpdate: true,\r\n skipEvents: true\r\n });\r\n }\r\n\r\n /**\r\n * Execute the CPU pipeline and return a canonical RGBA payload.\r\n *\r\n * @param {number} maxWidth Optional caller width limit.\r\n * @param {number} maxHeight Optional caller height limit.\r\n * @param {object|null} options Input map, load callback, or CjsResMan.\r\n * @returns {Promise<object>} Canonical RGBA payload.\r\n */\r\n async Execute(maxWidth = 0, maxHeight = 0, options = null)\r\n {\r\n return executeTexturePipeline(this.steps, { maxWidth, maxHeight }, options);\r\n }\r\n\r\n /**\r\n * Return sorted unique resource paths consumed by load and pack steps.\r\n *\r\n * @returns {string[]} Resource dependency paths.\r\n */\r\n GetResourceDependencies()\r\n {\r\n return getTexturePipelineDependencies(this.steps);\r\n }\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipeline, {\r\n className: \"Tr2TexturePipeline\", family: \"resources\",\r\n fields: {\r\n pipelineType: [ io.persist, type.string ],\n steps: [ io.persist, type.list(\"ITr2TexturePipelineStep\") ]\r\n },\r\n methods: {\r\n Execute: [ carbon.method, impl.adapted, impl.reason(\"Carbon fills an ImageIO::HostBitmap through blocking file reads; JavaScript resolves inputs asynchronously and returns the runtime resource layer's plain CPU payload.\") ],\n GetResourceDependencies: [ carbon.method, impl.implemented ]\r\n }\r\n});\r\n"],"names":["Tr2TexturePipeline","CjsModel","pipelineType","steps","constructor","values","SetValues","markDirty","skipUpdate","skipEvents","Execute","maxWidth","maxHeight","options","executeTexturePipeline","GetResourceDependencies","getTexturePipelineDependencies","CjsSchema","define","className","family","fields","io","persist","type","string","list","methods","carbon","method","impl","adapted","reason","implemented"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;;AAQA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,kBAAkB,SAASC,QAAQ,CAChD;AAEE;AACAC,EAAAA,YAAY,GAAG,EAAE;;AAEjB;AACAC,EAAAA,KAAK,GAAG,EAAE;;AAEV;AACAC,EAAAA,WAAWA,CAACC,MAAM,GAAG,IAAI,EACzB;AACE,IAAA,KAAK,EAAE;AACP,IAAA,IAAI,CAACC,SAAS,CAACD,MAAM,IAAI,EAAE,EAAE;AAC3BE,MAAAA,SAAS,EAAE,KAAK;AAChBC,MAAAA,UAAU,EAAE,IAAI;AAChBC,MAAAA,UAAU,EAAE;AACd,KAAC,CAAC;AACJ,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACE,EAAA,MAAMC,OAAOA,CAACC,QAAQ,GAAG,CAAC,EAAEC,SAAS,GAAG,CAAC,EAAEC,OAAO,GAAG,IAAI,EACzD;AACE,IAAA,OAAOC,sBAAsB,CAAC,IAAI,CAACX,KAAK,EAAE;MAAEQ,QAAQ;AAAEC,MAAAA;KAAW,EAAEC,OAAO,CAAC;AAC7E,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACEE,EAAAA,uBAAuBA,GACvB;AACE,IAAA,OAAOC,8BAA8B,CAAC,IAAI,CAACb,KAAK,CAAC;AACnD,EAAA;AAEF;AAEAc,SAAS,CAACC,MAAM,CAAClB,kBAAkB,EAAE;AACnCmB,EAAAA,SAAS,EAAE,oBAAoB;AAAEC,EAAAA,MAAM,EAAE,WAAW;AACpDC,EAAAA,MAAM,EAAE;IACNnB,YAAY,EAAE,CAAEoB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,MAAM,CAAE;IACzCtB,KAAK,EAAE,CAAEmB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACE,IAAI,CAAC,yBAAyB,CAAC;GAC1D;AACDC,EAAAA,OAAO,EAAE;AACPjB,IAAAA,OAAO,EAAE,CAAEkB,MAAM,CAACC,MAAM,EAAEC,IAAI,CAACC,OAAO,EAAED,IAAI,CAACE,MAAM,CAAC,wKAAwK,CAAC,CAAE;IAC/NjB,uBAAuB,EAAE,CAAEa,MAAM,CAACC,MAAM,EAAEC,IAAI,CAACG,WAAW;AAC5D;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type } from '#schema';
|
|
1
|
+
import { CjsSchema, type } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h
|
|
5
|
+
// Schema: format-carbon resources/Tr2TexturePipelineParams.json; maintained by the runtime resource layer.
|
|
6
6
|
|
|
7
7
|
/** Tr2TexturePipelineParams (resources) - maintained from schema shapeHash 36df8e41.... */
|
|
8
|
-
let _Tr2TexturePipelinePa;
|
|
9
8
|
class Tr2TexturePipelineParams extends CjsModel {
|
|
10
|
-
static {
|
|
11
|
-
({
|
|
12
|
-
e: [_init_maxWidth, _init_extra_maxWidth, _init_maxHeight, _init_extra_maxHeight],
|
|
13
|
-
c: [_Tr2TexturePipelinePa, _initClass]
|
|
14
|
-
} = _applyDecs2311(this, [type.define({
|
|
15
|
-
className: "Tr2TexturePipelineParams",
|
|
16
|
-
family: "resources"
|
|
17
|
-
})], [[[type, type.uint32], 16, "maxWidth"], [[type, type.uint32], 16, "maxHeight"]], 0, void 0, CjsModel));
|
|
18
|
-
}
|
|
19
|
-
constructor(...args) {
|
|
20
|
-
super(...args);
|
|
21
|
-
_init_extra_maxHeight(this);
|
|
22
|
-
}
|
|
23
9
|
/** maxWidth (uint32_t) */
|
|
24
|
-
maxWidth =
|
|
10
|
+
maxWidth = 0;
|
|
25
11
|
|
|
26
12
|
/** maxHeight (uint32_t) */
|
|
27
|
-
maxHeight =
|
|
28
|
-
static {
|
|
29
|
-
_initClass();
|
|
30
|
-
}
|
|
13
|
+
maxHeight = 0;
|
|
31
14
|
}
|
|
15
|
+
CjsSchema.define(Tr2TexturePipelineParams, {
|
|
16
|
+
className: "Tr2TexturePipelineParams",
|
|
17
|
+
family: "resources",
|
|
18
|
+
fields: {
|
|
19
|
+
maxWidth: type.uint32,
|
|
20
|
+
maxHeight: type.uint32
|
|
21
|
+
}
|
|
22
|
+
});
|
|
32
23
|
|
|
33
|
-
export {
|
|
24
|
+
export { Tr2TexturePipelineParams };
|
|
34
25
|
//# sourceMappingURL=Tr2TexturePipelineParams.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineParams.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineParams.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineParams.json; maintained by the runtime resource layer.\nimport { type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineParams (resources) - maintained from schema shapeHash 36df8e41.... */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineParams.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineParams.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/ITr2TexturePipelineStep.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineParams.json; maintained by the runtime resource layer.\r\nimport { CjsSchema, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineParams (resources) - maintained from schema shapeHash 36df8e41.... */\r\nexport class Tr2TexturePipelineParams extends CjsModel\r\n{\r\n\r\n /** maxWidth (uint32_t) */\r\n maxWidth = 0;\r\n\r\n /** maxHeight (uint32_t) */\r\n maxHeight = 0;\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineParams, {\r\n className: \"Tr2TexturePipelineParams\", family: \"resources\",\r\n fields: {\r\n maxWidth: type.uint32,\r\n maxHeight: type.uint32\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineParams","CjsModel","maxWidth","maxHeight","CjsSchema","define","className","family","fields","type","uint32"],"mappings":";;;AAAA;AACA;;AAIA;AACO,MAAMA,wBAAwB,SAASC,QAAQ,CACtD;AAEE;AACAC,EAAAA,QAAQ,GAAG,CAAC;;AAEZ;AACAC,EAAAA,SAAS,GAAG,CAAC;AAEf;AAEAC,SAAS,CAACC,MAAM,CAACL,wBAAwB,EAAE;AACzCM,EAAAA,SAAS,EAAE,0BAA0B;AAAEC,EAAAA,MAAM,EAAE,WAAW;AAC1DC,EAAAA,MAAM,EAAE;IACNN,QAAQ,EAAEO,IAAI,CAACC,MAAM;IACrBP,SAAS,EAAEM,IAAI,CAACC;AAClB;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,40 +1,33 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { io, type } from '#schema';
|
|
1
|
+
import { CjsSchema, io, type } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.h
|
|
5
|
+
// Schema: format-carbon resources/Tr2TexturePipelineStepCompress.json; maintained by the runtime resource layer.
|
|
6
6
|
|
|
7
7
|
/** Tr2TexturePipelineStepCompress (resources) - maintained from schema shapeHash 4d367f1c.... */
|
|
8
|
-
let _Tr2TexturePipelineSt;
|
|
9
8
|
class Tr2TexturePipelineStepCompress extends CjsModel {
|
|
10
|
-
static {
|
|
11
|
-
({
|
|
12
|
-
e: [_init_format, _init_extra_format, _init_b, _init_extra_b, _init_g, _init_extra_g, _init_r, _init_extra_r],
|
|
13
|
-
c: [_Tr2TexturePipelineSt, _initClass]
|
|
14
|
-
} = _applyDecs2311(this, [type.define({
|
|
15
|
-
className: "Tr2TexturePipelineStepCompress",
|
|
16
|
-
family: "resources"
|
|
17
|
-
})], [[[io, io.persist, type, type.int32, void 0, type.enum("PixelFormat")], 16, "format"], [[io, io.persist, type, type.float32], 16, "b"], [[io, io.persist, type, type.float32], 16, "g"], [[io, io.persist, type, type.float32], 16, "r"]], 0, void 0, CjsModel));
|
|
18
|
-
}
|
|
19
|
-
constructor(...args) {
|
|
20
|
-
super(...args);
|
|
21
|
-
_init_extra_r(this);
|
|
22
|
-
}
|
|
23
9
|
/** m_format (Tr2RenderContextEnum::PixelFormat - enum PixelFormat) [READWRITE, PERSIST, ENUM] */
|
|
24
|
-
format =
|
|
10
|
+
format = 71;
|
|
25
11
|
|
|
26
12
|
/** m_bWeight (float) [READWRITE, PERSIST] */
|
|
27
|
-
b =
|
|
13
|
+
b = 1;
|
|
28
14
|
|
|
29
15
|
/** m_gWeight (float) [READWRITE, PERSIST] */
|
|
30
|
-
g =
|
|
16
|
+
g = 1;
|
|
31
17
|
|
|
32
18
|
/** m_rWeight (float) [READWRITE, PERSIST] */
|
|
33
|
-
r =
|
|
34
|
-
static {
|
|
35
|
-
_initClass();
|
|
36
|
-
}
|
|
19
|
+
r = 1;
|
|
37
20
|
}
|
|
21
|
+
CjsSchema.define(Tr2TexturePipelineStepCompress, {
|
|
22
|
+
className: "Tr2TexturePipelineStepCompress",
|
|
23
|
+
family: "resources",
|
|
24
|
+
fields: {
|
|
25
|
+
format: [io.persist, type.int32, type.enum("PixelFormat")],
|
|
26
|
+
b: [io.persist, type.float32],
|
|
27
|
+
g: [io.persist, type.float32],
|
|
28
|
+
r: [io.persist, type.float32]
|
|
29
|
+
}
|
|
30
|
+
});
|
|
38
31
|
|
|
39
|
-
export {
|
|
32
|
+
export { Tr2TexturePipelineStepCompress };
|
|
40
33
|
//# sourceMappingURL=Tr2TexturePipelineStepCompress.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineStepCompress.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepCompress.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepCompress.json; maintained by the runtime resource layer.\nimport { io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepCompress (resources) - maintained from schema shapeHash 4d367f1c.... */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineStepCompress.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepCompress.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepCompress.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepCompress.json; maintained by the runtime resource layer.\r\nimport { CjsSchema, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepCompress (resources) - maintained from schema shapeHash 4d367f1c.... */\r\nexport class Tr2TexturePipelineStepCompress extends CjsModel\r\n{\r\n\r\n /** m_format (Tr2RenderContextEnum::PixelFormat - enum PixelFormat) [READWRITE, PERSIST, ENUM] */\r\n format = 71;\r\n\r\n /** m_bWeight (float) [READWRITE, PERSIST] */\r\n b = 1;\r\n\r\n /** m_gWeight (float) [READWRITE, PERSIST] */\r\n g = 1;\r\n\r\n /** m_rWeight (float) [READWRITE, PERSIST] */\r\n r = 1;\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineStepCompress, {\r\n className: \"Tr2TexturePipelineStepCompress\", family: \"resources\",\r\n fields: {\r\n format: [ io.persist, type.int32, type.enum(\"PixelFormat\") ],\r\n b: [ io.persist, type.float32 ],\r\n g: [ io.persist, type.float32 ],\r\n r: [ io.persist, type.float32 ]\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineStepCompress","CjsModel","format","b","g","r","CjsSchema","define","className","family","fields","io","persist","type","int32","enum","float32"],"mappings":";;;AAAA;AACA;;AAIA;AACO,MAAMA,8BAA8B,SAASC,QAAQ,CAC5D;AAEE;AACAC,EAAAA,MAAM,GAAG,EAAE;;AAEX;AACAC,EAAAA,CAAC,GAAG,CAAC;;AAEL;AACAC,EAAAA,CAAC,GAAG,CAAC;;AAEL;AACAC,EAAAA,CAAC,GAAG,CAAC;AAEP;AAEAC,SAAS,CAACC,MAAM,CAACP,8BAA8B,EAAE;AAC/CQ,EAAAA,SAAS,EAAE,gCAAgC;AAAEC,EAAAA,MAAM,EAAE,WAAW;AAChEC,EAAAA,MAAM,EAAE;AACNR,IAAAA,MAAM,EAAE,CAAES,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,KAAK,EAAED,IAAI,CAACE,IAAI,CAAC,aAAa,CAAC,CAAE;IAC5DZ,CAAC,EAAE,CAAEQ,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,OAAO,CAAE;IAC/BZ,CAAC,EAAE,CAAEO,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,OAAO,CAAE;IAC/BX,CAAC,EAAE,CAAEM,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,OAAO;AAC/B;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,22 +1,17 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { type } from '#schema';
|
|
1
|
+
import { CjsSchema } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepGenerateMips.h
|
|
5
|
+
// Marker step: Carbon registers the class with zero attributes; the mip
|
|
6
|
+
// generation itself happens where the pipeline is executed.
|
|
6
7
|
|
|
7
8
|
/** Tr2TexturePipelineStepGenerateMips (resources) - attribute-free Blue marker class. */
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
})], [], 0, void 0, CjsModel).c;
|
|
15
|
-
}
|
|
16
|
-
static {
|
|
17
|
-
_initClass();
|
|
18
|
-
}
|
|
19
|
-
}
|
|
9
|
+
class Tr2TexturePipelineStepGenerateMips extends CjsModel {}
|
|
10
|
+
CjsSchema.define(Tr2TexturePipelineStepGenerateMips, {
|
|
11
|
+
className: "Tr2TexturePipelineStepGenerateMips",
|
|
12
|
+
family: "resources",
|
|
13
|
+
fields: {}
|
|
14
|
+
});
|
|
20
15
|
|
|
21
|
-
export {
|
|
16
|
+
export { Tr2TexturePipelineStepGenerateMips };
|
|
22
17
|
//# sourceMappingURL=Tr2TexturePipelineStepGenerateMips.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineStepGenerateMips.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepGenerateMips.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepGenerateMips.h\r\n// Marker step: Carbon registers the class with zero attributes; the mip\r\n// generation itself happens where the pipeline is executed.\r\nimport { type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepGenerateMips (resources) - attribute-free Blue marker class. */\r\n
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineStepGenerateMips.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepGenerateMips.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepGenerateMips.h\r\n// Marker step: Carbon registers the class with zero attributes; the mip\r\n// generation itself happens where the pipeline is executed.\r\nimport { CjsSchema, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepGenerateMips (resources) - attribute-free Blue marker class. */\r\nexport class Tr2TexturePipelineStepGenerateMips extends CjsModel\r\n{\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineStepGenerateMips, {\r\n className: \"Tr2TexturePipelineStepGenerateMips\", family: \"resources\",\r\n fields: {\r\n\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineStepGenerateMips","CjsModel","CjsSchema","define","className","family","fields"],"mappings":";;;AAAA;AACA;AACA;;AAIA;AACO,MAAMA,kCAAkC,SAASC,QAAQ,CAChE;AAGAC,SAAS,CAACC,MAAM,CAACH,kCAAkC,EAAE;AACnDI,EAAAA,SAAS,EAAE,oCAAoC;AAAEC,EAAAA,MAAM,EAAE,WAAW;AACpEC,EAAAA,MAAM,EAAE;AAGV,CAAC,CAAC;;;;"}
|
|
@@ -1,34 +1,25 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { io, type } from '#schema';
|
|
1
|
+
import { CjsSchema, io, type } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.h
|
|
5
|
+
// Schema: format-carbon resources/Tr2TexturePipelineStepLimitSize.json; maintained by the runtime resource layer.
|
|
6
6
|
|
|
7
7
|
/** Tr2TexturePipelineStepLimitSize (resources) - maintained from schema shapeHash 9e97efed.... */
|
|
8
|
-
let _Tr2TexturePipelineSt;
|
|
9
8
|
class Tr2TexturePipelineStepLimitSize extends CjsModel {
|
|
10
|
-
static {
|
|
11
|
-
({
|
|
12
|
-
e: [_init_maxHeight, _init_extra_maxHeight, _init_maxWidth, _init_extra_maxWidth],
|
|
13
|
-
c: [_Tr2TexturePipelineSt, _initClass]
|
|
14
|
-
} = _applyDecs2311(this, [type.define({
|
|
15
|
-
className: "Tr2TexturePipelineStepLimitSize",
|
|
16
|
-
family: "resources"
|
|
17
|
-
})], [[[io, io.persist, type, type.uint32], 16, "maxHeight"], [[io, io.persist, type, type.uint32], 16, "maxWidth"]], 0, void 0, CjsModel));
|
|
18
|
-
}
|
|
19
|
-
constructor(...args) {
|
|
20
|
-
super(...args);
|
|
21
|
-
_init_extra_maxWidth(this);
|
|
22
|
-
}
|
|
23
9
|
/** m_maxHeight (uint32_t) [READWRITE, PERSIST] */
|
|
24
|
-
maxHeight =
|
|
10
|
+
maxHeight = 0;
|
|
25
11
|
|
|
26
12
|
/** m_maxWidth (uint32_t) [READWRITE, PERSIST] */
|
|
27
|
-
maxWidth =
|
|
28
|
-
static {
|
|
29
|
-
_initClass();
|
|
30
|
-
}
|
|
13
|
+
maxWidth = 0;
|
|
31
14
|
}
|
|
15
|
+
CjsSchema.define(Tr2TexturePipelineStepLimitSize, {
|
|
16
|
+
className: "Tr2TexturePipelineStepLimitSize",
|
|
17
|
+
family: "resources",
|
|
18
|
+
fields: {
|
|
19
|
+
maxHeight: [io.persist, type.uint32],
|
|
20
|
+
maxWidth: [io.persist, type.uint32]
|
|
21
|
+
}
|
|
22
|
+
});
|
|
32
23
|
|
|
33
|
-
export {
|
|
24
|
+
export { Tr2TexturePipelineStepLimitSize };
|
|
34
25
|
//# sourceMappingURL=Tr2TexturePipelineStepLimitSize.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineStepLimitSize.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepLimitSize.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepLimitSize.json; maintained by the runtime resource layer.\nimport { io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepLimitSize (resources) - maintained from schema shapeHash 9e97efed.... */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineStepLimitSize.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepLimitSize.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLimitSize.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepLimitSize.json; maintained by the runtime resource layer.\r\nimport { CjsSchema, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepLimitSize (resources) - maintained from schema shapeHash 9e97efed.... */\r\nexport class Tr2TexturePipelineStepLimitSize extends CjsModel\r\n{\r\n\r\n /** m_maxHeight (uint32_t) [READWRITE, PERSIST] */\r\n maxHeight = 0;\r\n\r\n /** m_maxWidth (uint32_t) [READWRITE, PERSIST] */\r\n maxWidth = 0;\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineStepLimitSize, {\r\n className: \"Tr2TexturePipelineStepLimitSize\", family: \"resources\",\r\n fields: {\r\n maxHeight: [ io.persist, type.uint32 ],\r\n maxWidth: [ io.persist, type.uint32 ]\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineStepLimitSize","CjsModel","maxHeight","maxWidth","CjsSchema","define","className","family","fields","io","persist","type","uint32"],"mappings":";;;AAAA;AACA;;AAIA;AACO,MAAMA,+BAA+B,SAASC,QAAQ,CAC7D;AAEE;AACAC,EAAAA,SAAS,GAAG,CAAC;;AAEb;AACAC,EAAAA,QAAQ,GAAG,CAAC;AAEd;AAEAC,SAAS,CAACC,MAAM,CAACL,+BAA+B,EAAE;AAChDM,EAAAA,SAAS,EAAE,iCAAiC;AAAEC,EAAAA,MAAM,EAAE,WAAW;AACjEC,EAAAA,MAAM,EAAE;IACNN,SAAS,EAAE,CAAEO,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,MAAM,CAAE;IACtCT,QAAQ,EAAE,CAAEM,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,MAAM;AACrC;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,31 +1,21 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { io, type } from '#schema';
|
|
1
|
+
import { CjsSchema, io, type } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
|
|
5
|
-
|
|
4
|
+
// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.h
|
|
5
|
+
// Schema: format-carbon resources/Tr2TexturePipelineStepLoad.json; maintained by the runtime resource layer.
|
|
6
6
|
|
|
7
7
|
/** Tr2TexturePipelineStepLoad (resources) - maintained from schema shapeHash 8f11e264.... */
|
|
8
|
-
let _Tr2TexturePipelineSt;
|
|
9
8
|
class Tr2TexturePipelineStepLoad extends CjsModel {
|
|
10
|
-
static {
|
|
11
|
-
({
|
|
12
|
-
e: [_init_path, _init_extra_path],
|
|
13
|
-
c: [_Tr2TexturePipelineSt, _initClass]
|
|
14
|
-
} = _applyDecs2311(this, [type.define({
|
|
15
|
-
className: "Tr2TexturePipelineStepLoad",
|
|
16
|
-
family: "resources"
|
|
17
|
-
})], [[[io, io.persist, type, type.string], 16, "path"]], 0, void 0, CjsModel));
|
|
18
|
-
}
|
|
19
|
-
constructor(...args) {
|
|
20
|
-
super(...args);
|
|
21
|
-
_init_extra_path(this);
|
|
22
|
-
}
|
|
23
9
|
/** m_path (std::wstring) [READWRITE, PERSIST] */
|
|
24
|
-
path =
|
|
25
|
-
static {
|
|
26
|
-
_initClass();
|
|
27
|
-
}
|
|
10
|
+
path = "";
|
|
28
11
|
}
|
|
12
|
+
CjsSchema.define(Tr2TexturePipelineStepLoad, {
|
|
13
|
+
className: "Tr2TexturePipelineStepLoad",
|
|
14
|
+
family: "resources",
|
|
15
|
+
fields: {
|
|
16
|
+
path: [io.persist, type.string]
|
|
17
|
+
}
|
|
18
|
+
});
|
|
29
19
|
|
|
30
|
-
export {
|
|
20
|
+
export { Tr2TexturePipelineStepLoad };
|
|
31
21
|
//# sourceMappingURL=Tr2TexturePipelineStepLoad.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineStepLoad.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepLoad.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepLoad.json; maintained by the runtime resource layer.\nimport { io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepLoad (resources) - maintained from schema shapeHash 8f11e264.... */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineStepLoad.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepLoad.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepLoad.h\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepLoad.json; maintained by the runtime resource layer.\r\nimport { CjsSchema, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\n\r\n/** Tr2TexturePipelineStepLoad (resources) - maintained from schema shapeHash 8f11e264.... */\r\nexport class Tr2TexturePipelineStepLoad extends CjsModel\r\n{\r\n\r\n /** m_path (std::wstring) [READWRITE, PERSIST] */\r\n path = \"\";\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineStepLoad, {\r\n className: \"Tr2TexturePipelineStepLoad\", family: \"resources\",\r\n fields: {\r\n path: [ io.persist, type.string ]\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineStepLoad","CjsModel","path","CjsSchema","define","className","family","fields","io","persist","type","string"],"mappings":";;;AAAA;AACA;;AAIA;AACO,MAAMA,0BAA0B,SAASC,QAAQ,CACxD;AAEE;AACAC,EAAAA,IAAI,GAAG,EAAE;AAEX;AAEAC,SAAS,CAACC,MAAM,CAACJ,0BAA0B,EAAE;AAC3CK,EAAAA,SAAS,EAAE,4BAA4B;AAAEC,EAAAA,MAAM,EAAE,WAAW;AAC5DC,EAAAA,MAAM,EAAE;IACNL,IAAI,EAAE,CAAEM,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,MAAM;AACjC;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { io, type, impl } from '#schema';
|
|
1
|
+
import { CjsSchema, impl, io, type } from '#schema';
|
|
3
2
|
import { CjsModel } from '#model';
|
|
4
3
|
import { packBitmap } from './texturePipelineBehavior.js';
|
|
5
4
|
|
|
6
|
-
|
|
5
|
+
// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.h
|
|
6
|
+
// trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp
|
|
7
|
+
// Schema: format-carbon resources/Tr2TexturePipelineStepPack.json; maintained by the runtime resource layer.
|
|
8
|
+
//
|
|
9
|
+
// CARBON'S PRIVATE STATIC `Pack` (h:47, cpp:182-215) IS ADAPTED AWAY, not
|
|
10
|
+
// missing: it is a per-channel byte interleaver whose independent pixel/row
|
|
11
|
+
// strides exist because Carbon packs from BGRA host bitmaps of differing
|
|
12
|
+
// formats and mip pitches. This runtime's pipeline speaks one canonical
|
|
13
|
+
// single-mip RGBA payload, so the interleave collapses into packBitmap's
|
|
14
|
+
// per-pixel loop (texturePipelineBehavior.js) and a separate stride-walking
|
|
15
|
+
// helper would have nothing distinct to do. Two donor quirks recorded there:
|
|
16
|
+
// the R8 arm of Execute's channel-count switch tests PIXEL_FORMAT_R8_UINT
|
|
17
|
+
// while only R8_UNORM is accepted (cpp:166-170), so Carbon's R8 output
|
|
18
|
+
// actually takes the four-source default - the JS form packs R8 correctly
|
|
19
|
+
// and that divergence is deliberate; and the source byte offset clamps to
|
|
20
|
+
// min(pixelStride-1, SwapRedBlue(channel)) (cpp:156).
|
|
7
21
|
|
|
8
22
|
/** Tr2TexturePipelineStepPack (resources) - maintained from schema shapeHash 3efe48d4.... */
|
|
9
|
-
let _Tr2TexturePipelineSt;
|
|
10
23
|
class Tr2TexturePipelineStepPack extends CjsModel {
|
|
11
|
-
static {
|
|
12
|
-
({
|
|
13
|
-
e: [_init_format, _init_extra_format, _init_a, _init_extra_a, _init_b, _init_extra_b, _init_g, _init_extra_g, _init_r, _init_extra_r, _initProto],
|
|
14
|
-
c: [_Tr2TexturePipelineSt, _initClass]
|
|
15
|
-
} = _applyDecs2311(this, [type.define({
|
|
16
|
-
className: "Tr2TexturePipelineStepPack",
|
|
17
|
-
family: "resources"
|
|
18
|
-
})], [[[io, io.persist, type, type.int32, void 0, type.enum("PixelFormat")], 16, "format"], [[io, io.persist, void 0, type.objectRef("Tr2TexturePackChannel")], 16, "a"], [[io, io.persist, void 0, type.objectRef("Tr2TexturePackChannel")], 16, "b"], [[io, io.persist, void 0, type.objectRef("Tr2TexturePackChannel")], 16, "g"], [[io, io.persist, void 0, type.objectRef("Tr2TexturePackChannel")], 16, "r"], [[impl, impl.implemented], 18, "GetResourceDependencies"], [[impl, impl.adapted, void 0, impl.reason("Carbon fills an out-param BGRA HostBitmap per mip; the JS pipeline's canonical payload is a returned single-mip RGBA bitmap.")], 18, "Execute"]], 0, void 0, CjsModel));
|
|
19
|
-
}
|
|
20
|
-
constructor(...args) {
|
|
21
|
-
super(...args);
|
|
22
|
-
_init_extra_r(this);
|
|
23
|
-
}
|
|
24
24
|
/** m_format (Tr2RenderContextEnum::PixelFormat - enum PixelFormat) [READWRITE, PERSIST, ENUM] */
|
|
25
|
-
format =
|
|
25
|
+
format = 87;
|
|
26
26
|
|
|
27
27
|
/** m_a (PTr2TexturePackChannel) [READ, PERSIST] */
|
|
28
|
-
a =
|
|
28
|
+
a = null;
|
|
29
29
|
|
|
30
30
|
/** m_b (PTr2TexturePackChannel) [READ, PERSIST] */
|
|
31
|
-
b =
|
|
31
|
+
b = null;
|
|
32
32
|
|
|
33
33
|
/** m_g (PTr2TexturePackChannel) [READ, PERSIST] */
|
|
34
|
-
g =
|
|
34
|
+
g = null;
|
|
35
35
|
|
|
36
36
|
/** m_r (PTr2TexturePackChannel) [READ, PERSIST] */
|
|
37
|
-
r =
|
|
37
|
+
r = null;
|
|
38
38
|
|
|
39
39
|
/**
|
|
40
40
|
* Carbon GetResourceDependencies (cpp:39-57), the ITr2TexturePipelineStep
|
|
@@ -63,10 +63,22 @@ class Tr2TexturePipelineStepPack extends CjsModel {
|
|
|
63
63
|
Execute(inputs) {
|
|
64
64
|
return packBitmap(this, inputs);
|
|
65
65
|
}
|
|
66
|
-
static {
|
|
67
|
-
_initClass();
|
|
68
|
-
}
|
|
69
66
|
}
|
|
67
|
+
CjsSchema.define(Tr2TexturePipelineStepPack, {
|
|
68
|
+
className: "Tr2TexturePipelineStepPack",
|
|
69
|
+
family: "resources",
|
|
70
|
+
fields: {
|
|
71
|
+
format: [io.persist, type.int32, type.enum("PixelFormat")],
|
|
72
|
+
a: [io.persist, type.objectRef("Tr2TexturePackChannel")],
|
|
73
|
+
b: [io.persist, type.objectRef("Tr2TexturePackChannel")],
|
|
74
|
+
g: [io.persist, type.objectRef("Tr2TexturePackChannel")],
|
|
75
|
+
r: [io.persist, type.objectRef("Tr2TexturePackChannel")]
|
|
76
|
+
},
|
|
77
|
+
methods: {
|
|
78
|
+
GetResourceDependencies: impl.implemented,
|
|
79
|
+
Execute: [impl.adapted, impl.reason("Carbon fills an out-param BGRA HostBitmap per mip; the JS pipeline's canonical payload is a returned single-mip RGBA bitmap.")]
|
|
80
|
+
}
|
|
81
|
+
});
|
|
70
82
|
|
|
71
|
-
export {
|
|
83
|
+
export { Tr2TexturePipelineStepPack };
|
|
72
84
|
//# sourceMappingURL=Tr2TexturePipelineStepPack.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Tr2TexturePipelineStepPack.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepPack.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.h\r\n// trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepPack.json; maintained by the runtime resource layer.\r\n//\r\n// CARBON'S PRIVATE STATIC `Pack` (h:47, cpp:182-215) IS ADAPTED AWAY, not\r\n// missing: it is a per-channel byte interleaver whose independent pixel/row\r\n// strides exist because Carbon packs from BGRA host bitmaps of differing\r\n// formats and mip pitches. This runtime's pipeline speaks one canonical\r\n// single-mip RGBA payload, so the interleave collapses into packBitmap's\r\n// per-pixel loop (texturePipelineBehavior.js) and a separate stride-walking\r\n// helper would have nothing distinct to do. Two donor quirks recorded there:\r\n// the R8 arm of Execute's channel-count switch tests PIXEL_FORMAT_R8_UINT\r\n// while only R8_UNORM is accepted (cpp:166-170), so Carbon's R8 output\r\n// actually takes the four-source default - the JS form packs R8 correctly\r\n// and that divergence is deliberate; and the source byte offset clamps to\r\n// min(pixelStride-1, SwapRedBlue(channel)) (cpp:156).\r\nimport { impl, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\nimport { packBitmap } from \"./texturePipelineBehavior.js\";\r\n\r\n/** Tr2TexturePipelineStepPack (resources) - maintained from schema shapeHash 3efe48d4.... */\r\
|
|
1
|
+
{"version":3,"file":"Tr2TexturePipelineStepPack.js","sources":["../../../../src/resource/texture/Tr2TexturePipelineStepPack.js"],"sourcesContent":["// Source: trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.h\r\n// trinity/trinity/Resources/TexturePipeline/Tr2TexturePipelineStepPack.cpp\r\n// Schema: format-carbon resources/Tr2TexturePipelineStepPack.json; maintained by the runtime resource layer.\r\n//\r\n// CARBON'S PRIVATE STATIC `Pack` (h:47, cpp:182-215) IS ADAPTED AWAY, not\r\n// missing: it is a per-channel byte interleaver whose independent pixel/row\r\n// strides exist because Carbon packs from BGRA host bitmaps of differing\r\n// formats and mip pitches. This runtime's pipeline speaks one canonical\r\n// single-mip RGBA payload, so the interleave collapses into packBitmap's\r\n// per-pixel loop (texturePipelineBehavior.js) and a separate stride-walking\r\n// helper would have nothing distinct to do. Two donor quirks recorded there:\r\n// the R8 arm of Execute's channel-count switch tests PIXEL_FORMAT_R8_UINT\r\n// while only R8_UNORM is accepted (cpp:166-170), so Carbon's R8 output\r\n// actually takes the four-source default - the JS form packs R8 correctly\r\n// and that divergence is deliberate; and the source byte offset clamps to\r\n// min(pixelStride-1, SwapRedBlue(channel)) (cpp:156).\r\nimport { CjsSchema, impl, io, type } from \"#schema\";\r\nimport { CjsModel } from \"#model\";\r\nimport { packBitmap } from \"./texturePipelineBehavior.js\";\r\n\r\n/** Tr2TexturePipelineStepPack (resources) - maintained from schema shapeHash 3efe48d4.... */\r\nexport class Tr2TexturePipelineStepPack extends CjsModel\r\n{\r\n\r\n /** m_format (Tr2RenderContextEnum::PixelFormat - enum PixelFormat) [READWRITE, PERSIST, ENUM] */\r\n format = 87;\r\n\r\n /** m_a (PTr2TexturePackChannel) [READ, PERSIST] */\r\n a = null;\r\n\r\n /** m_b (PTr2TexturePackChannel) [READ, PERSIST] */\r\n b = null;\r\n\r\n /** m_g (PTr2TexturePackChannel) [READ, PERSIST] */\r\n g = null;\r\n\r\n /** m_r (PTr2TexturePackChannel) [READ, PERSIST] */\r\n r = null;\r\n\r\n /**\r\n * Carbon GetResourceDependencies (cpp:39-57), the ITr2TexturePipelineStep\r\n * virtual: insert each channel's non-empty path into the caller's set.\r\n *\r\n * @param {Set<string>} [resources] Caller-owned; allocated when omitted.\r\n * @returns {Set<string>} The set, for the caller that omitted it.\r\n */\r\n GetResourceDependencies(resources = new Set())\r\n {\r\n for (const channel of [ this.r, this.g, this.b, this.a ])\r\n {\r\n if (channel?.path) resources.add(String(channel.path));\r\n }\r\n return resources;\r\n }\r\n\r\n /**\r\n * Carbon Execute (cpp:60-179), the other step virtual: packs up to four\r\n * single-channel reads into one bitmap. Carbon fills an out-param\r\n * HostBitmap per mip; the canonical JS pipeline returns a single-mip RGBA\r\n * bitmap instead, and this method IS the body the pipeline dispatcher\r\n * runs (texturePipelineBehavior.js packBitmap).\r\n *\r\n * @param {Map<string, object>} inputs Resolved input bitmaps by path.\r\n * @returns {object} The packed bitmap.\r\n */\r\n Execute(inputs)\r\n {\r\n return packBitmap(this, inputs);\r\n }\r\n\r\n}\r\n\r\nCjsSchema.define(Tr2TexturePipelineStepPack, {\r\n className: \"Tr2TexturePipelineStepPack\", family: \"resources\",\r\n fields: {\r\n format: [ io.persist, type.int32, type.enum(\"PixelFormat\") ],\n a: [ io.persist, type.objectRef(\"Tr2TexturePackChannel\") ],\n b: [ io.persist, type.objectRef(\"Tr2TexturePackChannel\") ],\n g: [ io.persist, type.objectRef(\"Tr2TexturePackChannel\") ],\n r: [ io.persist, type.objectRef(\"Tr2TexturePackChannel\") ]\r\n },\r\n methods: {\r\n GetResourceDependencies: impl.implemented,\n Execute: [ impl.adapted, impl.reason(\"Carbon fills an out-param BGRA HostBitmap per mip; the JS pipeline's canonical payload is a returned single-mip RGBA bitmap.\") ]\r\n }\r\n});\r\n"],"names":["Tr2TexturePipelineStepPack","CjsModel","format","a","b","g","r","GetResourceDependencies","resources","Set","channel","path","add","String","Execute","inputs","packBitmap","CjsSchema","define","className","family","fields","io","persist","type","int32","enum","objectRef","methods","impl","implemented","adapted","reason"],"mappings":";;;;AAAA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;;AAKA;AACO,MAAMA,0BAA0B,SAASC,QAAQ,CACxD;AAEE;AACAC,EAAAA,MAAM,GAAG,EAAE;;AAEX;AACAC,EAAAA,CAAC,GAAG,IAAI;;AAER;AACAC,EAAAA,CAAC,GAAG,IAAI;;AAER;AACAC,EAAAA,CAAC,GAAG,IAAI;;AAER;AACAC,EAAAA,CAAC,GAAG,IAAI;;AAER;AACF;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,uBAAuBA,CAACC,SAAS,GAAG,IAAIC,GAAG,EAAE,EAC7C;IACE,KAAK,MAAMC,OAAO,IAAI,CAAE,IAAI,CAACJ,CAAC,EAAE,IAAI,CAACD,CAAC,EAAE,IAAI,CAACD,CAAC,EAAE,IAAI,CAACD,CAAC,CAAE,EACxD;AACE,MAAA,IAAIO,OAAO,EAAEC,IAAI,EAAEH,SAAS,CAACI,GAAG,CAACC,MAAM,CAACH,OAAO,CAACC,IAAI,CAAC,CAAC;AACxD,IAAA;AACA,IAAA,OAAOH,SAAS;AAClB,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;EACEM,OAAOA,CAACC,MAAM,EACd;AACE,IAAA,OAAOC,UAAU,CAAC,IAAI,EAAED,MAAM,CAAC;AACjC,EAAA;AAEF;AAEAE,SAAS,CAACC,MAAM,CAAClB,0BAA0B,EAAE;AAC3CmB,EAAAA,SAAS,EAAE,4BAA4B;AAAEC,EAAAA,MAAM,EAAE,WAAW;AAC5DC,EAAAA,MAAM,EAAE;AACNnB,IAAAA,MAAM,EAAE,CAAEoB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACC,KAAK,EAAED,IAAI,CAACE,IAAI,CAAC,aAAa,CAAC,CAAE;AAC5DvB,IAAAA,CAAC,EAAE,CAAEmB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,SAAS,CAAC,uBAAuB,CAAC,CAAE;AAC1DvB,IAAAA,CAAC,EAAE,CAAEkB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,SAAS,CAAC,uBAAuB,CAAC,CAAE;AAC1DtB,IAAAA,CAAC,EAAE,CAAEiB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,SAAS,CAAC,uBAAuB,CAAC,CAAE;IAC1DrB,CAAC,EAAE,CAAEgB,EAAE,CAACC,OAAO,EAAEC,IAAI,CAACG,SAAS,CAAC,uBAAuB,CAAC;GACzD;AACDC,EAAAA,OAAO,EAAE;IACPrB,uBAAuB,EAAEsB,IAAI,CAACC,WAAW;IACzChB,OAAO,EAAE,CAAEe,IAAI,CAACE,OAAO,EAAEF,IAAI,CAACG,MAAM,CAAC,8HAA8H,CAAC;AACtK;AACF,CAAC,CAAC;;;;"}
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { assertResourceSource } from './protocol.js';
|
|
2
|
+
|
|
1
3
|
/**
|
|
2
4
|
* Direct execution strategy that reads through a structural source and invokes registered format facades on the caller thread.
|
|
3
5
|
*
|
|
@@ -79,11 +81,6 @@ function readFormatOnCurrentThread(descriptor, input, formatOptions = {}, contex
|
|
|
79
81
|
}
|
|
80
82
|
throw new TypeError(`${Format.name} does not expose a read operation.`);
|
|
81
83
|
}
|
|
82
|
-
function assertResourceSource(source) {
|
|
83
|
-
if (!source || typeof source !== "object" && typeof source !== "function" || typeof source.Read !== "function") {
|
|
84
|
-
throw new TypeError("Resource source must provide Read(path, options).");
|
|
85
|
-
}
|
|
86
|
-
}
|
|
87
84
|
|
|
88
85
|
export { CjsResManMainThreadLoader };
|
|
89
86
|
//# sourceMappingURL=CjsResManMainThreadLoader.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CjsResManMainThreadLoader.js","sources":["../../../../src/resource/worker/CjsResManMainThreadLoader.js"],"sourcesContent":["/**\r\n * Direct execution strategy that reads through a structural source and invokes registered format facades on the caller thread.\r\n *\r\n * It is used when no browser worker is selected or when a source or format\r\n * does not declare a worker-safe operation.\r\n */\r\nexport class CjsResManMainThreadLoader\r\n{\r\n /**\r\n * Read through an injected resource source.\r\n *\r\n * @param {object|Function} source Source exposing `Read(path, options)`.\r\n * @param {string} path Normalized resource path.\r\n * @param {object} [options={}] Source read options.\r\n * @returns {*} Source result or promise.\r\n */\r\n Read(source, path, options = {})\r\n {\r\n assertResourceSource(source);\r\n return source.Read(path, options);\r\n }\r\n\r\n /**\r\n * Main-thread loaders never claim worker execution.\r\n *\r\n * @returns {false}\r\n */\r\n CanReadFormat()\r\n {\r\n return false;\r\n }\r\n\r\n /**\r\n * Execute one normalized format read on the current thread.\r\n *\r\n * @param {object} descriptor Registered format descriptor.\r\n * @param {*} input Reader input.\r\n * @param {object} [formatOptions={}] Normalized format options.\r\n * @param {object|null} [context=null] Normalized resource path context.\r\n * @returns {Promise<*>} Format result.\r\n */\r\n ReadFormat(descriptor, input, formatOptions = {}, context = null)\r\n {\r\n return readFormatOnCurrentThread(descriptor, input, formatOptions, context);\r\n }\r\n\r\n /**\r\n * Main-thread execution owns no pending worker requests.\r\n *\r\n * @returns {0}\r\n */\r\n GetPendingCount()\r\n {\r\n return 0;\r\n }\r\n}\r\n\r\n/**\r\n * Invoke a format facade without crossing a worker boundary.\r\n *\r\n * @param {object} descriptor Registered format descriptor.\r\n * @param {*} input Reader input.\r\n * @param {object} formatOptions Normalized format options.\r\n * @param {object|null} context Normalized resource path context.\r\n * @returns {Promise<*>} Reader result.\r\n */\r\nfunction readFormatOnCurrentThread(\r\n descriptor,\r\n input,\r\n formatOptions = {},\r\n context = null\r\n)\r\n{\r\n const Format = descriptor?.Format;\r\n\r\n if (typeof Format !== \"function\")\r\n {\r\n throw new TypeError(\"Resource format descriptor requires a Format class.\");\r\n }\r\n if (typeof Format.readAsync === \"function\")\r\n {\r\n return Format.readAsync(input, formatOptions, context);\r\n }\r\n if (typeof Format.read === \"function\")\r\n {\r\n return Format.read(input, formatOptions, context);\r\n }\r\n\r\n const reader = new Format(formatOptions);\r\n\r\n if (typeof reader.ReadAsync === \"function\")\r\n {\r\n return reader.ReadAsync(input, formatOptions, context);\r\n }\r\n if (typeof reader.Read === \"function\")\r\n {\r\n return reader.Read(input, formatOptions, context);\r\n }\r\n\r\n throw new TypeError(`${Format.name} does not expose a read operation.`);\r\n}\r\n\r
|
|
1
|
+
{"version":3,"file":"CjsResManMainThreadLoader.js","sources":["../../../../src/resource/worker/CjsResManMainThreadLoader.js"],"sourcesContent":["import { assertResourceSource } from \"./protocol.js\";\n\n/**\r\n * Direct execution strategy that reads through a structural source and invokes registered format facades on the caller thread.\r\n *\r\n * It is used when no browser worker is selected or when a source or format\r\n * does not declare a worker-safe operation.\r\n */\r\nexport class CjsResManMainThreadLoader\r\n{\r\n /**\r\n * Read through an injected resource source.\r\n *\r\n * @param {object|Function} source Source exposing `Read(path, options)`.\r\n * @param {string} path Normalized resource path.\r\n * @param {object} [options={}] Source read options.\r\n * @returns {*} Source result or promise.\r\n */\r\n Read(source, path, options = {})\r\n {\r\n assertResourceSource(source);\r\n return source.Read(path, options);\r\n }\r\n\r\n /**\r\n * Main-thread loaders never claim worker execution.\r\n *\r\n * @returns {false}\r\n */\r\n CanReadFormat()\r\n {\r\n return false;\r\n }\r\n\r\n /**\r\n * Execute one normalized format read on the current thread.\r\n *\r\n * @param {object} descriptor Registered format descriptor.\r\n * @param {*} input Reader input.\r\n * @param {object} [formatOptions={}] Normalized format options.\r\n * @param {object|null} [context=null] Normalized resource path context.\r\n * @returns {Promise<*>} Format result.\r\n */\r\n ReadFormat(descriptor, input, formatOptions = {}, context = null)\r\n {\r\n return readFormatOnCurrentThread(descriptor, input, formatOptions, context);\r\n }\r\n\r\n /**\r\n * Main-thread execution owns no pending worker requests.\r\n *\r\n * @returns {0}\r\n */\r\n GetPendingCount()\r\n {\r\n return 0;\r\n }\r\n}\r\n\r\n/**\r\n * Invoke a format facade without crossing a worker boundary.\r\n *\r\n * @param {object} descriptor Registered format descriptor.\r\n * @param {*} input Reader input.\r\n * @param {object} formatOptions Normalized format options.\r\n * @param {object|null} context Normalized resource path context.\r\n * @returns {Promise<*>} Reader result.\r\n */\r\nfunction readFormatOnCurrentThread(\r\n descriptor,\r\n input,\r\n formatOptions = {},\r\n context = null\r\n)\r\n{\r\n const Format = descriptor?.Format;\r\n\r\n if (typeof Format !== \"function\")\r\n {\r\n throw new TypeError(\"Resource format descriptor requires a Format class.\");\r\n }\r\n if (typeof Format.readAsync === \"function\")\r\n {\r\n return Format.readAsync(input, formatOptions, context);\r\n }\r\n if (typeof Format.read === \"function\")\r\n {\r\n return Format.read(input, formatOptions, context);\r\n }\r\n\r\n const reader = new Format(formatOptions);\r\n\r\n if (typeof reader.ReadAsync === \"function\")\r\n {\r\n return reader.ReadAsync(input, formatOptions, context);\r\n }\r\n if (typeof reader.Read === \"function\")\r\n {\r\n return reader.Read(input, formatOptions, context);\r\n }\r\n\r\n throw new TypeError(`${Format.name} does not expose a read operation.`);\r\n}\r\n\r"],"names":["CjsResManMainThreadLoader","Read","source","path","options","assertResourceSource","CanReadFormat","ReadFormat","descriptor","input","formatOptions","context","readFormatOnCurrentThread","GetPendingCount","Format","TypeError","readAsync","read","reader","ReadAsync","name"],"mappings":";;AAEA;AACA;AACA;AACA;AACA;AACA;AACO,MAAMA,yBAAyB,CACtC;AACE;AACF;AACA;AACA;AACA;AACA;AACA;AACA;EACEC,IAAIA,CAACC,MAAM,EAAEC,IAAI,EAAEC,OAAO,GAAG,EAAE,EAC/B;IACEC,oBAAoB,CAACH,MAAM,CAAC;AAC5B,IAAA,OAAOA,MAAM,CAACD,IAAI,CAACE,IAAI,EAAEC,OAAO,CAAC;AACnC,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACEE,EAAAA,aAAaA,GACb;AACE,IAAA,OAAO,KAAK;AACd,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACEC,EAAAA,UAAUA,CAACC,UAAU,EAAEC,KAAK,EAAEC,aAAa,GAAG,EAAE,EAAEC,OAAO,GAAG,IAAI,EAChE;IACE,OAAOC,yBAAyB,CAACJ,UAAU,EAAEC,KAAK,EAAEC,aAAa,EAAEC,OAAO,CAAC;AAC7E,EAAA;;AAEA;AACF;AACA;AACA;AACA;AACEE,EAAAA,eAAeA,GACf;AACE,IAAA,OAAO,CAAC;AACV,EAAA;AACF;;AAEA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA;AACA,SAASD,yBAAyBA,CAChCJ,UAAU,EACVC,KAAK,EACLC,aAAa,GAAG,EAAE,EAClBC,OAAO,GAAG,IAAI,EAEhB;AACE,EAAA,MAAMG,MAAM,GAAGN,UAAU,EAAEM,MAAM;AAEjC,EAAA,IAAI,OAAOA,MAAM,KAAK,UAAU,EAChC;AACE,IAAA,MAAM,IAAIC,SAAS,CAAC,qDAAqD,CAAC;AAC5E,EAAA;AACA,EAAA,IAAI,OAAOD,MAAM,CAACE,SAAS,KAAK,UAAU,EAC1C;IACE,OAAOF,MAAM,CAACE,SAAS,CAACP,KAAK,EAAEC,aAAa,EAAEC,OAAO,CAAC;AACxD,EAAA;AACA,EAAA,IAAI,OAAOG,MAAM,CAACG,IAAI,KAAK,UAAU,EACrC;IACE,OAAOH,MAAM,CAACG,IAAI,CAACR,KAAK,EAAEC,aAAa,EAAEC,OAAO,CAAC;AACnD,EAAA;AAEA,EAAA,MAAMO,MAAM,GAAG,IAAIJ,MAAM,CAACJ,aAAa,CAAC;AAExC,EAAA,IAAI,OAAOQ,MAAM,CAACC,SAAS,KAAK,UAAU,EAC1C;IACE,OAAOD,MAAM,CAACC,SAAS,CAACV,KAAK,EAAEC,aAAa,EAAEC,OAAO,CAAC;AACxD,EAAA;AACA,EAAA,IAAI,OAAOO,MAAM,CAACjB,IAAI,KAAK,UAAU,EACrC;IACE,OAAOiB,MAAM,CAACjB,IAAI,CAACQ,KAAK,EAAEC,aAAa,EAAEC,OAAO,CAAC;AACnD,EAAA;EAEA,MAAM,IAAII,SAAS,CAAC,CAAA,EAAGD,MAAM,CAACM,IAAI,oCAAoC,CAAC;AACzE;;;;"}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Operation, Message } from './protocol.js';
|
|
1
|
+
import { assertResourceSource, Operation, Message } from './protocol.js';
|
|
2
2
|
import { CjsResManMainThreadLoader } from './CjsResManMainThreadLoader.js';
|
|
3
3
|
|
|
4
4
|
const DEFAULT_WORKER_OPTIONS = Object.freeze({
|
|
@@ -320,11 +320,6 @@ class CjsResManWorkerLoader {
|
|
|
320
320
|
this.Disable(reason);
|
|
321
321
|
}
|
|
322
322
|
}
|
|
323
|
-
function assertResourceSource(source) {
|
|
324
|
-
if (!source || typeof source !== "object" && typeof source !== "function" || typeof source.Read !== "function") {
|
|
325
|
-
throw new TypeError("Resource source must provide Read(path, options).");
|
|
326
|
-
}
|
|
327
|
-
}
|
|
328
323
|
function assertResourceLoader(loader, name = "loader") {
|
|
329
324
|
if (!loader || typeof loader.Read !== "function" || typeof loader.ReadFormat !== "function") {
|
|
330
325
|
throw new TypeError(`CjsResManWorkerLoader ${name} must provide Read and ReadFormat.`);
|
|
@@ -396,7 +391,11 @@ function canCloneWorkerValue(value, seen = new Set()) {
|
|
|
396
391
|
if (value instanceof ArrayBuffer || ArrayBuffer.isView(value) || value instanceof Date) {
|
|
397
392
|
return true;
|
|
398
393
|
}
|
|
399
|
-
|
|
394
|
+
// A REVISIT IS NOT A REFUSAL. `seen` is a visited set, never unwound, so it
|
|
395
|
+
// cannot tell a cycle from a shared subobject - and `structuredClone` handles
|
|
396
|
+
// BOTH. Returning false here rejected `{ a: shared, b: shared }`, an entirely
|
|
397
|
+
// ordinary options shape, and silently cost the worker dispatch for it.
|
|
398
|
+
if (seen.has(value)) return true;
|
|
400
399
|
seen.add(value);
|
|
401
400
|
if (Array.isArray(value)) {
|
|
402
401
|
return value.every(entry => canCloneWorkerValue(entry, seen));
|