summaryrefslogtreecommitdiffstats
path: root/src/video_core/renderer_vulkan/vk_image.cpp (follow)
Commit message (Collapse)AuthorAgeFilesLines
* vk_image: Make use of designated initializers where applicableLioncash2020-07-171-15/+23
|
* renderer_vulkan: Drop Vulkan-HppReinUsesLisp2020-04-111-20/+41
|
* vk_image: Add an image object abstractionReinUsesLisp2019-12-251-0/+106
This object's job is to contain an image and manage its transitions. Since Nvidia hardware doesn't know what a transition is but Vulkan requires them anyway, we have to state track image subresources individually. To avoid the overhead of tracking each subresource in images with many subresources (think of cubemap arrays with several mipmaps), this commit tracks when subresources have diverged. As long as this doesn't happen we can check the state of the first subresource (that will be shared with all subresources) and update accordingly. Image transitions are deferred to the scheduler command buffer.