diff --git a/Package.swift b/Package.swift index 3866cc15..2335188f 100644 --- a/Package.swift +++ b/Package.swift @@ -795,22 +795,6 @@ let package = Package( linkerSettings: getConfig(for: .openvdb).linkerSettings ), - .target( - name: "CosmoGraph", - dependencies: [ - .target(name: "Apple", condition: .when(platforms: Arch.OS.apple.platform)), - .target(name: "ImGui"), - ], - cxxSettings: [ - .define("_ALLOW_COMPILER_AND_STL_VERSION_MISMATCH", .when(platforms: [.windows])), - .define("_ALLOW_KEYWORD_MACROS", to: "1", .when(platforms: [.windows])), - .define("static_assert(_conditional, ...)", to: "", .when(platforms: [.windows])), - ], - swiftSettings: [ - .interoperabilityMode(.Cxx), - ] - ), - /* * Run this from the command line via: * @@ -872,8 +856,6 @@ func getConfig(for target: PkgTarget) -> TargetInfo switch target { - case .cosmo: - break case .draco: break case .tbbMallocProxy: @@ -1318,10 +1300,6 @@ func getConfig(for target: PkgTarget) -> TargetInfo break case .all: config.products = [ - .library( - name: "CosmoGraph", - targets: ["CosmoGraph"] - ), .library( name: "OneTBB", targets: ["OneTBB"] @@ -1836,7 +1814,6 @@ enum Arch enum PkgTarget: String { - case cosmo = "CosmoGraph" case draco = "Draco" case tbbMallocProxy = "TBBMallocProxy" case tbbMalloc = "TBBMalloc" diff --git a/Sources/CosmoGraph/.swiftformat b/Sources/CosmoGraph/.swiftformat deleted file mode 100644 index 6d2a748d..00000000 --- a/Sources/CosmoGraph/.swiftformat +++ /dev/null @@ -1,84 +0,0 @@ ---acronyms ID,URL,UUID ---allman true ---assetliterals visual-width ---asynccapturing ---beforemarks ---binarygrouping 4,8 ---categorymark "MARK: %c" ---classthreshold 0 ---closingparen balanced ---closurevoid remove ---commas always ---conflictmarkers reject ---decimalgrouping 3,6 ---elseposition same-line ---emptybraces no-space ---enumnamespaces always ---enumthreshold 0 ---exponentcase lowercase ---exponentgrouping disabled ---extensionacl on-extension ---extensionlength 0 ---extensionmark "MARK: - %t + %c" ---fractiongrouping disabled ---fragment false ---funcattributes preserve ---generictypes ---groupedextension "MARK: %c" ---guardelse auto ---header "/* ----------------------------------------------------------------\n * :: : M E T A V E R S E : ::\n * ----------------------------------------------------------------\n * This software is Licensed under the terms of the Apache License,\n * version 2.0 (the \"Apache License\") with the following additional\n * modification; you may not use this file except within compliance\n * of the Apache License and the following modification made to it.\n * Section 6. Trademarks. is deleted and replaced with:\n *\n * Trademarks. This License does not grant permission to use any of\n * its trade names, trademarks, service marks, or the product names\n * of this Licensor or its affiliates, except as required to comply\n * with Section 4(c.) of this License, and to reproduce the content\n * of the NOTICE file.\n *\n * This software is distributed in the hope that it will be useful,\n * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an\n * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR\n * PURPOSE. See the Apache License for more details.\n *\n * You should have received a copy for this software license of the\n * Apache License along with this program; or, if not, please write\n * to the Free Software Foundation Inc., with the following address\n * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.\n *\n * Copyright (C) 2024 Wabi Foundation. All Rights Reserved.\n * ----------------------------------------------------------------\n * . x x x . o o o . x x x . : : : . o x o . : : : .\n * ---------------------------------------------------------------- */" ---hexgrouping 4,8 ---hexliteralcase uppercase ---ifdef indent ---importgrouping testable-last ---indent 2 ---indentcase true ---indentstrings true ---lifecycle ---lineaftermarks true ---linebreaks lf ---markcategories true ---markextensions always ---marktypes always ---maxwidth none ---modifierorder ---nevertrailing ---nospaceoperators ---nowrapoperators ---octalgrouping 4,8 ---operatorfunc spaced ---organizetypes actor,class,enum,struct ---patternlet hoist ---ranges spaced ---redundanttype infer-locals-only ---self remove ---selfrequired ---semicolons inline ---shortoptionals always ---smarttabs enabled ---someAny true ---stripunusedargs always ---structthreshold 0 ---swiftversion 5.9 ---tabwidth unspecified ---throwcapturing ---trailingclosures ---trimwhitespace always ---typeattributes preserve ---typeblanklines remove ---typemark "MARK: - %t" ---varattributes preserve ---voidtype void ---wraparguments preserve ---wrapcollections preserve ---wrapconditions preserve ---wrapeffects preserve ---wrapenumcases always ---wrapparameters default ---wrapreturntype preserve ---wrapternary default ---wraptypealiases preserve ---xcodeindentation disabled ---yodaswap always ---disable trailingCommas ---enable blankLineAfterImports,docComments,isEmpty diff --git a/Sources/CosmoGraph/CGXCore.swift b/Sources/CosmoGraph/CGXCore.swift deleted file mode 100644 index 7e8ade6d..00000000 --- a/Sources/CosmoGraph/CGXCore.swift +++ /dev/null @@ -1,36 +0,0 @@ -/* ---------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * ---------------------------------------------------------------- - * This software is Licensed under the terms of the Apache License, - * version 2.0 (the "Apache License") with the following additional - * modification; you may not use this file except within compliance - * of the Apache License and the following modification made to it. - * Section 6. Trademarks. is deleted and replaced with: - * - * Trademarks. This License does not grant permission to use any of - * its trade names, trademarks, service marks, or the product names - * of this Licensor or its affiliates, except as required to comply - * with Section 4(c.) of this License, and to reproduce the content - * of the NOTICE file. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an - * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the Apache License for more details. - * - * You should have received a copy for this software license of the - * Apache License along with this program; or, if not, please write - * to the Free Software Foundation Inc., with the following address - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. - * ---------------------------------------------------------------- - * . x x x . o o o . x x x . : : : . o x o . : : : . - * ---------------------------------------------------------------- */ - -import Foundation - -public enum CGX -{ - static let version = "1.5.4" -} diff --git a/Sources/CosmoGraph/CosmoGraph.docc/CosmoGraph.md b/Sources/CosmoGraph/CosmoGraph.docc/CosmoGraph.md deleted file mode 100644 index 12a51cda..00000000 --- a/Sources/CosmoGraph/CosmoGraph.docc/CosmoGraph.md +++ /dev/null @@ -1,24 +0,0 @@ -# ``CosmoGraph`` - -Seamlessly create native cross-platform applications and games for **ObjCRT**, **GLibRT**, **FreeRT**, **WinRT**, and various graphics frameworks using a unified API. - -## Overview - -![CosmoGraph logo featuring the abbreviation CGX in a futuristic font, along with abstract, cosmic-inspired imagery.](cosmo) - -**CosmoGraph** is a cutting-edge, cross-platform unified API designed to simplify and streamline the development process for -native graphics applications and experiences across the **metaverse**. By bringing together native **Apple**, **Linux**, **Sony**, -**Nintendo**, and **Microsoft** operating system runtimes along with each of the native **Metal**, **Vulkan**, **DirectX**, and -**OpenGL** graphics frameworks for rapid development of high performance sofware across all major platforms. - -## Features - -- **Cross-Platform Native**: Natively integrate with **ObjCRT**, **GLibRT**, **FreeRT**, and **WinRT**. -- **Cross-Platform Graphics**: Seamlessly integrate with **Metal**, **Vulkan**, **DirectX**, and **OpenGL**. -- **High Performance**: Optimized for speed and efficiency, enabling high-fidelity graphics rendering. -- **Easy Integration**: Simplified API structure for quick implementation into existing **Swift** and **C++** projects. -- **Extensive Documentation**: Comprehensive guides and API references for easy adoption. - -## API Reference - -Detailed documentation of all classes, functions, and properties available in **CosmoGraph**. diff --git a/Sources/CosmoGraph/CosmoGraph.docc/cosmo.png b/Sources/CosmoGraph/CosmoGraph.docc/cosmo.png deleted file mode 100644 index 848dab82..00000000 Binary files a/Sources/CosmoGraph/CosmoGraph.docc/cosmo.png and /dev/null differ diff --git a/Sources/CosmoGraph/Foundation/NSString.swift b/Sources/CosmoGraph/Foundation/NSString.swift deleted file mode 100644 index 9ecfef4a..00000000 --- a/Sources/CosmoGraph/Foundation/NSString.swift +++ /dev/null @@ -1,50 +0,0 @@ -/* ---------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * ---------------------------------------------------------------- - * This software is Licensed under the terms of the Apache License, - * version 2.0 (the "Apache License") with the following additional - * modification; you may not use this file except within compliance - * of the Apache License and the following modification made to it. - * Section 6. Trademarks. is deleted and replaced with: - * - * Trademarks. This License does not grant permission to use any of - * its trade names, trademarks, service marks, or the product names - * of this Licensor or its affiliates, except as required to comply - * with Section 4(c.) of this License, and to reproduce the content - * of the NOTICE file. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an - * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the Apache License for more details. - * - * You should have received a copy for this software license of the - * Apache License along with this program; or, if not, please write - * to the Free Software Foundation Inc., with the following address - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. - * ---------------------------------------------------------------- - * . x x x . o o o . x x x . : : : . o x o . : : : . - * ---------------------------------------------------------------- */ - -#if os(macOS) || os(visionOS) || os(iOS) || os(watchOS) || os(tvOS) - - import Apple - import CxxStdlib - import Foundation - - public extension NS.String - { - private borrowing func getUtf8StringCopy() -> std.string - { - std.string(__utf8StringUnsafe()) - } - - var utf8String: std.string - { - getUtf8StringCopy() - } - } - -#endif /* os(macOS) || os(visionOS) || os(iOS) || os(watchOS) || os(tvOS) */ diff --git a/Sources/CosmoGraph/Metal/MTLArchitecture.swift b/Sources/CosmoGraph/Metal/MTLArchitecture.swift deleted file mode 100644 index 4e031739..00000000 --- a/Sources/CosmoGraph/Metal/MTLArchitecture.swift +++ /dev/null @@ -1,44 +0,0 @@ -/* ---------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * ---------------------------------------------------------------- - * This software is Licensed under the terms of the Apache License, - * version 2.0 (the "Apache License") with the following additional - * modification; you may not use this file except within compliance - * of the Apache License and the following modification made to it. - * Section 6. Trademarks. is deleted and replaced with: - * - * Trademarks. This License does not grant permission to use any of - * its trade names, trademarks, service marks, or the product names - * of this Licensor or its affiliates, except as required to comply - * with Section 4(c.) of this License, and to reproduce the content - * of the NOTICE file. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an - * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the Apache License for more details. - * - * You should have received a copy for this software license of the - * Apache License along with this program; or, if not, please write - * to the Free Software Foundation Inc., with the following address - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. - * ---------------------------------------------------------------- - * . x x x . o o o . x x x . : : : . o x o . : : : . - * ---------------------------------------------------------------- */ - -#if canImport(Metal) - - import Apple - import Foundation - - public extension MTL.Architecture - { - var gpuName: String - { - String(name().utf8String) - } - } - -#endif diff --git a/Sources/CosmoGraph/Metal/MTLDevice.swift b/Sources/CosmoGraph/Metal/MTLDevice.swift deleted file mode 100644 index ef8a958c..00000000 --- a/Sources/CosmoGraph/Metal/MTLDevice.swift +++ /dev/null @@ -1,44 +0,0 @@ -/* ---------------------------------------------------------------- - * :: : M E T A V E R S E : :: - * ---------------------------------------------------------------- - * This software is Licensed under the terms of the Apache License, - * version 2.0 (the "Apache License") with the following additional - * modification; you may not use this file except within compliance - * of the Apache License and the following modification made to it. - * Section 6. Trademarks. is deleted and replaced with: - * - * Trademarks. This License does not grant permission to use any of - * its trade names, trademarks, service marks, or the product names - * of this Licensor or its affiliates, except as required to comply - * with Section 4(c.) of this License, and to reproduce the content - * of the NOTICE file. - * - * This software is distributed in the hope that it will be useful, - * but WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND without even an - * implied warranty of MERCHANTABILITY, or FITNESS FOR A PARTICULAR - * PURPOSE. See the Apache License for more details. - * - * You should have received a copy for this software license of the - * Apache License along with this program; or, if not, please write - * to the Free Software Foundation Inc., with the following address - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA. - * - * Copyright (C) 2024 Wabi Foundation. All Rights Reserved. - * ---------------------------------------------------------------- - * . x x x . o o o . x x x . : : : . o x o . : : : . - * ---------------------------------------------------------------- */ - -#if canImport(Metal) - - import Apple - import Foundation - - public extension MTL.Device - { - var arch: String - { - architecture().gpuName - } - } - -#endif