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:
parent
ace06ce697
commit
5a84f35d08
@ -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();
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user