Skip to content

Commit

Permalink
Merge pull request #489 from silvanshade/metal-example
Browse files Browse the repository at this point in the history
Metal example
  • Loading branch information
madsmtm authored Aug 28, 2023
2 parents 7959167 + 8514656 commit e962fc7
Show file tree
Hide file tree
Showing 3 changed files with 396 additions and 0 deletions.
1 change: 1 addition & 0 deletions crates/header-translator/src/output.rs
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ impl Output {
let mut macos_10_13_features: BTreeSet<String> = vec![
"unstable-frameworks-macos-10-7".into(),
"unstable-example-delegate".into(),
"unstable-example-metal".into(),
"unstable-example-nspasteboard".into(),
"unstable-example-speech_synthesis".into(),
]
Expand Down
27 changes: 27 additions & 0 deletions crates/icrate/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -78,6 +78,12 @@ required-features = [
"unstable-example-browser"
]

[[example]]
name = "metal"
required-features = [
"unstable-example-metal"
]

[features]
default = ["std", "apple"]

Expand Down Expand Up @@ -163,6 +169,26 @@ unstable-example-browser = [
"WebKit_WKNavigation",
"WebKit_WKWebView",
]
unstable-example-metal = [
"apple",
"AppKit",
"AppKit_NSWindow",
"Foundation",
"Foundation_NSCoder",
"Foundation_NSError",
"Foundation_NSNotification",
"Foundation_NSString",
"Foundation_NSDate",
"Metal",
"Metal_MTLCompileOptions",
"Metal_MTLRenderPassDescriptor",
"Metal_MTLRenderPipelineColorAttachmentDescriptor",
"Metal_MTLRenderPipelineColorAttachmentDescriptorArray",
"Metal_MTLRenderPipelineDescriptor",
"MetalKit",
"MetalKit_MTKView",
"Metal_MTLRenderPassDescriptor",
]

# Helps with CI
unstable-frameworks-all = ["unstable-frameworks-ios", "unstable-frameworks-macos-13"]
Expand Down Expand Up @@ -5285,6 +5311,7 @@ unstable-frameworks-macos-10-13 = [
"Metal_all",
"PhotoKit_all",
"unstable-example-delegate",
"unstable-example-metal",
"unstable-example-nspasteboard",
"unstable-example-speech_synthesis",
"unstable-frameworks-macos-10-7",
Expand Down
Loading

0 comments on commit e962fc7

Please sign in to comment.