Skip to content

Commit b285d3f

Browse files
Restrict several internal Naga APIs to pub(crate) (gfx-rs#8956)
1 parent 7e5f016 commit b285d3f

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

naga/src/back/glsl/features.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ bitflags::bitflags! {
6464
/// [`Module`](crate::Module)
6565
///
6666
/// Provides helper methods to check for availability and writing required extensions
67-
pub struct FeaturesManager(Features);
67+
pub(crate) struct FeaturesManager(Features);
6868

6969
impl FeaturesManager {
7070
/// Creates a new [`FeaturesManager`] instance

naga/src/front/glsl/context.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ impl ExprPos {
4545
}
4646

4747
#[derive(Debug)]
48-
pub struct Context<'a> {
48+
pub(crate) struct Context<'a> {
4949
pub expressions: Arena<Expression>,
5050
pub locals: Arena<LocalVariable>,
5151

naga/src/front/wgsl/mod.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ impl Frontend {
4646
options: Options::new(),
4747
}
4848
}
49+
4950
pub const fn new_with_options(options: Options) -> Self {
5051
Self {
5152
parser: Parser::new(),

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ use alloc::boxed::Box;
99

1010
/// Tracks the status of every enable-extension known to Naga.
1111
#[derive(Clone, Copy, Debug, Eq, PartialEq)]
12-
pub struct EnableExtensions {
12+
pub(crate) struct EnableExtensions {
1313
wgpu_mesh_shader: bool,
1414
wgpu_ray_query: bool,
1515
wgpu_ray_query_vertex_return: bool,

0 commit comments

Comments
 (0)