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

vk: Use matching u/v/w sampler address-mode when possible #1673

Merged

Conversation

Wunkolo
Copy link
Contributor

@Wunkolo Wunkolo commented Oct 9, 2024

This addresses the BestPractices-Arm-vkCreateSampler-different-wrapping-modes message from ARM: https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/65b79bac615ec1c47ab61a02d55a3bba871b56b9/layers/best_practices/bp_descriptor.cpp#L95-L100

The W-axis for these samplers is always unused, it's never the case that these samplers are going to be used for 3D textures. ARM suggests trying to keep all of the wrapping-modes the same if possible for performance.

wRepeat will be set to the same value as vRepeat to try and encourage all three wrapping-modes to be the same.

This addresses the `BestPractices-Arm-vkCreateSampler-different-wrapping-modes` message from ARM:
https://github.com/KhronosGroup/Vulkan-ValidationLayers/blob/65b79bac615ec1c47ab61a02d55a3bba871b56b9/layers/best_practices/bp_descriptor.cpp#L95-L100

The `W`-axis for these samplers is always unused, it's never the case that these samplers are going to be used for 3D textures.
ARM suggests trying to keep all of the wrapping-modes the same if possible for performance.

`wRepeat` will be set to the same value as `vRepeat` to try and encourage all three wrapping-modes to be the same.
@Wunkolo Wunkolo force-pushed the vk-bestpractices-arm-wrapping-modes branch from 26f739d to ab810d9 Compare October 9, 2024 02:24
@flyinghead flyinghead merged commit b94acb7 into flyinghead:master Oct 9, 2024
15 checks passed
@Wunkolo Wunkolo deleted the vk-bestpractices-arm-wrapping-modes branch October 9, 2024 18:01
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.

2 participants