1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2024-11-30 04:24:11 +01:00

[dxvk] Upload HUD font texture via SDMA

This commit is contained in:
Philip Rebohle 2019-06-28 21:44:12 +02:00
parent c7c90830c4
commit d5c0a8c842
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -345,17 +345,10 @@ namespace dxvk::hud {
context->beginRecording(
device->createCommandList());
context->initImage(m_fontImage,
VkImageSubresourceRange {
VK_IMAGE_ASPECT_COLOR_BIT,
0, 1, 0, 1 });
context->updateImage(m_fontImage,
context->uploadImage(m_fontImage,
VkImageSubresourceLayers {
VK_IMAGE_ASPECT_COLOR_BIT,
0, 0, 1 },
VkOffset3D { 0, 0, 0 },
VkExtent3D { g_hudFont.width, g_hudFont.height, 1 },
g_hudFont.texture,
g_hudFont.width,
g_hudFont.width * g_hudFont.height);