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

[d3d10] Implement IA(Set|Get)InputLayout

This commit is contained in:
Philip Rebohle 2018-08-11 21:40:38 +02:00
parent ace06ce697
commit 5a84f35d08
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99

View File

@ -621,7 +621,10 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::IASetInputLayout(
ID3D10InputLayout* pInputLayout) {
Logger::err("D3D10Device::IASetInputLayout: Not implemented");
D3D10InputLayout* d3d10InputLayout = static_cast<D3D10InputLayout*>(pInputLayout);
D3D11InputLayout* d3d11InputLayout = d3d10InputLayout ? d3d10InputLayout->GetD3D11Iface() : nullptr;
m_context->IASetInputLayout(d3d11InputLayout);
}
@ -666,7 +669,10 @@ namespace dxvk {
void STDMETHODCALLTYPE D3D10Device::IAGetInputLayout(
ID3D10InputLayout** ppInputLayout) {
Logger::err("D3D10Device::IAGetInputLayout: Not implemented");
ID3D11InputLayout* d3d11InputLayout = nullptr;
m_context->IAGetInputLayout(&d3d11InputLayout);
*ppInputLayout = static_cast<D3D11InputLayout*>(d3d11InputLayout)->GetD3D10Iface();
}