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

Support for additional ImageSamplerDescriptor properties (Fixes #215) #216

Draft
wants to merge 6 commits into
base: main
Choose a base branch
from

Conversation

Tam
Copy link

@Tam Tam commented May 19, 2024

I'm not a Rust expert so there's probably a cleaner ways of doing things!

There's quite a lot of boilerplate to get internal Bevy enums working with the derive parameters and I think that could be tidied up with macros, but I figured I'd wait to see the feedback on this before working on it.

pcwalton added a commit to pcwalton/bevy_asset_loader that referenced this pull request Oct 14, 2024
This is a less ambitious version of NiklasEi#216 that should be ready to go. It
changes `#[image(sampler = linear)]` and `#[image(sampler = nearest)]`
to `#[image(sampler(filter = linear))]` and `#[image(sampler(filter =
nearest))]` respectively. The `sampler` list also supports `repeat` and
`clamp` modes. So, for example, you can write `#[image(sampler(filter =
linear, repeat)]` or `#[image(sampler(repeat))]`.

Closes NiklasEi#235.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant