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

hal/gles: force unbind samplers #2226

Merged
merged 1 commit into from
Nov 29, 2021
Merged

hal/gles: force unbind samplers #2226

merged 1 commit into from
Nov 29, 2021

Conversation

kvark
Copy link
Member

@kvark kvark commented Nov 29, 2021

Connections
Discovered in vange-rs

Description
It turns out that we can't just leave the sampler object in place upon changing a texture binding. The sampler has to be compatible with the texture, or GL screams in pain, even if we don't actually sample anything.
I.e. for UINT textures, the sampler can't be linear.

Testing
Tested on vange-rs

@kvark kvark added the PR: needs back-porting PR with a fix that needs to land on crates label Nov 29, 2021
@kvark
Copy link
Member Author

kvark commented Nov 29, 2021

vangers-gles-2

@kvark kvark merged commit b32dcbb into gfx-rs:master Nov 29, 2021
@kvark kvark deleted the gl-sampler branch November 29, 2021 15:08
kvark added a commit to kvark/wgpu that referenced this pull request Dec 2, 2021
@kvark
Copy link
Member Author

kvark commented Dec 2, 2021

Published in wgpu-hal-0.11.5

@kvark kvark removed the PR: needs back-porting PR with a fix that needs to land on crates label Dec 2, 2021
kvark added a commit that referenced this pull request Dec 2, 2021
cwfitzgerald pushed a commit that referenced this pull request Oct 25, 2023
* Add countLeadingZeros

* [glsl-out] Bake countLeadingZeros

* [hlsl-out] Bake countLeadingZeros

* [hlsl-out] Update Baked expressions

* Remove unnecessary bake for sints

* [glsl-out] CountLeadingZeros without findMSB

* Don't check negatives when uint

* Perform the type conv after mix

* use log2

* fix clippy lints

---------

Co-authored-by: teoxoy <28601907+teoxoy@users.noreply.github.com>
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