mirror of
https://github.com/doitsujin/dxvk.git
synced 2025-03-06 20:58:37 +01:00
[d3d11] Lock context before EmitCs for annotations
This commit is contained in:
parent
3bfad1e70e
commit
ecd7b67069
1 changed files with 6 additions and 0 deletions
|
@ -36,6 +36,8 @@ namespace dxvk {
|
|||
if (!m_container->IsAnnotationEnabled())
|
||||
return -1;
|
||||
|
||||
D3D10DeviceLock lock = m_container->LockContext();
|
||||
|
||||
m_container->EmitCs([labelName = dxvk::str::fromws(Name)](DxvkContext *ctx) {
|
||||
VkDebugUtilsLabelEXT label;
|
||||
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
||||
|
@ -57,6 +59,8 @@ namespace dxvk {
|
|||
if (!m_container->IsAnnotationEnabled())
|
||||
return -1;
|
||||
|
||||
D3D10DeviceLock lock = m_container->LockContext();
|
||||
|
||||
m_container->EmitCs([](DxvkContext *ctx) {
|
||||
ctx->endDebugLabel();
|
||||
});
|
||||
|
@ -70,6 +74,8 @@ namespace dxvk {
|
|||
if (!m_container->IsAnnotationEnabled())
|
||||
return;
|
||||
|
||||
D3D10DeviceLock lock = m_container->LockContext();
|
||||
|
||||
m_container->EmitCs([labelName = dxvk::str::fromws(Name)](DxvkContext *ctx) {
|
||||
VkDebugUtilsLabelEXT label;
|
||||
label.sType = VK_STRUCTURE_TYPE_DEBUG_UTILS_LABEL_EXT;
|
||||
|
|
Loading…
Add table
Reference in a new issue