From a2e2e36745717135d42df2d17965aa709480e3e3 Mon Sep 17 00:00:00 2001 From: hdcmeta Date: Thu, 7 Jan 2016 19:38:00 -0800 Subject: D3D12: Additions to VideoCommon to support D3D12 backend. --- Source/Core/VideoCommon/VertexLoaderManager.cpp | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'Source/Core/VideoCommon/VertexLoaderManager.cpp') 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> 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(); -- cgit v1.2.3