Skip to content

Commit 7fdd76f

Browse files
WIP: docs(wgsl-in): add text for all EnableExtensions variants
TODO: `CHANGELOG`
1 parent 2b8b5f7 commit 7fdd76f

1 file changed

Lines changed: 6 additions & 0 deletions

File tree

naga/src/front/wgsl/parse/directive/enable_extension.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,19 @@ use alloc::boxed::Box;
1010
/// Tracks the status of every enable-extension known to Naga.
1111
#[derive(Clone, Debug, Eq, PartialEq)]
1212
pub struct EnableExtensions {
13+
/// Whether `enable wgpu_mesh_shader;` was written earlier in the shader module.
1314
wgpu_mesh_shader: bool,
15+
/// Whether `enable wgpu_ray_query;` was written earlier in the shader module.
1416
wgpu_ray_query: bool,
17+
/// Whether `enable wgpu_ray_query_vertex_return;` was written earlier in the shader module.
1518
wgpu_ray_query_vertex_return: bool,
19+
/// Whether `enable dual_source_blending;` was written earlier in the shader module.
1620
dual_source_blending: bool,
1721
/// Whether `enable f16;` was written earlier in the shader module.
1822
f16: bool,
23+
/// Whether `enable clip_distances;` was written earlier in the shader module.
1924
clip_distances: bool,
25+
/// Whether `enable wgpu_cooperative_matrix;` was written earlier in the shader module.
2026
wgpu_cooperative_matrix: bool,
2127
}
2228

0 commit comments

Comments
 (0)