Skip to content

Commit e962fc7

Browse files
authored
Merge pull request #489 from silvanshade/metal-example
Metal example
2 parents 7959167 + 8514656 commit e962fc7

File tree

3 files changed

+396
-0
lines changed

3 files changed

+396
-0
lines changed

crates/header-translator/src/output.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,7 @@ impl Output {
3939
let mut macos_10_13_features: BTreeSet<String> = vec![
4040
"unstable-frameworks-macos-10-7".into(),
4141
"unstable-example-delegate".into(),
42+
"unstable-example-metal".into(),
4243
"unstable-example-nspasteboard".into(),
4344
"unstable-example-speech_synthesis".into(),
4445
]

crates/icrate/Cargo.toml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,12 @@ required-features = [
7878
"unstable-example-browser"
7979
]
8080

81+
[[example]]
82+
name = "metal"
83+
required-features = [
84+
"unstable-example-metal"
85+
]
86+
8187
[features]
8288
default = ["std", "apple"]
8389

@@ -163,6 +169,26 @@ unstable-example-browser = [
163169
"WebKit_WKNavigation",
164170
"WebKit_WKWebView",
165171
]
172+
unstable-example-metal = [
173+
"apple",
174+
"AppKit",
175+
"AppKit_NSWindow",
176+
"Foundation",
177+
"Foundation_NSCoder",
178+
"Foundation_NSError",
179+
"Foundation_NSNotification",
180+
"Foundation_NSString",
181+
"Foundation_NSDate",
182+
"Metal",
183+
"Metal_MTLCompileOptions",
184+
"Metal_MTLRenderPassDescriptor",
185+
"Metal_MTLRenderPipelineColorAttachmentDescriptor",
186+
"Metal_MTLRenderPipelineColorAttachmentDescriptorArray",
187+
"Metal_MTLRenderPipelineDescriptor",
188+
"MetalKit",
189+
"MetalKit_MTKView",
190+
"Metal_MTLRenderPassDescriptor",
191+
]
166192

167193
# Helps with CI
168194
unstable-frameworks-all = ["unstable-frameworks-ios", "unstable-frameworks-macos-13"]
@@ -5285,6 +5311,7 @@ unstable-frameworks-macos-10-13 = [
52855311
"Metal_all",
52865312
"PhotoKit_all",
52875313
"unstable-example-delegate",
5314+
"unstable-example-metal",
52885315
"unstable-example-nspasteboard",
52895316
"unstable-example-speech_synthesis",
52905317
"unstable-frameworks-macos-10-7",

0 commit comments

Comments
 (0)