[GPU] D3D12 backend debug markers were being cut
Code used wcslen that return number of characters, but D3D12 debug layer uses bytes + wide chars
This commit is contained in:
@@ -2028,7 +2028,7 @@ static void D3D12_InsertDebugLabel(
|
|||||||
d3d12CommandBuffer->graphicsCommandList,
|
d3d12CommandBuffer->graphicsCommandList,
|
||||||
0,
|
0,
|
||||||
wchar_text,
|
wchar_text,
|
||||||
(UINT)SDL_wcslen(wchar_text));
|
(UINT)SDL_wcslen(wchar_text) * sizeof(WCHAR));
|
||||||
|
|
||||||
SDL_free(wchar_text);
|
SDL_free(wchar_text);
|
||||||
}
|
}
|
||||||
@@ -2044,7 +2044,7 @@ static void D3D12_PushDebugGroup(
|
|||||||
d3d12CommandBuffer->graphicsCommandList,
|
d3d12CommandBuffer->graphicsCommandList,
|
||||||
0,
|
0,
|
||||||
wchar_text,
|
wchar_text,
|
||||||
(UINT)SDL_wcslen(wchar_text));
|
(UINT)SDL_wcslen(wchar_text) * sizeof(WCHAR));
|
||||||
|
|
||||||
SDL_free(wchar_text);
|
SDL_free(wchar_text);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user