Comments (7)
@MarijnS95 oh, I'm sorry, I meant this https://github.com/rust-skia/rust-skia/blob/master/skia-safe/examples/metal-window/main.rs
from metal-rs.
You have to use the raw-window-handle
implementation to get the ns_view
pointer
from metal-rs.
You have to use the
raw-window-handle
implementation to get thens_view
pointer
I noticed that the logs for the release version of winit have instructions for using raw_window_handle. But I didn't find any example or description of winit with raw_window_handle.
from metal-rs.
You might want to look at https://github.com/norse-rs/raw-window-metal which takes care of part of the conversion :)
from metal-rs.
@Kaifuny, there is an example of using raw window handle 0.6 with latest winit 0.29 by skia-safe
from metal-rs.
@Rottenfront that link points to the main repo here which is still on Winit 0.27. Did you mean to point to a fork?
from metal-rs.
Nice, yeah part of that is what raw-window-metal
abstracts away for you (though not by using the metal-rs
type yet).
from metal-rs.
Related Issues (20)
- trouble with xcode shader debugger locating source code HOT 1
- Question about mesh shaders HOT 3
- Updating version on crates.io HOT 3
- Can't create indirect command buffers
- `new_render_command_encoder` assumes the return value can never be NULL
- MPS Matrix Multiplication HOT 2
- UB in `new_texture` if `newTextureWithDescriptor` fails? HOT 3
- Kernel stops running when I click on another window. HOT 1
- Inconsistent Performance across runs HOT 4
- Discrepency between GPU timing and CPU timing HOT 3
- How does one launch a 2D grid of threads using dispatch_threads? HOT 1
- Metal Compiler header file caching HOT 2
- raytracing example bugg HOT 1
- new_library_with_data is broken HOT 1
- Is this crate umaintained? HOT 2
- Raytracing example crash in autorelease
- Dropping InstanceAccelerationStructureDescriptor causes a segfault in autoreleasepool HOT 2
- Missing functions HOT 1
- Need support to set dispatch type for `MTLComputePassDescriptor` HOT 1
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.