Merge f4aa48a11b
into f964ee1e3a
This commit is contained in:
commit
829b6d275c
@ -368,6 +368,9 @@ ico = ["bevy_internal/ico"]
|
|||||||
# JPEG image format support
|
# JPEG image format support
|
||||||
jpeg = ["bevy_internal/jpeg"]
|
jpeg = ["bevy_internal/jpeg"]
|
||||||
|
|
||||||
|
# PCX image format support
|
||||||
|
pcx = ["bevy_internal/pcx"]
|
||||||
|
|
||||||
# PNG image format support
|
# PNG image format support
|
||||||
png = ["bevy_internal/png"]
|
png = ["bevy_internal/png"]
|
||||||
|
|
||||||
|
@ -26,6 +26,7 @@ hdr = ["image/hdr"]
|
|||||||
ktx2 = ["dep:ktx2"]
|
ktx2 = ["dep:ktx2"]
|
||||||
ico = ["image/ico"]
|
ico = ["image/ico"]
|
||||||
jpeg = ["image/jpeg"]
|
jpeg = ["image/jpeg"]
|
||||||
|
pcx = ["image/pcx"]
|
||||||
png = ["image/png"]
|
png = ["image/png"]
|
||||||
pnm = ["image/pnm"]
|
pnm = ["image/pnm"]
|
||||||
qoi = ["image/qoi"]
|
qoi = ["image/qoi"]
|
||||||
@ -65,7 +66,7 @@ bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-fea
|
|||||||
] }
|
] }
|
||||||
|
|
||||||
# rendering
|
# rendering
|
||||||
image = { version = "0.25.2", default-features = false }
|
image = { version = "*", git = "https://github.com/image-rs/image.git", default-features = false }
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
bitflags = { version = "2.3", features = ["serde"] }
|
bitflags = { version = "2.3", features = ["serde"] }
|
||||||
|
@ -60,6 +60,8 @@ pub enum ImageFormat {
|
|||||||
Jpeg,
|
Jpeg,
|
||||||
#[cfg(feature = "ktx2")]
|
#[cfg(feature = "ktx2")]
|
||||||
Ktx2,
|
Ktx2,
|
||||||
|
#[cfg(feature = "pcx")]
|
||||||
|
Pcx,
|
||||||
#[cfg(feature = "png")]
|
#[cfg(feature = "png")]
|
||||||
Png,
|
Png,
|
||||||
#[cfg(feature = "pnm")]
|
#[cfg(feature = "pnm")]
|
||||||
@ -110,10 +112,12 @@ impl ImageFormat {
|
|||||||
ImageFormat::Jpeg => &["jpg", "jpeg"],
|
ImageFormat::Jpeg => &["jpg", "jpeg"],
|
||||||
#[cfg(feature = "ktx2")]
|
#[cfg(feature = "ktx2")]
|
||||||
ImageFormat::Ktx2 => &["ktx2"],
|
ImageFormat::Ktx2 => &["ktx2"],
|
||||||
#[cfg(feature = "pnm")]
|
#[cfg(feature = "pcx")]
|
||||||
ImageFormat::Pnm => &["pam", "pbm", "pgm", "ppm"],
|
ImageFormat::Pcx => &["pcx"],
|
||||||
#[cfg(feature = "png")]
|
#[cfg(feature = "png")]
|
||||||
ImageFormat::Png => &["png"],
|
ImageFormat::Png => &["png"],
|
||||||
|
#[cfg(feature = "pnm")]
|
||||||
|
ImageFormat::Pnm => &["pam", "pbm", "pgm", "ppm"],
|
||||||
#[cfg(feature = "qoi")]
|
#[cfg(feature = "qoi")]
|
||||||
ImageFormat::Qoi => &["qoi"],
|
ImageFormat::Qoi => &["qoi"],
|
||||||
#[cfg(feature = "tga")]
|
#[cfg(feature = "tga")]
|
||||||
@ -158,6 +162,8 @@ impl ImageFormat {
|
|||||||
ImageFormat::Jpeg => &["image/jpeg"],
|
ImageFormat::Jpeg => &["image/jpeg"],
|
||||||
#[cfg(feature = "ktx2")]
|
#[cfg(feature = "ktx2")]
|
||||||
ImageFormat::Ktx2 => &["image/ktx2"],
|
ImageFormat::Ktx2 => &["image/ktx2"],
|
||||||
|
#[cfg(feature = "pcx")]
|
||||||
|
ImageFormat::Pcx => &["image/vnd.zbrush.pcx", "image/x-pcx"],
|
||||||
#[cfg(feature = "png")]
|
#[cfg(feature = "png")]
|
||||||
ImageFormat::Png => &["image/png"],
|
ImageFormat::Png => &["image/png"],
|
||||||
#[cfg(feature = "qoi")]
|
#[cfg(feature = "qoi")]
|
||||||
@ -209,6 +215,7 @@ impl ImageFormat {
|
|||||||
"image/x-icon" => feature_gate!("ico", Ico),
|
"image/x-icon" => feature_gate!("ico", Ico),
|
||||||
"image/jpeg" => feature_gate!("jpeg", Jpeg),
|
"image/jpeg" => feature_gate!("jpeg", Jpeg),
|
||||||
"image/ktx2" => feature_gate!("ktx2", Ktx2),
|
"image/ktx2" => feature_gate!("ktx2", Ktx2),
|
||||||
|
"image/vnd.zbrush.pcx" | "image/x-pcx" => feature_gate!("pcx", Pcx),
|
||||||
"image/png" => feature_gate!("png", Png),
|
"image/png" => feature_gate!("png", Png),
|
||||||
"image/qoi" | "image/x-qoi" => feature_gate!("qoi", Qoi),
|
"image/qoi" | "image/x-qoi" => feature_gate!("qoi", Qoi),
|
||||||
"image/x-exr" => feature_gate!("exr", OpenExr),
|
"image/x-exr" => feature_gate!("exr", OpenExr),
|
||||||
@ -244,6 +251,7 @@ impl ImageFormat {
|
|||||||
"jpg" | "jpeg" => feature_gate!("jpeg", Jpeg),
|
"jpg" | "jpeg" => feature_gate!("jpeg", Jpeg),
|
||||||
"ktx2" => feature_gate!("ktx2", Ktx2),
|
"ktx2" => feature_gate!("ktx2", Ktx2),
|
||||||
"pam" | "pbm" | "pgm" | "ppm" => feature_gate!("pnm", Pnm),
|
"pam" | "pbm" | "pgm" | "ppm" => feature_gate!("pnm", Pnm),
|
||||||
|
"pcx" => feature_gate!("pcx", Pcx),
|
||||||
"png" => feature_gate!("png", Png),
|
"png" => feature_gate!("png", Png),
|
||||||
"qoi" => feature_gate!("qoi", Qoi),
|
"qoi" => feature_gate!("qoi", Qoi),
|
||||||
"tga" => feature_gate!("tga", Tga),
|
"tga" => feature_gate!("tga", Tga),
|
||||||
@ -279,6 +287,8 @@ impl ImageFormat {
|
|||||||
ImageFormat::Ico => image::ImageFormat::Ico,
|
ImageFormat::Ico => image::ImageFormat::Ico,
|
||||||
#[cfg(feature = "jpeg")]
|
#[cfg(feature = "jpeg")]
|
||||||
ImageFormat::Jpeg => image::ImageFormat::Jpeg,
|
ImageFormat::Jpeg => image::ImageFormat::Jpeg,
|
||||||
|
#[cfg(feature = "pcx")]
|
||||||
|
ImageFormat::Pcx => image::ImageFormat::Pcx,
|
||||||
#[cfg(feature = "png")]
|
#[cfg(feature = "png")]
|
||||||
ImageFormat::Png => image::ImageFormat::Png,
|
ImageFormat::Png => image::ImageFormat::Png,
|
||||||
#[cfg(feature = "pnm")]
|
#[cfg(feature = "pnm")]
|
||||||
@ -326,6 +336,7 @@ impl ImageFormat {
|
|||||||
image::ImageFormat::Hdr => feature_gate!("hdr", Hdr),
|
image::ImageFormat::Hdr => feature_gate!("hdr", Hdr),
|
||||||
image::ImageFormat::Ico => feature_gate!("ico", Ico),
|
image::ImageFormat::Ico => feature_gate!("ico", Ico),
|
||||||
image::ImageFormat::Jpeg => feature_gate!("jpeg", Jpeg),
|
image::ImageFormat::Jpeg => feature_gate!("jpeg", Jpeg),
|
||||||
|
image::ImageFormat::Pcx => feature_gate!("pcx", Pcx),
|
||||||
image::ImageFormat::Png => feature_gate!("png", Png),
|
image::ImageFormat::Png => feature_gate!("png", Png),
|
||||||
image::ImageFormat::Pnm => feature_gate!("pnm", Pnm),
|
image::ImageFormat::Pnm => feature_gate!("pnm", Pnm),
|
||||||
image::ImageFormat::Qoi => feature_gate!("qoi", Qoi),
|
image::ImageFormat::Qoi => feature_gate!("qoi", Qoi),
|
||||||
|
@ -30,6 +30,8 @@ impl ImageLoader {
|
|||||||
ImageFormat::Jpeg,
|
ImageFormat::Jpeg,
|
||||||
#[cfg(feature = "ktx2")]
|
#[cfg(feature = "ktx2")]
|
||||||
ImageFormat::Ktx2,
|
ImageFormat::Ktx2,
|
||||||
|
#[cfg(feature = "pcx")]
|
||||||
|
ImageFormat::Pcx,
|
||||||
#[cfg(feature = "png")]
|
#[cfg(feature = "png")]
|
||||||
ImageFormat::Png,
|
ImageFormat::Png,
|
||||||
#[cfg(feature = "pnm")]
|
#[cfg(feature = "pnm")]
|
||||||
|
@ -52,6 +52,7 @@ ff = ["bevy_image/ff"]
|
|||||||
gif = ["bevy_image/gif"]
|
gif = ["bevy_image/gif"]
|
||||||
ico = ["bevy_image/ico"]
|
ico = ["bevy_image/ico"]
|
||||||
jpeg = ["bevy_image/jpeg"]
|
jpeg = ["bevy_image/jpeg"]
|
||||||
|
pcx = ["bevy_image/pcx"]
|
||||||
png = ["bevy_image/png"]
|
png = ["bevy_image/png"]
|
||||||
pnm = ["bevy_image/pnm"]
|
pnm = ["bevy_image/pnm"]
|
||||||
qoi = ["bevy_image/qoi"]
|
qoi = ["bevy_image/qoi"]
|
||||||
|
@ -84,7 +84,7 @@ bevy_platform = { path = "../bevy_platform", version = "0.17.0-dev", default-fea
|
|||||||
] }
|
] }
|
||||||
|
|
||||||
# rendering
|
# rendering
|
||||||
image = { version = "0.25.2", default-features = false }
|
image = { version = "*", git = "https://github.com/image-rs/image.git", default-features = false }
|
||||||
|
|
||||||
# misc
|
# misc
|
||||||
codespan-reporting = "0.12.0"
|
codespan-reporting = "0.12.0"
|
||||||
|
@ -106,6 +106,7 @@ The default feature set enables most of the expected features of a game engine,
|
|||||||
|pbr_multi_layer_material_textures|Enable support for multi-layer material textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
|pbr_multi_layer_material_textures|Enable support for multi-layer material textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
||||||
|pbr_specular_textures|Enable support for specular textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
|pbr_specular_textures|Enable support for specular textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
||||||
|pbr_transmission_textures|Enable support for transmission-related textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
|pbr_transmission_textures|Enable support for transmission-related textures in the `StandardMaterial`, at the risk of blowing past the global, per-shader texture limit on older/lower-end GPUs|
|
||||||
|
|pcx|PCX image format support|
|
||||||
|pnm|PNM image format support, includes pam, pbm, pgm and ppm|
|
|pnm|PNM image format support, includes pam, pbm, pgm and ppm|
|
||||||
|qoi|QOI image format support|
|
|qoi|QOI image format support|
|
||||||
|reflect_documentation|Enable documentation reflection|
|
|reflect_documentation|Enable documentation reflection|
|
||||||
|
Loading…
Reference in New Issue
Block a user