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

Add support for repeating texture wrap modes. #238

Merged
merged 5 commits into from
Nov 27, 2024

Conversation

pcwalton
Copy link
Contributor

This is a less ambitious version of #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 #235.

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.
@NiklasEi
Copy link
Owner

Thank you!
One of the examples isn't migrated yet and clippy is complaining at one point. If you prefer, I can take over the clean up, just say the word 🙂

@NiklasEi NiklasEi merged commit 30aaf37 into NiklasEi:main Nov 27, 2024
13 checks passed
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.

Add support for setting ImageAddressMode when loading images
2 participants