Skip to content

Commit

Permalink
Fix missing hal namespce
Browse files Browse the repository at this point in the history
  • Loading branch information
Wumpf committed Jan 19, 2025
1 parent a7ec47a commit d14c3a4
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
1 change: 1 addition & 0 deletions wgpu-core/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -92,6 +92,7 @@ pub mod validation;

pub use validation::{map_storage_format_from_naga, map_storage_format_to_naga};

pub use ::hal;
pub use hal::{api, MAX_BIND_GROUPS, MAX_COLOR_ATTACHMENTS, MAX_VERTEX_BUFFERS};
pub use naga;

Expand Down
4 changes: 3 additions & 1 deletion wgpu/src/backend/wgpu_core.rs
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,9 @@ use std::{
borrow::Cow::Borrowed, error::Error, fmt, future::ready, ops::Range, pin::Pin, ptr::NonNull,
slice, sync::Arc,
};
use wgc::{command::bundle_ffi::*, error::ContextErrorSource, pipeline::CreateShaderModuleError};
use wgc::{
command::bundle_ffi::*, error::ContextErrorSource, hal, pipeline::CreateShaderModuleError,
};
use wgt::WasmNotSendSync;

#[derive(Clone)]
Expand Down
2 changes: 1 addition & 1 deletion wgpu/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -97,7 +97,7 @@ pub use ::wgc as core;
///
///
#[cfg(wgpu_core)]
pub use ::hal;
pub use ::wgc::hal;

/// Re-export of our `naga` dependency.
///
Expand Down

0 comments on commit d14c3a4

Please sign in to comment.