feat: basic shadow map + renderdoc labels
This commit is contained in:
@@ -26,6 +26,11 @@ void FrameManager::init(VkDevice dev, std::uint32_t queueFamily) {
|
||||
const auto cmdAllocInfo = vkinit::commandBufferAllocateInfo(commandPool, 1);
|
||||
auto& mainCommandBuffer = frames[i].commandBuffer;
|
||||
VK_CHECK(vkAllocateCommandBuffers(device, &cmdAllocInfo, &mainCommandBuffer));
|
||||
|
||||
const std::string poolName = "frame " + std::to_string(i) + " command pool";
|
||||
const std::string cmdName = "frame " + std::to_string(i) + " command buffer";
|
||||
vkutil::addDebugLabel(device, commandPool, poolName.c_str());
|
||||
vkutil::addDebugLabel(device, mainCommandBuffer, cmdName.c_str());
|
||||
}
|
||||
} catch (...) {
|
||||
cleanup(dev);
|
||||
|
||||
Reference in New Issue
Block a user