bevy/crates/bevy_render/src/texture
Carter Anderson 134750d18e
Image Sampler Improvements (#10254)
# Objective

- Build on the changes in https://github.com/bevyengine/bevy/pull/9982
- Use `ImageSamplerDescriptor` as the "public image sampler descriptor"
interface in all places (for consistency)
- Make it possible to configure textures to use the "default" sampler
(as configured in the `DefaultImageSampler` resource)
- Fix a bug introduced in #9982 that prevents configured samplers from
being used in Basis, KTX2, and DDS textures

---

## Migration Guide

- When using the `Image` API, use `ImageSamplerDescriptor` instead of
`wgpu::SamplerDescriptor`
- If writing custom wgpu renderer features that work with `Image`, call
`&image_sampler.as_wgpu()` to convert to a wgpu descriptor.
2023-10-26 23:30:09 +00:00
..
basis.rs Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
compressed_image_saver.rs Image Sampler Improvements (#10254) 2023-10-26 23:30:09 +00:00
dds.rs Detect cubemap for dds textures (#10222) 2023-10-21 19:10:37 +00:00
exr_texture_loader.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
fallback_image.rs Image Sampler Improvements (#10254) 2023-10-26 23:30:09 +00:00
hdr_texture_loader.rs Removed anyhow (#10003) 2023-10-06 07:20:13 +00:00
image_loader.rs Image Sampler Improvements (#10254) 2023-10-26 23:30:09 +00:00
image_texture_conversion.rs Replace all usages of texture_descritor.size.* with the helper methods (#10227) 2023-10-23 20:49:02 +00:00
image.rs Image Sampler Improvements (#10254) 2023-10-26 23:30:09 +00:00
ktx2.rs ktx2: Fix Rgb8 -> Rgba8Unorm conversion (#9555) 2023-08-24 00:35:52 +00:00
mod.rs Image Sampler Improvements (#10254) 2023-10-26 23:30:09 +00:00
texture_cache.rs Make Resource trait opt-in, requiring #[derive(Resource)] V2 (#5577) 2022-08-08 21:36:35 +00:00