diff options
| author | Pierre Bourdon <delroth@gmail.com> | 2016-02-16 00:38:07 +0100 |
|---|---|---|
| committer | Pierre Bourdon <delroth@gmail.com> | 2016-02-16 00:38:07 +0100 |
| commit | 61ee799d0df08e6e73a7577b9a37c6c3783252a6 (patch) | |
| tree | 6adae584fcc27911bf4464deb8a62d468472c98c /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | f53a9316bae40a40516323b1effd936c30a8d839 (diff) | |
| parent | 8cc686b3606deb1a3638281da9c12180a481e899 (diff) | |
Merge pull request #3364 from hdcmeta/d3d12merge
DX12 video backend
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
| -rw-r--r-- | Source/Core/VideoCommon/VertexLoaderManager.cpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/Source/Core/VideoCommon/VertexLoaderManager.cpp b/Source/Core/VideoCommon/VertexLoaderManager.cpp index 5de1eb63b7..f04112e184 100644 --- a/Source/Core/VideoCommon/VertexLoaderManager.cpp +++ b/Source/Core/VideoCommon/VertexLoaderManager.cpp @@ -31,7 +31,6 @@ namespace VertexLoaderManager float position_cache[3][4]; u32 position_matrix_index[3]; -typedef std::unordered_map<PortableVertexDeclaration, std::unique_ptr<NativeVertexFormat>> NativeVertexFormatMap; static NativeVertexFormatMap s_native_vertex_map; static NativeVertexFormat* s_current_vtx_fmt; u32 g_current_components; @@ -43,6 +42,12 @@ static VertexLoaderMap s_vertex_loader_map; u8 *cached_arraybases[12]; +// Used in D3D12 backend, to populate input layouts used by cached-to-disk PSOs. +NativeVertexFormatMap* GetNativeVertexFormatMap() +{ + return &s_native_vertex_map; +} + void Init() { MarkAllDirty(); |
