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

[d3d10] Implement GenerateMips

This commit is contained in:
Philip Rebohle 2018-08-11 23:25:32 +02:00
parent c41f380f3e
commit e0a27fd05e
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -633,7 +633,10 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::GenerateMips(
ID3D10ShaderResourceView* pShaderResourceView) {
Logger::err("D3D10Device::GenerateMips: Not implemented");
D3D10ShaderResourceView* d3d10View = static_cast<D3D10ShaderResourceView*>(pShaderResourceView);
D3D11ShaderResourceView* d3d11View = d3d10View ? d3d10View->GetD3D11Iface() : nullptr;
m_context->GenerateMips(d3d11View);
}