[vulkan] Name some more objects

Shaders and descriptor set layouts.
This commit is contained in:
Bill Currie 2021-04-19 17:49:03 +09:00
parent 2918410b30
commit 140425be33
2 changed files with 6 additions and 0 deletions

View file

@ -45,6 +45,7 @@
#include "QF/quakefs.h"
#include "QF/sys.h"
#include "QF/Vulkan/qf_vid.h"
#include "QF/Vulkan/debug.h"
#include "QF/Vulkan/device.h"
#include "QF/Vulkan/image.h"
#include "QF/Vulkan/instance.h"
@ -170,6 +171,8 @@ QFV_CreateShaderModule (qfv_device_t *device, const char *shader_path)
};
dfunc->vkCreateShaderModule (dev, &createInfo, 0, &shader);
QFV_duSetObjectName (device, VK_OBJECT_TYPE_SHADER_MODULE, shader,
shader_path);
} else {
Sys_MaskPrintf (SYS_vulkan,
"QFV_CreateShaderModule: could not find shader %s\n",

View file

@ -1092,6 +1092,9 @@ QFV_ParseDescriptorSetLayout (vulkan_ctx_t *ctx, plitem_t *plist,
VkDescriptorSetLayout setLayout;
dfunc->vkCreateDescriptorSetLayout (device->dev, &cInfo, 0, &setLayout);
QFV_duSetObjectName (device, VK_OBJECT_TYPE_DESCRIPTOR_SET_LAYOUT,
setLayout, va (ctx->va_ctx, "descriptorSetLayout:%d",
PL_Line (plist)));
delete_memsuper (memsuper);
return setLayout;