Comments (7)
@GopherJ not yet, we might experiment with the first approach above (i.e. using weak_framework
and a helper function to check if it's loaded)
from metal-rs.
If it's possible, would it make sense to use weak_framework
here, and expose a helper function to check if Metal is available?
we load symbols when metal-rs objects are created (or some kind of a Metal context is initialized) instead of dynamically checking for symbols on each and every call
If we want to use libloading for this, how should this work? Would we internally share a map of function pointers?
from metal-rs.
Hi, any news on this?
from metal-rs.
@grovesNL ok thanks take your time and ping me if it's resolved, I'll be excited to test again.
from metal-rs.
Would #[link(name = "Metal", kind = "weak_framework")]
work?
from metal-rs.
Yeah I think something like that should work – just need to test it out
from metal-rs.
Update: I asked on the Rust Zulip and Discourse (https://users.rust-lang.org/t/how-to-use-weak-linking-on-macos-link-with-weak-framework/50732) but had no response yet
from metal-rs.
Related Issues (20)
- Derive PartialEq on MTlScissorRect
- Naming conventions HOT 5
- [MTLIGRenderPipelineState setLabel:]: unrecognized selector sent to instance
- fatal assert when calling ArgumentDescriptor::set_access HOT 2
- Document function availability on platforms
- Publishing new version HOT 2
- Debug groups and signposts on render passes
- `MTLPixelFormat` and related enumeration types are unsound? HOT 1
- Don't use auto-release pool in string-related methods
- Using metal-cpp for auto-generating bindings HOT 2
- Investigate use of objc_retainAutoreleasedReturnValue HOT 6
- Make auto-release pools visible HOT 1
- Different behaviour using Metal with Swift in Xcode vs Rust HOT 2
- Incorrect buffer value in compute example HOT 2
- Export MTLAccelerationStructure
- computation performs slower than cpu version in benchmark HOT 3
- Including `metal-rs` on `cargo.toml` results in a compile error due to `cocoa` HOT 1
- trouble with xcode shader debugger locating source code HOT 1
- Question about mesh shaders HOT 3
- Updating version on crates.io HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metal-rs.