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

Allow hooking into image barriers / texture transitions on a backend-specific basis #3516

Closed
JMS55 opened this issue Feb 21, 2023 · 1 comment
Labels
area: api Issues related to API surface area: ecosystem Help the connected projects grow and prosper help required We need community help to make this happen. type: enhancement New feature or request

Comments

@JMS55
Copy link
Contributor

JMS55 commented Feb 21, 2023

Is your feature request related to a problem? Please describe.
I'm trying to hook into FidelityFX Super Resolution 2, a Vulkan/DirectX12 library. This library handles all the dispatches, but requires that the input textures have a certain VkAccessFlagBits, and be in a certain VkImageLayout (or the DX12 equivalents, for DX12).

Describe the solution you'd like
Add a command encoder transition_textures() method that hooks into wgpu's resource tracker, and adds a transition to the next pipeline image barrier (if necessary) to a specific user provided VkImageLayout for Vulkan, or similar thing for DX12 and others.

Describe alternatives you've considered
I've tried doing such a thing here. I ran into the problem that wgpu_hal::TextureUses is too high level - I can't specify or coerce it to get a specific VkImageLayout. I'm also unsure if it would work correctly or if I made other mistakes.

@teoxoy teoxoy added type: enhancement New feature or request help required We need community help to make this happen. area: api Issues related to API surface area: ecosystem Help the connected projects grow and prosper labels Feb 22, 2023
@cwfitzgerald
Copy link
Member

This is obsoleted by #4067

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area: api Issues related to API surface area: ecosystem Help the connected projects grow and prosper help required We need community help to make this happen. type: enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

3 participants