| adapter.rs |
|
14322 |
62 % |
| assertions.rs |
Macros for validation internal to the wgpu.
This module defines assertion macros that respect `wgpu-type`'s
`"strict_asserts"` feature.
Because `wgpu-core`'s public APIs validate their arguments in all
types of builds, for performance, the `track` module skips some of
Rust's usual run-time checks on its internal operations in release
builds. However, some `wgpu-core` applications have a strong
preference for robustness over performance. To accommodate them,
`wgpu-core`'s `"strict_asserts"` feature enables that validation
in both debug and release builds. |
2358 |
- |
| backend.rs |
[`Backend`], [`Backends`], and backend-specific options. |
37975 |
88 % |
| binding.rs |
Bind groups and the bindings in them. |
13930 |
44 % |
| buffer.rs |
|
8030 |
38 % |
| cast_utils.rs |
|
999 |
- |
| color_gamuts.svg |
|
3174 |
- |
| counters.rs |
|
7246 |
100 % |
| device.rs |
|
4310 |
50 % |
| env.rs |
|
326 |
- |
| error.rs |
Shared types for WebGPU errors. See also:
<https://gpuweb.github.io/gpuweb/#errors-and-debugging> |
1704 |
0 % |
| features.rs |
# Features
Types identifying optional features of WebGPU and wgpu. Availability varies
by hardware and can be checked when requesting an adapter and device.
The `wgpu` Rust API always uses the `Features` bit flag type to represent a
set of features. However, the WebGPU-defined JavaScript API uses
`kebab-case` feature name strings, so some utilities are provided for
working with those names. See [`Features::as_str`] and [`<Features as
FromStr>::from_str`].
The [`bitflags`] crate names flags by stringifying the
`SCREAMING_SNAKE_CASE` identifier. These names are returned by
[`Features::iter_names`] and parsed by [`Features::from_name`].
[`bitflags`] does not currently support customized flag naming.
See <https://github.com/bitflags/bitflags/issues/470>. |
86873 |
37 % |
| instance.rs |
Types for dealing with Instances. |
16906 |
0 % |
| lib.rs |
This library describes the API surface of WebGPU that is agnostic of the backend.
This API is used for targeting both Web and Native. |
20299 |
27 % |
| limits.rs |
[`Limits`] and downlevel-related types. |
63746 |
50 % |
| math.rs |
Utility math functions. |
1172 |
- |
| origin_extent.rs |
|
5721 |
100 % |
| ray_tracing.rs |
|
8544 |
- |
| render.rs |
Types for configuring render passes and render pipelines (except for vertex attributes). |
36949 |
25 % |
| sdr_hdr_range.svg |
|
2050 |
- |
| send_sync.rs |
|
1641 |
- |
| shader.rs |
|
9286 |
0 % |
| surface.rs |
Surface presentation configuration: present modes, alpha compositing, and
color-space types (HDR and wide-gamut output).
This module is re-exported flatly from `wgpu-types`; the user-facing color
space and HDR primer lives in the `wgpu` crate's top-level docs. |
49900 |
0 % |
| texture |
|
|
19 % |
| texture.rs |
|
42045 |
56 % |
| tokens.rs |
|
3404 |
0 % |
| transfers.rs |
|
17778 |
69 % |
| vertex.rs |
Types for defining vertex attributes and their buffers. |
4258 |
0 % |
| write_only.rs |
The [`WriteOnly`] type.
This type gets its own module in order to provide an encapsulation boundary around the
substantial `unsafe` code required to implement [`WriteOnly`].
Portions of this code and documentation have been copied from the Rust standard library. |
43091 |
- |