Files
wgpu/examples
bors[bot]andDzmitry Malyshau aabcc44744 Merge #792
792: Use implicit layout for hello-compute r=kvark a=kvark



Co-authored-by: Dzmitry Malyshau <kvarkus@gmail.com>
2021-03-19 14:34:13 +00:00
..
2021-03-17 14:02:03 +00:00
2021-03-14 00:50:35 -05:00
2021-03-19 14:34:13 +00:00
2021-03-17 09:35:54 -04:00
2021-03-17 14:02:03 +00:00
2021-03-17 14:02:03 +00:00

Structure

For the simplest examples without using any helping code (see framework.rs here), check out:

  • hello for printing adapter information
  • hello-triangle for graphics and presentation
  • hello-compute for pure computing

Notably, capture example shows rendering without a surface/window. It reads back the contents and saves them to a file.

All framework-based examples render to the window.

Feature matrix

Feature boids cube mipmap msaa-line shadow skybox texture-arrays water conservative-raster
WGSL shaders ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐
vertex attributes ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐
instancing ⭐
lines and points ⭐ ⭐
dynamic buffer offsets ⭐
implicit layout ⭐
sampled color textures ⭐ ⭐ ⭐ ⭐ ⭐ ⭐ ⭐
storage textures ⭐
binding array ⭐
comparison samplers ⭐
subresource views ⭐ ⭐
cubemaps ⭐
multisampling ⭐
off-screen rendering ⭐ ⭐ ⭐
stencil testing
depth testing ⭐ ⭐ ⭐
depth biasing ⭐
read-only depth ⭐
blending ⭐ ⭐
render bundles ⭐ ⭐
compute passes ⭐
optional extensions ⭐
- binding indexing ⭐
- push constants ⭐
- depth clamping ⭐
- compressed textures ⭐
- polygon mode ⭐
- queries ⭐
- conservative rasterization ⭐
integrations
- staging belt
- typed arena
- obj loading ⭐

Hacking

You can record an API trace any of the framework-based examples by starting them as:

mkdir -p trace && WGPU_TRACE=trace cargo run --features trace --example <example-name>