diff options
| author | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-10-29 01:19:09 +0100 |
|---|---|---|
| committer | Yuriy O'Donnell <yuriyo@gmail.com> | 2014-12-07 18:17:19 +0100 |
| commit | 6e9226650d44fd79343f1fcfa30c7f04ee4cd01f (patch) | |
| tree | 4dabe0bfb77817632e60d000a4fe654c2f2ae8fa /Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp | |
| parent | d83f0308af01bbfa0a1da451c55f2db48ac1617f (diff) | |
D3D: Implemented context state caching
This avoids most of the redundant API calls.
Diffstat (limited to 'Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp')
| -rw-r--r-- | Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp index be59a2ac8c..bb83cba003 100644 --- a/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp +++ b/Source/Core/VideoBackends/D3D/NativeVertexFormat.cpp @@ -4,6 +4,7 @@ #include "VideoBackends/D3D/D3DBase.h" #include "VideoBackends/D3D/D3DBlob.h" +#include "VideoBackends/D3D/D3DState.h" #include "VideoBackends/D3D/VertexManager.h" #include "VideoBackends/D3D/VertexShaderCache.h" #include "VideoCommon/NativeVertexFormat.h" @@ -137,7 +138,7 @@ void D3DVertexFormat::SetupVertexPointers() if (FAILED(hr)) PanicAlert("Failed to create input layout, %s %d\n", __FILE__, __LINE__); DX11::D3D::SetDebugObjectName((ID3D11DeviceChild*)m_layout, "input layout used to emulate the GX pipeline"); } - DX11::D3D::context->IASetInputLayout(m_layout); + DX11::D3D::stateman->setInputLayout(m_layout); } } // namespace DX11 |
