2013-04-18 03:09:55 +00:00
|
|
|
// Copyright 2013 Dolphin Emulator Project
|
|
|
|
// Licensed under GPLv2
|
|
|
|
// Refer to the license.txt file included.
|
2008-12-08 05:30:24 +00:00
|
|
|
|
2014-08-27 17:26:06 +00:00
|
|
|
#include "Common/ChunkFile.h"
|
2014-09-08 01:06:58 +00:00
|
|
|
#include "Common/CommonTypes.h"
|
2014-02-17 10:18:15 +00:00
|
|
|
#include "VideoCommon/CPMemory.h"
|
2008-12-08 05:30:24 +00:00
|
|
|
|
|
|
|
// CP state
|
2009-03-08 01:19:33 +00:00
|
|
|
u8 *cached_arraybases[16];
|
|
|
|
|
2014-08-27 17:26:06 +00:00
|
|
|
CPState g_main_cp_state;
|
|
|
|
|
|
|
|
void DoCPState(PointerWrap& p)
|
|
|
|
{
|
|
|
|
p.DoArray(g_main_cp_state.array_bases, 16);
|
|
|
|
p.DoArray(g_main_cp_state.array_strides, 16);
|
|
|
|
p.Do(g_main_cp_state.matrix_index_a);
|
|
|
|
p.Do(g_main_cp_state.matrix_index_b);
|
|
|
|
p.Do(g_main_cp_state.vtx_desc.Hex);
|
|
|
|
p.DoArray(g_main_cp_state.vtx_attr, 8);
|
|
|
|
p.DoMarker("CP Memory");
|
|
|
|
}
|