Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions Sources/SWBApplePlatform/Specs/MetalCompiler.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,7 @@
Metal30,
Metal31,
Metal32,
Metal40,
);
Category = BuildOptions;
},
Expand All @@ -272,6 +273,7 @@
Metal30,
Metal31,
Metal32,
Metal40,
);
CommandLineArgs = {
UseDeploymentTarget = ( );
Expand All @@ -286,6 +288,7 @@
Metal30 = ( "-std=metal3.0", );
Metal31 = ( "-std=metal3.1", );
Metal32 = ( "-std=metal3.2", );
Metal40 = ( "-std=metal4.0", );
};
},
{
Expand Down
1 change: 1 addition & 0 deletions Sources/SWBApplePlatform/Specs/MetalLinker.xcspec
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@
Metal30 = ( "-std=metal3.0", );
Metal31 = ( "-std=metal3.1", );
Metal32 = ( "-std=metal3.2", );
Metal40 = ( "-std=metal4.0", );
};
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,8 @@
"[MTL_LANGUAGE_REVISION]-description-[Metal31]" = "Metal 3.1";
"[MTL_LANGUAGE_REVISION]-value-[Metal32]" = "Metal 3.2";
"[MTL_LANGUAGE_REVISION]-description-[Metal32]" = "Metal 3.2";
"[MTL_LANGUAGE_REVISION]-value-[Metal40]" = "Metal 4.0";
"[MTL_LANGUAGE_REVISION]-description-[Metal40]" = "Metal 4.0";

"[MTL_ENABLE_DEBUG_INFO]-name" = "Produce Debugging Information";
"[MTL_ENABLE_DEBUG_INFO]-description" = "Debugging information is required for shader debugging and profiling.";
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1567,6 +1567,7 @@ fileprivate struct BuildToolTaskConstructionTests: CoreBasedTests {
["macosx", "Metal30"] : "-std=metal3.0",
["macosx", "Metal31"] : "-std=metal3.1",
["macosx", "Metal32"] : "-std=metal3.2",
["macosx", "Metal40"] : "-std=metal4.0",

["iphoneos", "UseDeploymentTarget"] : "",
["iphoneos", "iOSMetal10"] : "-std=ios-metal1.0",
Expand All @@ -1580,6 +1581,7 @@ fileprivate struct BuildToolTaskConstructionTests: CoreBasedTests {
["iphoneos", "Metal30"] : "-std=metal3.0",
["iphoneos", "Metal31"] : "-std=metal3.1",
["iphoneos", "Metal32"] : "-std=metal3.2",
["iphoneos", "Metal40"] : "-std=metal4.0",

["appletvos", "UseDeploymentTarget"] : "",
["appletvos", "Metal11"] : "-std=ios-metal1.1",
Expand All @@ -1592,10 +1594,12 @@ fileprivate struct BuildToolTaskConstructionTests: CoreBasedTests {
["appletvos", "Metal30"] : "-std=metal3.0",
["appletvos", "Metal31"] : "-std=metal3.1",
["appletvos", "Metal32"] : "-std=metal3.2",
["appletvos", "Metal40"] : "-std=metal4.0",

["xros", "UseDeploymentTarget"] : "",
["xros", "Metal31"] : "-std=metal3.1",
["xros", "Metal32"] : "-std=metal3.2",
["xros", "Metal40"] : "-std=metal4.0",
]

for (language, expectedOption) in optionForLanguage {
Expand Down
Loading