mirror of
https://github.com/bevyengine/bevy
synced 2024-11-25 22:20:20 +00:00
let user disable feature png when using only other format (#1156)
This commit is contained in:
parent
adb249c394
commit
871b47f1c3
1 changed files with 14 additions and 2 deletions
|
@ -1,6 +1,12 @@
|
|||
#[cfg(feature = "hdr")]
|
||||
mod hdr_texture_loader;
|
||||
#[cfg(feature = "png")]
|
||||
#[cfg(any(
|
||||
feature = "png",
|
||||
feature = "dds",
|
||||
feature = "tga",
|
||||
feature = "jpeg",
|
||||
feature = "bmp"
|
||||
))]
|
||||
mod image_texture_loader;
|
||||
mod sampler_descriptor;
|
||||
#[allow(clippy::module_inception)]
|
||||
|
@ -10,7 +16,13 @@ mod texture_dimension;
|
|||
|
||||
#[cfg(feature = "hdr")]
|
||||
pub use hdr_texture_loader::*;
|
||||
#[cfg(feature = "png")]
|
||||
#[cfg(any(
|
||||
feature = "png",
|
||||
feature = "dds",
|
||||
feature = "tga",
|
||||
feature = "jpeg",
|
||||
feature = "bmp"
|
||||
))]
|
||||
pub use image_texture_loader::*;
|
||||
pub use sampler_descriptor::*;
|
||||
pub use texture::*;
|
||||
|
|
Loading…
Reference in a new issue