Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Image Sampler Improvements #10254

Merged
merged 5 commits into from
Oct 26, 2023
Merged

Conversation

cart
Copy link
Member

@cart cart commented Oct 25, 2023

Objective


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.

@cart
Copy link
Member Author

cart commented Oct 25, 2023

(This should not be merged before #9982)

@alice-i-cecile alice-i-cecile added C-Bug An unexpected or incorrect behavior A-Rendering Drawing game state to the screen S-Blocked This cannot move forward until something else changes C-Usability A simple quality-of-life change that makes Bevy easier to use labels Oct 25, 2023
@cart cart added this to the 0.12 milestone Oct 25, 2023
@cart cart force-pushed the image-sampler-improvements branch from ac879b2 to 073c7be Compare October 25, 2023 20:16
@cart cart removed the S-Blocked This cannot move forward until something else changes label Oct 26, 2023
@cart cart added this pull request to the merge queue Oct 26, 2023
Merged via the queue into bevyengine:main with commit 134750d Oct 26, 2023
21 checks passed
@cart cart mentioned this pull request Oct 30, 2023
43 tasks
ameknite pushed a commit to ameknite/bevy that referenced this pull request Nov 6, 2023
# Objective

- Build on the changes in bevyengine#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 bevyengine#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.
rdrpenguin04 pushed a commit to rdrpenguin04/bevy that referenced this pull request Jan 9, 2024
# Objective

- Build on the changes in bevyengine#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 bevyengine#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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-Rendering Drawing game state to the screen C-Bug An unexpected or incorrect behavior C-Usability A simple quality-of-life change that makes Bevy easier to use
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants