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

[d3d11] Support video processor output views in ClearView

This commit is contained in:
Philip Rebohle 2021-05-24 15:01:27 +02:00
parent b04721f9a2
commit 2740030fca
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -4,6 +4,7 @@
#include "d3d11_device.h"
#include "d3d11_query.h"
#include "d3d11_texture.h"
#include "d3d11_video.h"
#include "../dxbc/dxbc_util.h"
@ -959,6 +960,7 @@ namespace dxvk {
auto dsv = dynamic_cast<D3D11DepthStencilView*>(pView);
auto rtv = dynamic_cast<D3D11RenderTargetView*>(pView);
auto uav = dynamic_cast<D3D11UnorderedAccessView*>(pView);
auto vov = dynamic_cast<D3D11VideoProcessorOutputView*>(pView);
// Retrieve underlying resource view
Rc<DxvkBufferView> bufView;
@ -975,6 +977,9 @@ namespace dxvk {
imgView = uav->GetImageView();
}
if (vov != nullptr)
imgView = vov->GetView();
// 3D views are unsupported
if (imgView != nullptr
&& imgView->info().type == VK_IMAGE_VIEW_TYPE_3D)