[Vulkan] Better debug names.
This commit is contained in:
@@ -49,9 +49,12 @@ bool VulkanShader::Prepare() {
|
||||
vkCreateShaderModule(*device_, &shader_info, nullptr, &shader_module_);
|
||||
CheckResult(status, "vkCreateShaderModule");
|
||||
|
||||
device_->DbgSetObjectName(uint64_t(shader_module_),
|
||||
VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT,
|
||||
xe::format_string("S: %.16llX", ucode_data_hash()));
|
||||
char typeChar = shader_type_ == ShaderType::kPixel
|
||||
? 'p'
|
||||
: shader_type_ == ShaderType::kVertex ? 'v' : 'u';
|
||||
device_->DbgSetObjectName(
|
||||
uint64_t(shader_module_), VK_DEBUG_REPORT_OBJECT_TYPE_SHADER_MODULE_EXT,
|
||||
xe::format_string("S(%c): %.16llX", typeChar, ucode_data_hash()));
|
||||
return status == VK_SUCCESS;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user