Skip to content

Commit

Permalink
Merge pull request #8 from tomokikun/feature/filter-texture
Browse files Browse the repository at this point in the history
textureに5x5の平均化フィルタをかける
  • Loading branch information
tomokikun committed Oct 5, 2020
2 parents cde110f + 3a8fc53 commit 17a1529
Show file tree
Hide file tree
Showing 15 changed files with 1,448 additions and 0 deletions.
340 changes: 340 additions & 0 deletions FilteringWithMetal/FilteringWithMetal.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,340 @@
// !$*UTF8*$!
{
archiveVersion = 1;
classes = {
};
objectVersion = 50;
objects = {

/* Begin PBXBuildFile section */
9F72A20724C7F5AC00C7470A /* AppDelegate.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F72A20624C7F5AC00C7470A /* AppDelegate.swift */; };
9F72A20924C7F5AC00C7470A /* ViewController.swift in Sources */ = {isa = PBXBuildFile; fileRef = 9F72A20824C7F5AC00C7470A /* ViewController.swift */; };
9F72A20B24C7F5AC00C7470A /* Assets.xcassets in Resources */ = {isa = PBXBuildFile; fileRef = 9F72A20A24C7F5AC00C7470A /* Assets.xcassets */; };
9F72A20E24C7F5AC00C7470A /* Main.storyboard in Resources */ = {isa = PBXBuildFile; fileRef = 9F72A20C24C7F5AC00C7470A /* Main.storyboard */; };
9F72A21724C8005900C7470A /* Shader.metal in Sources */ = {isa = PBXBuildFile; fileRef = 9F72A21624C8005900C7470A /* Shader.metal */; };
9F72A21924C808FC00C7470A /* High Sierra.jpg in Resources */ = {isa = PBXBuildFile; fileRef = 9F72A21824C808FC00C7470A /* High Sierra.jpg */; };
/* End PBXBuildFile section */

/* Begin PBXFileReference section */
9F72A20324C7F5AB00C7470A /* FilteringWithMetal.app */ = {isa = PBXFileReference; explicitFileType = wrapper.application; includeInIndex = 0; path = FilteringWithMetal.app; sourceTree = BUILT_PRODUCTS_DIR; };
9F72A20624C7F5AC00C7470A /* AppDelegate.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = AppDelegate.swift; sourceTree = "<group>"; };
9F72A20824C7F5AC00C7470A /* ViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = ViewController.swift; sourceTree = "<group>"; };
9F72A20A24C7F5AC00C7470A /* Assets.xcassets */ = {isa = PBXFileReference; lastKnownFileType = folder.assetcatalog; path = Assets.xcassets; sourceTree = "<group>"; };
9F72A20D24C7F5AC00C7470A /* Base */ = {isa = PBXFileReference; lastKnownFileType = file.storyboard; name = Base; path = Base.lproj/Main.storyboard; sourceTree = "<group>"; };
9F72A20F24C7F5AC00C7470A /* Info.plist */ = {isa = PBXFileReference; lastKnownFileType = text.plist.xml; path = Info.plist; sourceTree = "<group>"; };
9F72A21024C7F5AC00C7470A /* FilteringWithMetal.entitlements */ = {isa = PBXFileReference; lastKnownFileType = text.plist.entitlements; path = FilteringWithMetal.entitlements; sourceTree = "<group>"; };
9F72A21624C8005900C7470A /* Shader.metal */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.metal; path = Shader.metal; sourceTree = "<group>"; };
9F72A21824C808FC00C7470A /* High Sierra.jpg */ = {isa = PBXFileReference; lastKnownFileType = image.jpeg; path = "High Sierra.jpg"; sourceTree = "<group>"; };
/* End PBXFileReference section */

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

/* Begin PBXGroup section */
9F72A1FA24C7F5AB00C7470A = {
isa = PBXGroup;
children = (
9F72A20524C7F5AB00C7470A /* FilteringWithMetal */,
9F72A20424C7F5AB00C7470A /* Products */,
);
sourceTree = "<group>";
};
9F72A20424C7F5AB00C7470A /* Products */ = {
isa = PBXGroup;
children = (
9F72A20324C7F5AB00C7470A /* FilteringWithMetal.app */,
);
name = Products;
sourceTree = "<group>";
};
9F72A20524C7F5AB00C7470A /* FilteringWithMetal */ = {
isa = PBXGroup;
children = (
9F72A20624C7F5AC00C7470A /* AppDelegate.swift */,
9F72A20824C7F5AC00C7470A /* ViewController.swift */,
9F72A21624C8005900C7470A /* Shader.metal */,
9F72A20A24C7F5AC00C7470A /* Assets.xcassets */,
9F72A20C24C7F5AC00C7470A /* Main.storyboard */,
9F72A20F24C7F5AC00C7470A /* Info.plist */,
9F72A21824C808FC00C7470A /* High Sierra.jpg */,
9F72A21024C7F5AC00C7470A /* FilteringWithMetal.entitlements */,
);
path = FilteringWithMetal;
sourceTree = "<group>";
};
/* End PBXGroup section */

/* Begin PBXNativeTarget section */
9F72A20224C7F5AB00C7470A /* FilteringWithMetal */ = {
isa = PBXNativeTarget;
buildConfigurationList = 9F72A21324C7F5AC00C7470A /* Build configuration list for PBXNativeTarget "FilteringWithMetal" */;
buildPhases = (
9F72A1FF24C7F5AB00C7470A /* Sources */,
9F72A20024C7F5AB00C7470A /* Frameworks */,
9F72A20124C7F5AB00C7470A /* Resources */,
);
buildRules = (
);
dependencies = (
);
name = FilteringWithMetal;
productName = FilteringWithMetal;
productReference = 9F72A20324C7F5AB00C7470A /* FilteringWithMetal.app */;
productType = "com.apple.product-type.application";
};
/* End PBXNativeTarget section */

/* Begin PBXProject section */
9F72A1FB24C7F5AB00C7470A /* Project object */ = {
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 1160;
LastUpgradeCheck = 1160;
ORGANIZATIONNAME = "Maekawa Tomoki";
TargetAttributes = {
9F72A20224C7F5AB00C7470A = {
CreatedOnToolsVersion = 11.6;
};
};
};
buildConfigurationList = 9F72A1FE24C7F5AB00C7470A /* Build configuration list for PBXProject "FilteringWithMetal" */;
compatibilityVersion = "Xcode 9.3";
developmentRegion = en;
hasScannedForEncodings = 0;
knownRegions = (
en,
Base,
);
mainGroup = 9F72A1FA24C7F5AB00C7470A;
productRefGroup = 9F72A20424C7F5AB00C7470A /* Products */;
projectDirPath = "";
projectRoot = "";
targets = (
9F72A20224C7F5AB00C7470A /* FilteringWithMetal */,
);
};
/* End PBXProject section */

/* Begin PBXResourcesBuildPhase section */
9F72A20124C7F5AB00C7470A /* Resources */ = {
isa = PBXResourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9F72A21924C808FC00C7470A /* High Sierra.jpg in Resources */,
9F72A20B24C7F5AC00C7470A /* Assets.xcassets in Resources */,
9F72A20E24C7F5AC00C7470A /* Main.storyboard in Resources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXResourcesBuildPhase section */

/* Begin PBXSourcesBuildPhase section */
9F72A1FF24C7F5AB00C7470A /* Sources */ = {
isa = PBXSourcesBuildPhase;
buildActionMask = 2147483647;
files = (
9F72A21724C8005900C7470A /* Shader.metal in Sources */,
9F72A20924C7F5AC00C7470A /* ViewController.swift in Sources */,
9F72A20724C7F5AC00C7470A /* AppDelegate.swift in Sources */,
);
runOnlyForDeploymentPostprocessing = 0;
};
/* End PBXSourcesBuildPhase section */

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

/* Begin XCBuildConfiguration section */
9F72A21124C7F5AC00C7470A /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_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;
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;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = INCLUDE_SOURCE;
MTL_FAST_MATH = YES;
ONLY_ACTIVE_ARCH = YES;
SDKROOT = macosx;
SWIFT_ACTIVE_COMPILATION_CONDITIONS = DEBUG;
SWIFT_OPTIMIZATION_LEVEL = "-Onone";
};
name = Debug;
};
9F72A21224C7F5AC00C7470A /* 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_ENABLE_OBJC_WEAK = YES;
CLANG_WARN_BLOCK_CAPTURE_AUTORELEASING = YES;
CLANG_WARN_BOOL_CONVERSION = YES;
CLANG_WARN_COMMA = YES;
CLANG_WARN_CONSTANT_CONVERSION = YES;
CLANG_WARN_DEPRECATED_OBJC_IMPLEMENTATIONS = 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_NON_LITERAL_NULL_CONVERSION = YES;
CLANG_WARN_OBJC_IMPLICIT_RETAIN_SELF = YES;
CLANG_WARN_OBJC_LITERAL_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;
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;
MACOSX_DEPLOYMENT_TARGET = 10.15;
MTL_ENABLE_DEBUG_INFO = NO;
MTL_FAST_MATH = YES;
SDKROOT = macosx;
SWIFT_COMPILATION_MODE = wholemodule;
SWIFT_OPTIMIZATION_LEVEL = "-O";
};
name = Release;
};
9F72A21424C7F5AC00C7470A /* Debug */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = FilteringWithMetal/FilteringWithMetal.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 7WF29S86UY;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = FilteringWithMetal/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.tomokimaekawa.FilteringWithMetal;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Debug;
};
9F72A21524C7F5AC00C7470A /* Release */ = {
isa = XCBuildConfiguration;
buildSettings = {
ASSETCATALOG_COMPILER_APPICON_NAME = AppIcon;
CODE_SIGN_ENTITLEMENTS = FilteringWithMetal/FilteringWithMetal.entitlements;
CODE_SIGN_STYLE = Automatic;
COMBINE_HIDPI_IMAGES = YES;
DEVELOPMENT_TEAM = 7WF29S86UY;
ENABLE_HARDENED_RUNTIME = YES;
INFOPLIST_FILE = FilteringWithMetal/Info.plist;
LD_RUNPATH_SEARCH_PATHS = (
"$(inherited)",
"@executable_path/../Frameworks",
);
PRODUCT_BUNDLE_IDENTIFIER = com.example.tomokimaekawa.FilteringWithMetal;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_VERSION = 5.0;
};
name = Release;
};
/* End XCBuildConfiguration section */

/* Begin XCConfigurationList section */
9F72A1FE24C7F5AB00C7470A /* Build configuration list for PBXProject "FilteringWithMetal" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9F72A21124C7F5AC00C7470A /* Debug */,
9F72A21224C7F5AC00C7470A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
9F72A21324C7F5AC00C7470A /* Build configuration list for PBXNativeTarget "FilteringWithMetal" */ = {
isa = XCConfigurationList;
buildConfigurations = (
9F72A21424C7F5AC00C7470A /* Debug */,
9F72A21524C7F5AC00C7470A /* Release */,
);
defaultConfigurationIsVisible = 0;
defaultConfigurationName = Release;
};
/* End XCConfigurationList section */
};
rootObject = 9F72A1FB24C7F5AB00C7470A /* Project object */;
}

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

Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<?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>IDEDidComputeMac32BitWarning</key>
<true/>
</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>FilteringWithMetal.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
</dict>
</dict>
</dict>
</plist>
26 changes: 26 additions & 0 deletions FilteringWithMetal/FilteringWithMetal/AppDelegate.swift
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
//
// AppDelegate.swift
// FilteringWithMetal
//
// Created by 前川 知紀 on 2020/07/22.
// Copyright © 2020 Maekawa Tomoki. All rights reserved.
//

import Cocoa

@NSApplicationMain
class AppDelegate: NSObject, NSApplicationDelegate {



func applicationDidFinishLaunching(_ aNotification: Notification) {
// Insert code here to initialize your application
}

func applicationWillTerminate(_ aNotification: Notification) {
// Insert code here to tear down your application
}


}

Loading

0 comments on commit 17a1529

Please sign in to comment.