1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Strongly-typed pipeline handles.
//!
//! Thin `Copy` wrappers around a `u32` index into the central [`PipelineCache`]
//! storage arrays. Using distinct newtypes prevents accidentally mixing up
//! render and compute pipeline handles.
//!
//! [`PipelineCache`]: super::cache::PipelineCache
/// Handle to a cached `wgpu::RenderPipeline`.
///
/// Returned by [`PipelineCache::get_or_create_render`] and friends.
/// Resolve to an actual pipeline reference via [`PipelineCache::get_render_pipeline`].
u32);
/// Handle to a cached `wgpu::ComputePipeline`.
///
/// Returned by [`PipelineCache::get_or_create_compute`].
/// Resolve to an actual pipeline reference via [`PipelineCache::get_compute_pipeline`].
u32);