#question about subresource barrier

2 messages · Page 1 of 1 (latest)

cunning agate
#

I have a question about vulkan. Lets say, I have a texture, for which I generated mip chain using compute shader. For that I needed to place a resource barrier, but after that not all mips(subresources) in the same state. What will happen, if I need to transfer this resource from one state to another? Can I just do a standard image barrier which will use VK_REMAINING_MIP_LEVELS, or I would need to check if all resources in the same state and, if not, set image barrier for each mip to transfer all subresources to desired state?

desert gazelle
#

You can use barriers on sub resources like it’s layers and mipmaps. Check the mipmap part of vulkan tutorial for some example.