Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Metal example #489

Merged
merged 5 commits into from
Aug 28, 2023
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
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(),
silvanshade marked this conversation as resolved.
Show resolved Hide resolved
"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 = [
silvanshade marked this conversation as resolved.
Show resolved Hide resolved
"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