let user disable feature png when using only other format (#1156)

This commit is contained in:
François 2020-12-28 22:31:23 +01:00 committed by GitHub
parent adb249c394
commit 871b47f1c3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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::*;