summaryrefslogtreecommitdiff
path: root/Source/Core/VideoCommon/VertexLoaderManager.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp')
-rw-r--r--Source/Core/VideoCommon/VertexLoaderManager.cpp7
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();