Vulkan: Add tags to UI textures too.
This commit is contained in:
parent
5f27a2e60a
commit
99d16b2202
8 changed files with 13 additions and 1 deletions
|
@ -311,7 +311,10 @@ public:
|
|||
Destroy();
|
||||
}
|
||||
|
||||
VkImageView GetImageView() { return vkTex_->GetImageView(); }
|
||||
VkImageView GetImageView() {
|
||||
vkTex_->Touch();
|
||||
return vkTex_->GetImageView();
|
||||
}
|
||||
|
||||
private:
|
||||
bool Create(VkCommandBuffer cmd, VulkanPushBuffer *pushBuffer, const TextureDesc &desc, VulkanDeviceAllocator *alloc);
|
||||
|
@ -658,6 +661,7 @@ bool VKTexture::Create(VkCommandBuffer cmd, VulkanPushBuffer *push, const Textur
|
|||
height_ = desc.height;
|
||||
depth_ = desc.depth;
|
||||
vkTex_ = new VulkanTexture(vulkan_, alloc);
|
||||
vkTex_->SetTag(desc.tag);
|
||||
VkFormat vulkanFormat = DataFormatToVulkan(format_);
|
||||
int stride = desc.width * (int)DataFormatSizeInBytes(format_);
|
||||
int bpp = GetBpp(vulkanFormat);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue