summaryrefslogtreecommitdiff
path: root/src/core/memory.cpp
diff options
context:
space:
mode:
authorReinUsesLisp <reinuseslisp@airmail.cc>2019-12-25 18:00:16 -0300
committerReinUsesLisp <reinuseslisp@airmail.cc>2019-12-25 18:00:16 -0300
commitc83bf7cd1ee9d6c78269c2f7367be16d843aec91 (patch)
tree8c0e553109570b962a80f1094b629949f2b4b6fc /src/core/memory.cpp
parent5619d243772a2bb762c7733bd3122e128e370448 (diff)
vk_image: Add an image object abstraction
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.
Diffstat (limited to 'src/core/memory.cpp')
0 files changed, 0 insertions, 0 deletions