bevy/crates/bevy_core_pipeline/src
Kanabenki 756fb069b1
Add ImageSamplerDescriptor as an image loader setting (#9982)
Closes #9946 

# Objective

Add a new type mirroring `wgpu::SamplerDescriptor` for
`ImageLoaderSettings` to control how a loaded image should be sampled.

Fix issues with texture sampler descriptors not being set when loading
gltf texture from URI.

## Solution

Add a new `ImageSamplerDescriptor` and its affiliated types that mirrors
`wgpu::SamplerDescriptor`, use it in the image loader settings.

---

## Changelog

### Added

- Added new types `ImageSamplerDescriptor`, `ImageAddressMode`,
`ImageFilterMode`, `ImageCompareFunction` and `ImageSamplerBorderColor`
that mirrors the corresponding wgpu types.
- `ImageLoaderSettings` now carries an `ImageSamplerDescriptor` field
that will be used to determine how the loaded image is sampled, and will
be serialized as part of the image assets `.meta` files.

### Changed

- `Image::from_buffer` now takes the sampler descriptor to use as an
additional parameter.

### Fixed

- Sampler descriptors are set for gltf textures loaded from URI.
2023-10-25 01:50:20 +00:00
..
blit update shader imports (#10180) 2023-10-21 11:51:58 +00:00
bloom Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
contrast_adaptive_sharpening Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
core_2d Automatic batching/instancing of draw commands (#9685) 2023-09-21 22:12:34 +00:00
core_3d Deferred Renderer (#9258) 2023-10-12 22:10:38 +00:00
deferred Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
fullscreen_vertex_shader Bevy Asset V2 (#8624) 2023-09-07 02:07:27 +00:00
fxaa Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
prepass Deferred Renderer (#9258) 2023-10-12 22:10:38 +00:00
skybox Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
taa Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
tonemapping Add ImageSamplerDescriptor as an image loader setting (#9982) 2023-10-25 01:50:20 +00:00
upscaling Bind group entries (#9694) 2023-10-21 15:39:22 +00:00
clear_color.rs Document ClearColorConfig (#9288) 2023-07-29 22:22:49 +00:00
lib.rs Deferred Renderer (#9258) 2023-10-12 22:10:38 +00:00
msaa_writeback.rs Bind group entries (#9694) 2023-10-21 15:39:22 +00:00