[dxvk] Add command buffer parameter to debug label functions

This commit is contained in:
Philip Rebohle 2024-11-06 11:07:47 +01:00
parent f58fa53a1f
commit 42e5abcf20
2 changed files with 18 additions and 19 deletions

View file

@ -1050,25 +1050,28 @@ namespace dxvk {
void cmdBeginDebugUtilsLabel(
VkDebugUtilsLabelEXT* pLabelInfo) {
DxvkCmdBuffer cmdBuffer,
const VkDebugUtilsLabelEXT& labelInfo) {
m_cmd.execCommands = true;
m_vki->vkCmdBeginDebugUtilsLabelEXT(getCmdBuffer(), pLabelInfo);
m_vki->vkCmdBeginDebugUtilsLabelEXT(getCmdBuffer(cmdBuffer), &labelInfo);
}
void cmdEndDebugUtilsLabel() {
void cmdEndDebugUtilsLabel(
DxvkCmdBuffer cmdBuffer) {
m_cmd.execCommands = true;
m_vki->vkCmdEndDebugUtilsLabelEXT(getCmdBuffer());
m_vki->vkCmdEndDebugUtilsLabelEXT(getCmdBuffer(cmdBuffer));
}
void cmdInsertDebugUtilsLabel(
VkDebugUtilsLabelEXT* pLabelInfo) {
DxvkCmdBuffer cmdBuffer,
const VkDebugUtilsLabelEXT& labelInfo) {
m_cmd.execCommands = true;
m_vki->vkCmdInsertDebugUtilsLabelEXT(getCmdBuffer(), pLabelInfo);
m_vki->vkCmdInsertDebugUtilsLabelEXT(getCmdBuffer(cmdBuffer), &labelInfo);
}

View file

@ -2477,25 +2477,21 @@ namespace dxvk {
}
void DxvkContext::beginDebugLabel(VkDebugUtilsLabelEXT *label) {
if (!m_device->instance()->extensions().extDebugUtils)
return;
m_cmd->cmdBeginDebugUtilsLabel(label);
void DxvkContext::beginDebugLabel(VkDebugUtilsLabelEXT* label) {
if (m_device->isDebugEnabled())
m_cmd->cmdBeginDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer, *label);
}
void DxvkContext::endDebugLabel() {
if (!m_device->instance()->extensions().extDebugUtils)
return;
m_cmd->cmdEndDebugUtilsLabel();
if (m_device->isDebugEnabled())
m_cmd->cmdEndDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer);
}
void DxvkContext::insertDebugLabel(VkDebugUtilsLabelEXT *label) {
if (!m_device->instance()->extensions().extDebugUtils)
return;
m_cmd->cmdInsertDebugUtilsLabel(label);
void DxvkContext::insertDebugLabel(VkDebugUtilsLabelEXT* label) {
if (m_device->isDebugEnabled())
m_cmd->cmdInsertDebugUtilsLabel(DxvkCmdBuffer::ExecBuffer, *label);
}