D3D12: Additions to VideoCommon to support D3D12 backend.

This commit is contained in:
hdcmeta
2016-01-07 19:38:00 -08:00
parent 98f74d3479
commit a2e2e36745
4 changed files with 16 additions and 4 deletions

View File

@ -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();