Add object naming and debug marker/regions to bloom sample

This commit is contained in:
baldurk 2016-05-07 14:08:40 +02:00
parent d223dfa72b
commit a1d8558b89
2 changed files with 202 additions and 153 deletions

View file

@ -1358,6 +1358,8 @@ void VulkanExampleBase::setupDepthStencil()
getMemoryType(memReqs.memoryTypeBits, VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT, &mem_alloc.memoryTypeIndex);
err = vkAllocateMemory(device, &mem_alloc, nullptr, &depthStencil.mem);
assert(!err);
vkDebug::SetObjectName(device, depthStencil.image, "Backbuffer depth-stencil");
err = vkBindImageMemory(device, depthStencil.image, depthStencil.mem, 0);
assert(!err);