mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
a4ad7ae6ff2fc42396b802968dcc95bbf0612235
21: Add native surface creation r=kvark a=grovesNL - (API change) Rename `create_surface_with_metal_layer` to `create_surface_from_macos_layer` to match wgpu-native - Expose `create_surface_from_xlib` and `create_surface_from_windows_hwnd` Co-authored-by: Joshua Groves <josh@joshgroves.com>
wgpu-rs
This is an idiomatic Rust wrapper over wgpu-native. It's designed to be suitable for general purpose graphics and computation needs of Rust community. It currently only works for the native platform, in the future aims to support WASM/Emscripten platforms as well.
Gallery
Usage
The library requires one of the following features enabled in order to run any of the examples:
- "vulkan"
- "metal"
- "dx12"
- "dx11"
These examples assume that necessary dependencies for the graphics backend are already installed. For more information about installation and usage, refer to the Getting Started gfx-rs guide.
Description
Languages
Rust
79.9%
WGSL
16.2%
HLSL
2%
GLSL
1.7%
JavaScript
0.2%




