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: refactor texture default layout #8183

Merged
merged 2 commits into from
Oct 10, 2024
Merged

vk: refactor texture default layout #8183

merged 2 commits into from
Oct 10, 2024

Conversation

poweifeng
Copy link
Contributor

Previously, default layout is based on usage, but this actually has two paths (Filament's TextureUsage and the computed VkTextureUsage) that do not always agree. We simplify so that default layout is stored in the texture itself.

Also remove some unnecessary code that is no longer necessary. In particular, we shouldn't be doing a flush and wait for the transition to complete before updating a sampler descriptor. We just need to make sure the layout before it is accessed is correctly given in the update struct.

@poweifeng poweifeng added the internal Issue/PR does not affect clients label Oct 7, 2024
Previously, default layout is based on usage, but this actually
has two paths (Filament's TextureUsage and the computed
VkTextureUsage) that do not always agree.  We simplify so that
default layout is stored in the texture itself.

Also remove some unnecessary code that is no longer necessary.
In particular, we shouldn't be doing a flush and wait for the
transition to complete before updating a sampler descriptor.
We just need to make sure the layout before it is accessed is
correctly given in the update struct.
@poweifeng poweifeng force-pushed the pf/vk-no-unnessary-wait branch from 8cd23b0 to 43f549e Compare October 9, 2024 22:13
@poweifeng poweifeng enabled auto-merge (squash) October 10, 2024 19:17
@poweifeng poweifeng merged commit 875b295 into main Oct 10, 2024
12 checks passed
@poweifeng poweifeng deleted the pf/vk-no-unnessary-wait branch October 10, 2024 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
internal Issue/PR does not affect clients
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants