mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 06:09:50 -06:00
D3D12: Additions to VideoCommon to support D3D12 backend.
This commit is contained in:
@ -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();
|
||||
|
Reference in New Issue
Block a user