Skip to content

Commit

Permalink
added arkit metal
Browse files Browse the repository at this point in the history
  • Loading branch information
mhorga committed Jul 29, 2017
1 parent ae2a70c commit 840c14d
Show file tree
Hide file tree
Showing 13 changed files with 883 additions and 0 deletions.
309 changes: 309 additions & 0 deletions ARKit/arkitdemo.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,309 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 48;
objects = {

/* Begin PBXBuildFile section */
3C335AC71F27D12500FF39A5 /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3C335AC61F27D12500FF39A5 /* AppDelegate.swift */; };
3C335AC91F27D12500FF39A5 /* Shaders.metal in Sources */ = {isa = PBXBuildFile; fileRef = 3C335AC81F27D12500FF39A5 /* Shaders.metal */; };
3C335ACC1F27D12500FF39A5 /* Renderer.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3C335ACB1F27D12500FF39A5 /* Renderer.swift */; };
3C335ACE1F27D12500FF39A5 /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 3C335ACD1F27D12500FF39A5 /* ViewController.swift */; };
3C335AD11F27D12500FF39A5 /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 3C335ACF1F27D12500FF39A5 /* Main.storyboard */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
3C335AC31F27D12500FF39A5 /* arkitdemo.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = arkitdemo.app; sourceTree = BUILT_PRODUCTS_DIR; };
3C335AC61F27D12500FF39A5 /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
3C335AC81F27D12500FF39A5 /* Shaders.metal */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.metal; path = Shaders.metal; sourceTree = "<group>"; };
3C335ACB1F27D12500FF39A5 /* Renderer.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = Renderer.swift; sourceTree = "<group>"; };
3C335ACD1F27D12500FF39A5 /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
3C335AD01F27D12500FF39A5 /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
3C335AD71F27D12500FF39A5 /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
/* End PBXFileReference section */

/* Begin PBXFrameworksBuildPhase section */
3C335AC01F27D12500FF39A5 /* Frameworks */ = {
isa = PBXFrameworksBuildPhase;
buildActionMask = 2147483647;
files = (
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXFrameworksBuildPhase section */

/* Begin PBXGroup section */
3C335ABA1F27D12500FF39A5 = {
isa = PBXGroup;
children = (
3C335AC51F27D12500FF39A5 /* arkitdemo */,
3C335AC41F27D12500FF39A5 /* Products */,
);
sourceTree = "<group>";
};
3C335AC41F27D12500FF39A5 /* Products */ = {
isa = PBXGroup;
children = (
3C335AC31F27D12500FF39A5 /* arkitdemo.app */,
);
name = Products;
sourceTree = "<group>";
};
3C335AC51F27D12500FF39A5 /* arkitdemo */ = {
isa = PBXGroup;
children = (
3C335AC81F27D12500FF39A5 /* Shaders.metal */,
3C335ACB1F27D12500FF39A5 /* Renderer.swift */,
3C335ACD1F27D12500FF39A5 /* ViewController.swift */,
3C335ACF1F27D12500FF39A5 /* Main.storyboard */,
3C335AD71F27D12500FF39A5 /* Info.plist */,
3C335AC61F27D12500FF39A5 /* AppDelegate.swift */,
);
path = arkitdemo;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
3C335AC21F27D12500FF39A5 /* arkitdemo */ = {
isa = PBXNativeTarget;
buildConfigurationList = 3C335ADB1F27D12500FF39A5 /* Build configuration list for PBXNativeTarget "arkitdemo" */;
buildPhases = (
3C335ABF1F27D12500FF39A5 /* Sources */,
3C335AC01F27D12500FF39A5 /* Frameworks */,
3C335AC11F27D12500FF39A5 /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = arkitdemo;
productName = arkitdemo;
productReference = 3C335AC31F27D12500FF39A5 /* arkitdemo.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
3C335ABB1F27D12500FF39A5 /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0900;
LastUpgradeCheck = 0900;
ORGANIZATIONNAME = "Marius Horga";
TargetAttributes = {
3C335AC21F27D12500FF39A5 = {
CreatedOnToolsVersion = 9.0;
};
};
};
buildConfigurationList = 3C335ABE1F27D12500FF39A5 /* Build configuration list for PBXProject "arkitdemo" */;
compatibilityVersion = "Xcode 8.0";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 3C335ABA1F27D12500FF39A5;
productRefGroup = 3C335AC41F27D12500FF39A5 /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
3C335AC21F27D12500FF39A5 /* arkitdemo */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
3C335AC11F27D12500FF39A5 /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3C335AD11F27D12500FF39A5 /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
3C335ABF1F27D12500FF39A5 /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
3C335AC91F27D12500FF39A5 /* Shaders.metal in Sources */,
3C335ACC1F27D12500FF39A5 /* Renderer.swift in Sources */,
3C335ACE1F27D12500FF39A5 /* ViewController.swift in Sources */,
3C335AC71F27D12500FF39A5 /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

/* Begin PBXVariantGroup section */
3C335ACF1F27D12500FF39A5 /* Main.storyboard */ = {
isa = PBXVariantGroup;
children = (
3C335AD01F27D12500FF39A5 /* Base */,
);
name = Main.storyboard;
sourceTree = "<group>";
};
/* End PBXVariantGroup section */

/* Begin XCBuildConfiguration section */
3C335AD91F27D12500FF39A5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = dwarf;
ENABLE_STRICT_OBJC_MSGSEND = YES;
ENABLE_TESTABILITY = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_DYNAMIC_NO_PIC = NO;
GCC_NO_COMMON_BLOCKS = YES;
GCC_OPTIMIZATION_LEVEL = 0;
GCC_PREPROCESSOR_DEFINITIONS = (
"DEBUG=1",
"$(inherited)",
);
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = iphoneos;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
3C335ADA1F27D12500FF39A5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_NONNULL = YES;
CLANG_ANALYZER_NUMBER_OBJECT_CONVERSION = YES_AGGRESSIVE;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++14";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
CLANG_ENABLE_OBJC_ARC = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DIRECT_OBJC_ISA_USAGE = YES_ERROR;
CLANG_WARN_DOCUMENTATION_COMMENTS = YES;
CLANG_WARN_EMPTY_BODY = YES;
CLANG_WARN_ENUM_CONVERSION = YES;
CLANG_WARN_INFINITE_RECURSION = YES;
CLANG_WARN_INT_CONVERSION = YES;
CLANG_WARN_OBJC_ROOT_CLASS = YES_ERROR;
CLANG_WARN_RANGE_LOOP_ANALYSIS = YES;
CLANG_WARN_STRICT_PROTOTYPES = YES;
CLANG_WARN_SUSPICIOUS_MOVE = YES;
CLANG_WARN_UNGUARDED_AVAILABILITY = YES_AGGRESSIVE;
CLANG_WARN_UNREACHABLE_CODE = YES;
CLANG_WARN__DUPLICATE_METHOD_MATCH = YES;
CODE_SIGN_IDENTITY = "iPhone Developer";
COPY_PHASE_STRIP = NO;
DEBUG_INFORMATION_FORMAT = "dwarf-with-dsym";
ENABLE_NS_ASSERTIONS = NO;
ENABLE_STRICT_OBJC_MSGSEND = YES;
GCC_C_LANGUAGE_STANDARD = gnu11;
GCC_NO_COMMON_BLOCKS = YES;
GCC_WARN_64_TO_32_BIT_CONVERSION = YES;
GCC_WARN_ABOUT_RETURN_TYPE = YES_ERROR;
GCC_WARN_UNDECLARED_SELECTOR = YES;
GCC_WARN_UNINITIALIZED_AUTOS = YES_AGGRESSIVE;
GCC_WARN_UNUSED_FUNCTION = YES;
GCC_WARN_UNUSED_VARIABLE = YES;
IPHONEOS_DEPLOYMENT_TARGET = 11.0;
MTL_ENABLE_DEBUG_INFO = NO;
SDKROOT = iphoneos;
SWIFT_OPTIMIZATION_LEVEL = "-Owholemodule";
VALIDATE_PRODUCT = YES;
};
name = Release;
};
3C335ADC1F27D12500FF39A5 /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEVELOPMENT_TEAM = C2X9Q6VFVJ;
INFOPLIST_FILE = arkitdemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = org.metalkit.arkitdemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Debug;
};
3C335ADD1F27D12500FF39A5 /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
DEVELOPMENT_TEAM = C2X9Q6VFVJ;
INFOPLIST_FILE = arkitdemo/Info.plist;
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = org.metalkit.arkitdemo;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 4.0;
TARGETED_DEVICE_FAMILY = "1,2";
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
3C335ABE1F27D12500FF39A5 /* Build configuration list for PBXProject "arkitdemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3C335AD91F27D12500FF39A5 /* Debug */,
3C335ADA1F27D12500FF39A5 /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
3C335ADB1F27D12500FF39A5 /* Build configuration list for PBXNativeTarget "arkitdemo" */ = {
isa = XCConfigurationList;
buildConfigurations = (
3C335ADC1F27D12500FF39A5 /* Debug */,
3C335ADD1F27D12500FF39A5 /* Release */,
);
defaultConfigurationIsVisible = 0;
};
/* End XCConfigurationList section */
};
rootObject = 3C335ABB1F27D12500FF39A5 /* Project object */;
}

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file not shown.
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>arkitdemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
<dict>
<key>SchemeUserState</key>
<dict>
<key>arkitdemo.xcscheme</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
7 changes: 7 additions & 0 deletions ARKit/arkitdemo/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@

import UIKit

@UIApplicationMain
class AppDelegate: UIResponder, UIApplicationDelegate {
var window: UIWindow?
}
25 changes: 25 additions & 0 deletions ARKit/arkitdemo/Base.lproj/Main.storyboard
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<document type="com.apple.InterfaceBuilder3.CocoaTouch.Storyboard.XIB" version="3.0" toolsVersion="11134" systemVersion="15F34" targetRuntime="iOS.CocoaTouch" propertyAccessControl="none" useAutolayout="YES" useTraitCollections="YES" colorMatched="YES" initialViewController="BV1-FR-VrT">
<dependencies>
<plugIn identifier="com.apple.InterfaceBuilder.IBCocoaTouchPlugin" version="11106"/>
<capability name="documents saved in the Xcode 8 format" minToolsVersion="8.0"/>
</dependencies>
<scenes>
<!--Game View Controller-->
<scene sceneID="tXr-a1-R10">
<objects>
<viewController id="BV1-FR-VrT" customClass="ViewController" customModuleProvider="target" sceneMemberID="viewController">
<layoutGuides>
<viewControllerLayoutGuide type="top" id="8aa-yV-Osq"/>
<viewControllerLayoutGuide type="bottom" id="qHh-Mt-9TT"/>
</layoutGuides>
<view key="view" opaque="NO" contentMode="scaleToFill" id="3se-qz-xqx" customClass="MTKView">
<rect key="frame" x="0.0" y="0.0" width="375" height="667"/>
<autoresizingMask key="autoresizingMask" widthSizable="YES" heightSizable="YES"/>
</view>
</viewController>
<placeholder placeholderIdentifier="IBFirstResponder" id="SZV-WD-TEh" sceneMemberID="firstResponder"/>
</objects>
</scene>
</scenes>
</document>
Loading

0 comments on commit 840c14d

Please sign in to comment.