mirror of
https://github.com/gfx-rs/wgpu.git
synced 2026-04-22 03:02:01 -04:00
dcd28b42f6a9178ad6d8274b6ce68891bf78de27
25: Add MSAA example r=kvark a=rukai This example is the same as the triangle example except: * The render pipeline is created with a sample_count of 4 * A new texture with a sample_count of 4 is created and set as the color_attachment instead of the swapchain * The swapchain is now specified as a resolve_target It doesn't work yet as wgpu-native doesn't handle MSAA yet. Co-authored-by: Rukai <rubickent@gmail.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.
Friends
Shout out to the following projects that work best with wgpu-rs:
- wgpu_glyph - for your text-y rendering needs
- coffee - a whole 2D engine
- imgui-wgpu - Dear ImGui interfacing
Description
Languages
Rust
79.9%
WGSL
16.2%
HLSL
2%
GLSL
1.7%
JavaScript
0.2%





