From 5a84f35d08e6ff0ef90f906921d04cad27044b7f Mon Sep 17 00:00:00 2001 From: Philip Rebohle Date: Sat, 11 Aug 2018 21:40:38 +0200 Subject: [PATCH] [d3d10] Implement IA(Set|Get)InputLayout --- src/d3d10/d3d10_device.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/src/d3d10/d3d10_device.cpp b/src/d3d10/d3d10_device.cpp index 6da6e3df5..0e52c6a29 100644 --- a/src/d3d10/d3d10_device.cpp +++ b/src/d3d10/d3d10_device.cpp @@ -621,7 +621,10 @@ namespace dxvk { void STDMETHODCALLTYPE D3D10Device::IASetInputLayout( ID3D10InputLayout* pInputLayout) { - Logger::err("D3D10Device::IASetInputLayout: Not implemented"); + D3D10InputLayout* d3d10InputLayout = static_cast(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)->GetD3D10Iface(); }