diff options
| author | hdcmeta <hdcmeta@gmail.com> | 2016-01-07 19:38:00 -0800 |
|---|---|---|
| committer | hdcmeta <hdcmeta@gmail.com> | 2016-02-15 09:48:23 -0800 |
| commit | a2e2e36745717135d42df2d17965aa709480e3e3 (patch) | |
| tree | 51af30ceb1d496a534e4e92c78cb12a2c973a366 /Source/Core/VideoCommon/VertexLoaderManager.cpp | |
| parent | 98f74d3479109d1e839618c225a640b9d095632c (diff) | |
D3D12: Additions to VideoCommon to support D3D12 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(); |
