[d3d10] Implement ClearRenderTargetView and ClearDepthStencilView

This commit is contained in:
Philip Rebohle 2018-08-12 00:01:57 +02:00
parent f76ab6e3be
commit 2863a09c5d
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
1 changed files with 8 additions and 2 deletions

View File

@ -614,7 +614,10 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::ClearRenderTargetView(
ID3D10RenderTargetView* pRenderTargetView,
const FLOAT ColorRGBA[4]) {
Logger::err("D3D10Device::ClearRenderTargetView: Not implemented");
D3D10RenderTargetView* d3d10View = static_cast<D3D10RenderTargetView*>(pRenderTargetView);
D3D11RenderTargetView* d3d11View = d3d10View ? d3d10View->GetD3D11Iface() : nullptr;
m_context->ClearRenderTargetView(d3d11View, ColorRGBA);
}
@ -623,7 +626,10 @@ namespace dxvk {
UINT ClearFlags,
FLOAT Depth,
UINT8 Stencil) {
Logger::err("D3D10Device::ClearDepthStencilView: Not implemented");
D3D10DepthStencilView* d3d10View = static_cast<D3D10DepthStencilView*>(pDepthStencilView);
D3D11DepthStencilView* d3d11View = d3d10View ? d3d10View->GetD3D11Iface() : nullptr;
m_context->ClearDepthStencilView(d3d11View, ClearFlags, Depth, Stencil);
}