These convenience overloads don't work in 32-bit builds, remove them.

This commit is contained in:
Henrik Rydgård 2020-08-09 10:28:37 +02:00
parent fbf6008a03
commit fd41c9cd57
4 changed files with 4 additions and 15 deletions

View file

@ -175,17 +175,6 @@ public:
}
}
// Shorthand for the above, the most common types we want to tag.
void SetDebugName(VkImage image, const char *name) {
SetDebugName(image, VK_OBJECT_TYPE_IMAGE, name);
}
void SetDebugName(VkFramebuffer framebuf, const char *name) {
SetDebugName(framebuf, VK_OBJECT_TYPE_FRAMEBUFFER, name);
}
void SetDebugName(VkSampler sampler, const char *name) {
SetDebugName(sampler, VK_OBJECT_TYPE_SAMPLER, name);
}
bool MemoryTypeFromProperties(uint32_t typeBits, VkFlags requirements_mask, uint32_t *typeIndex);
VkPhysicalDevice GetPhysicalDevice(int n) const {

View file

@ -72,7 +72,7 @@ bool VulkanTexture::CreateDirect(VkCommandBuffer cmd, VulkanDeviceAllocator *all
}
// Apply the tag
vulkan_->SetDebugName(image_, tag_.c_str());
vulkan_ ->SetDebugName(image_, VK_OBJECT_TYPE_IMAGE, tag_.c_str());
VkMemoryRequirements mem_reqs{};
bool dedicatedAllocation = false;

View file

@ -718,7 +718,7 @@ bool VulkanRenderManager::InitDepthStencilBuffer(VkCommandBuffer cmd) {
if (res != VK_SUCCESS)
return false;
vulkan_->SetDebugName(depth_.image, "BackbufferDepth");
vulkan_->SetDebugName(depth_.image, VK_OBJECT_TYPE_IMAGE, "BackbufferDepth");
bool dedicatedAllocation = false;
VkMemoryRequirements mem_reqs;

View file

@ -52,8 +52,8 @@ public:
vkCreateFramebuffer(vulkan_->GetDevice(), &fbci, nullptr, &framebuf);
if (vk->Extensions().EXT_debug_utils) {
vk->SetDebugName(color.image, StringFromFormat("fb_color_%s", tag).c_str());
vk->SetDebugName(depth.image, StringFromFormat("fb_depth_%s", tag).c_str());
vk->SetDebugName(color.image, VK_OBJECT_TYPE_IMAGE, StringFromFormat("fb_color_%s", tag).c_str());
vk->SetDebugName(depth.image, VK_OBJECT_TYPE_IMAGE, StringFromFormat("fb_depth_%s", tag).c_str());
vk->SetDebugName(framebuf, VK_OBJECT_TYPE_FRAMEBUFFER, StringFromFormat("fb_%s", tag).c_str());
}
}