MTK is now a core-only Swift package for medical volume rendering. It ships:
MTKCorefor volume data, Metal rendering, presentation passes, export, and MPR/transfer-function primitives.MTKFixturesfor reusable test and rendering fixtures.
Example integrations using MTKCore. The host application UI shown is not
shipped as part of this package.
VolumeDatasetas the stable input contract- Metal-native rendering,
MTLTextureframes,PresentationPass, andMPRPresentationPass CGImageexport and snapshot/readback helpers- Transfer functions, volume pipeline helpers, and clinical geometry/picking
- Loaders and adapters that stay inside the core rendering contract
- No shipped product UI module
- No demo app
- No SwiftUI, UIKit, or AppKit product surface
- No external bridge package
dependencies: [
.package(url: "https://github.com/ThalesMMS/MTK.git", from: "1.0.0")
]Then depend on:
.product(name: "MTKCore", package: "MTK")
.product(name: "MTKFixtures", package: "MTK")The package contract ends at frames and textures:
VolumeDataset -> loader/transform -> GPU textures -> render passes ->
PresentationPass / MPRPresentationPass -> MTLTexture or explicit
CGImage export.
cd MTK && swift build
cd MTK && swift test
cd MTK && swift build -c release