Skip to content

Commit

Permalink
Work around cbindgen issue
Browse files Browse the repository at this point in the history
cbindgen spins out of control if wgpu_hal reexports a wgpu_types type using pub type in stead of pub use while keeping the same name.
  • Loading branch information
nical authored and teoxoy committed Dec 7, 2023
1 parent dc842ae commit ff7b2c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions wgpu-hal/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1572,8 +1572,8 @@ pub struct AccelerationStructureTriangleTransform<'a, A: Api> {
pub offset: u32,
}

pub type AccelerationStructureBuildFlags = wgt::AccelerationStructureFlags;
pub type AccelerationStructureGeometryFlags = wgt::AccelerationStructureGeometryFlags;
pub use wgt::AccelerationStructureFlags as AccelerationStructureBuildFlags;
pub use wgt::AccelerationStructureGeometryFlags;

bitflags::bitflags! {
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash)]
Expand Down

0 comments on commit ff7b2c3

Please sign in to comment.