Made it run

This commit is contained in:
iko 2019-05-25 21:32:58 +03:00
parent 88b21444a7
commit 88193fbd39
2 changed files with 9 additions and 9 deletions

View File

@ -161,13 +161,13 @@
isa = PBXProject;
attributes = {
LastSwiftUpdateCheck = 0720;
LastUpgradeCheck = 1010;
LastUpgradeCheck = 1020;
ORGANIZATIONNAME = "Vinicius Vendramini";
TargetAttributes = {
242686831C63B72A00D62456 = {
CreatedOnToolsVersion = 7.2;
DevelopmentTeam = 8J63JZYYHZ;
LastSwiftMigration = 1010;
LastSwiftMigration = 1020;
};
};
};
@ -176,6 +176,7 @@
developmentRegion = English;
hasScannedForEncodings = 0;
knownRegions = (
English,
en,
Base,
);
@ -289,6 +290,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@ -345,6 +347,7 @@
isa = XCBuildConfiguration;
buildSettings = {
ALWAYS_SEARCH_USER_PATHS = NO;
CLANG_ANALYZER_LOCALIZABILITY_NONLOCALIZED = YES;
CLANG_CXX_LANGUAGE_STANDARD = "gnu++0x";
CLANG_CXX_LIBRARY = "libc++";
CLANG_ENABLE_MODULES = YES;
@ -401,8 +404,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vinivendra.PixelImage;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Debug;
};
@ -416,8 +418,7 @@
LD_RUNPATH_SEARCH_PATHS = "$(inherited) @executable_path/Frameworks";
PRODUCT_BUNDLE_IDENTIFIER = vinivendra.PixelImage;
PRODUCT_NAME = "$(TARGET_NAME)";
SWIFT_SWIFT3_OBJC_INFERENCE = On;
SWIFT_VERSION = 4.2;
SWIFT_VERSION = 5.0;
};
name = Release;
};

View File

@ -45,6 +45,7 @@ import ChameleonFramework
width: width,
height: height,
mipmapped: false)
textureDescriptor.usage = .shaderWrite
let texture1 =
context.device.makeTexture(descriptor: textureDescriptor)
@ -62,9 +63,7 @@ import ChameleonFramework
state = .ending
let userInteractiveQueue =
DispatchQueue.global(qos: DispatchQoS.QoSClass.userInteractive)
userInteractiveQueue.async { () -> Void in
DispatchQueue.main.async { () -> Void in
let computeContext = self.activeComputeContext
swap(&self.activeComputeContext, &self.idleComputeContext)