Skip to content

Commit

Permalink
Ported to Swift, doesn't yet pass smoke test
Browse files Browse the repository at this point in the history
  • Loading branch information
SaganRitual committed May 9, 2020
1 parent 297ef78 commit 27b7865
Show file tree
Hide file tree
Showing 14 changed files with 1,549 additions and 84 deletions.
86 changes: 77 additions & 9 deletions Foil.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -7,27 +7,49 @@
objects = {

/* Begin PBXBuildFile section */
D42B958B24648E2900F4B5B0 /* FoilShaders.metal in Sources */ = {isa = PBXBuildFile; fileRef = D42B958A24648E2900F4B5B0 /* FoilShaders.metal */; };
D462CC9B2464920600D79B48 /* FoilShaderTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = D462CC9A2464920600D79B48 /* FoilShaderTypes.swift */; };
D462CC9D2466652400D79B48 /* LikeObjcSync.swift in Sources */ = {isa = PBXBuildFile; fileRef = D462CC9C2466652400D79B48 /* LikeObjcSync.swift */; };
D4AC68B8245CF43F00917569 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AC68B7245CF43F00917569 /* AppDelegate.swift */; };
D4AC68BA245CF43F00917569 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AC68B9245CF43F00917569 /* ViewController.swift */; };
D4AC68BA245CF43F00917569 /* FoilViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AC68B9245CF43F00917569 /* FoilViewController.swift */; };
D4AC68BC245CF44000917569 /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = D4AC68BB245CF44000917569 /* Assets.xcassets */; };
D4AC68BF245CF44000917569 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = D4AC68BD245CF44000917569 /* Main.storyboard */; };
D4AC68C9245CF57A00917569 /* FoilRenderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4AC68C8245CF57A00917569 /* FoilRenderer.swift */; };
D4BE16FA2463D7390085FD3C /* MetalKit.framework in Frameworks */ = {isa = PBXBuildFile; fileRef = D4BE16F92463D7390085FD3C /* MetalKit.framework */; };
D4BE16FE2463F0E10085FD3C /* FoilKernels.metal in Sources */ = {isa = PBXBuildFile; fileRef = D4BE16FD2463F0E10085FD3C /* FoilKernels.metal */; };
D4BE17002463F23C0085FD3C /* FoilKernelTypes.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4BE16FF2463F23C0085FD3C /* FoilKernelTypes.swift */; };
D4F680AC245FACB3000B8EF2 /* FoilSimulation.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4F680AB245FACB3000B8EF2 /* FoilSimulation.swift */; };
D4F680B02460A5E7000B8EF2 /* FoilKernelTypes.h in Sources */ = {isa = PBXBuildFile; fileRef = D4F680AF2460A5E7000B8EF2 /* FoilKernelTypes.h */; };
D4F680BE24639638000B8EF2 /* FoilMathUtilities.swift in Sources */ = {isa = PBXBuildFile; fileRef = D4F680BD24639638000B8EF2 /* FoilMathUtilities.swift */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
D42B958A24648E2900F4B5B0 /* FoilShaders.metal */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.metal; path = FoilShaders.metal; sourceTree = "<group>"; };
D42B958C24648EDE00F4B5B0 /* FoilShaderTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FoilShaderTypes.h; sourceTree = "<group>"; };
D462CC9A2464920600D79B48 /* FoilShaderTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilShaderTypes.swift; sourceTree = "<group>"; };
D462CC9C2466652400D79B48 /* LikeObjcSync.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = LikeObjcSync.swift; sourceTree = "<group>"; };
D4AC68B4245CF43F00917569 /* Foil.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = Foil.app; sourceTree = BUILT_PRODUCTS_DIR; };
D4AC68B7245CF43F00917569 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
D4AC68B9245CF43F00917569 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
D4AC68B9245CF43F00917569 /* FoilViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilViewController.swift; sourceTree = "<group>"; };
D4AC68BB245CF44000917569 /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
D4AC68BE245CF44000917569 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
D4AC68C0245CF44000917569 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
D4AC68C1245CF44000917569 /* Foil.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = Foil.entitlements; sourceTree = "<group>"; };
D4AC68C8245CF57A00917569 /* FoilRenderer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilRenderer.swift; sourceTree = "<group>"; };
D4BE16F92463D7390085FD3C /* MetalKit.framework */ = {isa = PBXFileReference; lastKnownFileType = wrapper.framework; name = MetalKit.framework; path = System/Library/Frameworks/MetalKit.framework; sourceTree = SDKROOT; };
D4BE16FD2463F0E10085FD3C /* FoilKernels.metal */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.metal; path = FoilKernels.metal; sourceTree = "<group>"; };
D4BE16FF2463F23C0085FD3C /* FoilKernelTypes.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilKernelTypes.swift; sourceTree = "<group>"; };
D4F680AB245FACB3000B8EF2 /* FoilSimulation.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilSimulation.swift; sourceTree = "<group>"; };
D4F680AF2460A5E7000B8EF2 /* FoilKernelTypes.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; path = FoilKernelTypes.h; sourceTree = "<group>"; };
D4F680BD24639638000B8EF2 /* FoilMathUtilities.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = FoilMathUtilities.swift; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
D4AC68B1245CF43F00917569 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
D4BE16FA2463D7390085FD3C /* MetalKit.framework in Frameworks */,
);
runOnlyForDeploymentPostprocessing = 0;
};
Expand All @@ -38,7 +60,10 @@
isa = PBXGroup;
children = (
D4AC68B6245CF43F00917569 /* Foil */,
D4AC68C7245CF56900917569 /* Renderer */,
D4F680AA245FACA4000B8EF2 /* Simulation */,
D4AC68B5245CF43F00917569 /* Products */,
D4BE16F82463D7390085FD3C /* Frameworks */,
);
sourceTree = "<group>";
};
Expand All @@ -53,16 +78,48 @@
D4AC68B6245CF43F00917569 /* Foil */ = {
isa = PBXGroup;
children = (
D4AC68B7245CF43F00917569 /* AppDelegate.swift */,
D4AC68B9245CF43F00917569 /* ViewController.swift */,
D4AC68BB245CF44000917569 /* Assets.xcassets */,
D4AC68BD245CF44000917569 /* Main.storyboard */,
D4AC68C0245CF44000917569 /* Info.plist */,
D4AC68B7245CF43F00917569 /* AppDelegate.swift */,
D4AC68C1245CF44000917569 /* Foil.entitlements */,
D4AC68B9245CF43F00917569 /* FoilViewController.swift */,
D4AC68C0245CF44000917569 /* Info.plist */,
D462CC9C2466652400D79B48 /* LikeObjcSync.swift */,
D4AC68BD245CF44000917569 /* Main.storyboard */,
);
path = Foil;
sourceTree = "<group>";
};
D4AC68C7245CF56900917569 /* Renderer */ = {
isa = PBXGroup;
children = (
D4F680BD24639638000B8EF2 /* FoilMathUtilities.swift */,
D4AC68C8245CF57A00917569 /* FoilRenderer.swift */,
D42B958A24648E2900F4B5B0 /* FoilShaders.metal */,
D42B958C24648EDE00F4B5B0 /* FoilShaderTypes.h */,
D462CC9A2464920600D79B48 /* FoilShaderTypes.swift */,
);
path = Renderer;
sourceTree = "<group>";
};
D4BE16F82463D7390085FD3C /* Frameworks */ = {
isa = PBXGroup;
children = (
D4BE16F92463D7390085FD3C /* MetalKit.framework */,
);
name = Frameworks;
sourceTree = "<group>";
};
D4F680AA245FACA4000B8EF2 /* Simulation */ = {
isa = PBXGroup;
children = (
D4BE16FD2463F0E10085FD3C /* FoilKernels.metal */,
D4F680AF2460A5E7000B8EF2 /* FoilKernelTypes.h */,
D4BE16FF2463F23C0085FD3C /* FoilKernelTypes.swift */,
D4F680AB245FACB3000B8EF2 /* FoilSimulation.swift */,
);
path = Simulation;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
Expand Down Expand Up @@ -133,7 +190,16 @@
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
D4AC68BA245CF43F00917569 /* ViewController.swift in Sources */,
D4BE16FE2463F0E10085FD3C /* FoilKernels.metal in Sources */,
D4AC68C9245CF57A00917569 /* FoilRenderer.swift in Sources */,
D462CC9D2466652400D79B48 /* LikeObjcSync.swift in Sources */,
D4AC68BA245CF43F00917569 /* FoilViewController.swift in Sources */,
D4F680B02460A5E7000B8EF2 /* FoilKernelTypes.h in Sources */,
D42B958B24648E2900F4B5B0 /* FoilShaders.metal in Sources */,
D4BE17002463F23C0085FD3C /* FoilKernelTypes.swift in Sources */,
D4F680AC245FACB3000B8EF2 /* FoilSimulation.swift in Sources */,
D4F680BE24639638000B8EF2 /* FoilMathUtilities.swift in Sources */,
D462CC9B2464920600D79B48 /* FoilShaderTypes.swift in Sources */,
D4AC68B8245CF43F00917569 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
Expand Down Expand Up @@ -206,9 +272,10 @@
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SDKROOT = "";
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
};
name = Debug;
};
Expand Down Expand Up @@ -259,9 +326,10 @@
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SDKROOT = "";
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
SWIFT_TREAT_WARNINGS_AS_ERRORS = YES;
};
name = Release;
};
Expand Down
Loading

0 comments on commit 27b7865

Please sign in to comment.