Crate wgpu_examples

Crate wgpu_examples 

Source

Modules§

big_compute_buffers
This example shows you a potential course for when your ‘data’ is too large for a single Buffer.
boids
bunnymark
conservative_raster
cooperative_matrix
Cooperative Matrix Multiplication Example
cube
framework
hello_synchronization
hello_triangle
hello_windows
hello_workgroups
This example assumes that you’ve seen hello-compute and or repeated-compute and thus have a general understanding of what’s going on here.
mesh_shader
mipmap
msaa_line
The parts of this example enabling MSAA are:
multiple_render_targets
multiview
Renders different content to different layers of an array texture using multiview, a feature commonly used for VR rendering.
ray_aabb_compute
ray_cube_compute
ray_cube_fragment
ray_cube_normals
ray_scene
ray_shadows
ray_traced_triangle
render_to_texture
render_with_compute
This renders to the screen with compute shaders. Note that due to limitations in Firefox, the wait will cause FPS to be capped at 10 when running on webgpu on Firefox. It is therefore not recommended to use this code, at least until https://bugzilla.mozilla.org/show_bug.cgi?id=1870699 (and possibly further work) is resolved.
repeated_compute
See hello-compute example main.rs for more details as similar items here are not explained.
shadow
skybox
srgb_blend
stencil_triangles
storage_texture
This example demonstrates the basic usage of storage textures for the purpose of creating a digital image of the Mandelbrot set (https://en.wikipedia.org/wiki/Mandelbrot_set).
texture_arrays
timestamp_queries
Sample demonstrating different kinds of gpu timestamp queries.
uniform_values
Points of interest for seeing uniforms in action:
utils
water