1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 05:52:11 +01:00

[hud] Do not explicitly use a framebuffer object

This commit is contained in:
Philip Rebohle 2018-04-26 13:24:42 +02:00
parent 5eaacf7459
commit 8606576d83
2 changed files with 5 additions and 7 deletions

View File

@ -107,7 +107,9 @@ namespace dxvk::hud {
clearRect.baseArrayLayer = 0;
clearRect.layerCount = 1;
m_context->bindFramebuffer(m_renderTargetFbo);
m_context->bindRenderTargets(
m_renderTargetInfo);
m_context->clearRenderTarget(
m_renderTargetView, clearRect,
VK_IMAGE_ASPECT_COLOR_BIT,
@ -168,12 +170,8 @@ namespace dxvk::hud {
viewInfo.numLayers = 1;
m_renderTargetView = m_device->createImageView(m_renderTarget, viewInfo);
DxvkRenderTargets framebufferInfo;
framebufferInfo.setColorTarget(0, m_renderTargetView,
m_renderTargetInfo.setColorTarget(0, m_renderTargetView,
VK_IMAGE_LAYOUT_COLOR_ATTACHMENT_OPTIMAL);
m_renderTargetFbo = m_device->createFramebuffer(framebufferInfo);
}

View File

@ -80,7 +80,7 @@ namespace dxvk::hud {
Rc<DxvkBuffer> m_uniformBuffer;
Rc<DxvkImage> m_renderTarget;
Rc<DxvkImageView> m_renderTargetView;
Rc<DxvkFramebuffer> m_renderTargetFbo;
DxvkRenderTargets m_renderTargetInfo;
HudDeviceInfo m_hudDeviceInfo;
HudFps m_hudFramerate;