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

[Samplers] Patch: Simplify + Optimize Sampler Management #485

Closed
wants to merge 3 commits into from

Conversation

thr3343
Copy link
Contributor

@thr3343 thr3343 commented Aug 13, 2024

Simplifies sampler management by using the special hardware constant VK_LOD_CLAMP_NONE

VK_LOD_CLAMP_NONE permits the sampler to use all available miplevels on the texture, allowing one Sampler to handle all possible mipmap levels, with the additional effect of removing the need to track maxLods for each respective sampler.

Potentially may give a slight performance improvement on some hardware as a result of the reduced sampler count

@thr3343
Copy link
Contributor Author

thr3343 commented Sep 2, 2024

Was going to open more patch PRs like this, but released that would cause unnecessary clutter
So will close and merge this PR into a larger "Misc performance patches" PR to help tidy up + declutter the PR page

I have the code for that mostly ready to go, so it likely won't take more than a day or two.

@thr3343 thr3343 closed this Sep 2, 2024
@thr3343
Copy link
Contributor Author

thr3343 commented Sep 11, 2024

Replaced by #508

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