mirror of
https://github.com/gfx-rs/wgpu.git
synced 2024-11-22 06:44:14 +00:00
d63d367ec0
This is useful if you're using `SDL2` ```rust let canvas = window.into_canvas().build().unwrap(); let metal_layer = unsafe { sdl2::sys::SDL_RenderGetMetalLayer(canvas.raw()) }; let surface = instance.create_surface_with_metal_layer(metal_layer); ``` |
||
---|---|---|
.. | ||
src | ||
Cargo.toml |