mirror of
https://github.com/doitsujin/dxvk.git
synced 2024-11-29 10:24:10 +01:00
[d3d11] Support video processor output views in ClearView
This commit is contained in:
parent
b04721f9a2
commit
2740030fca
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user