Main window, empty GPU files.

This commit is contained in:
Ben Vanik
2014-12-20 22:17:57 -08:00
parent 7faf9d6bd3
commit 577ab0a4f1
57 changed files with 4403 additions and 7598 deletions

View File

@@ -16,28 +16,25 @@ namespace xe {
namespace gpu {
enum Register {
#define XE_GPU_REGISTER(index, type, name) \
XE_GPU_REG_##name = index,
#include <xenia/gpu/xenos/register_table.inc>
#define XE_GPU_REGISTER(index, type, name) XE_GPU_REG_##name = index,
#include <xenia/gpu/register_table.inc>
#undef XE_GPU_REGISTER
};
class RegisterFile {
public:
public:
RegisterFile();
const char* GetRegisterName(uint32_t index);
static const size_t kRegisterCount = 0x5003;
union RegisterValue {
uint32_t u32;
float f32;
uint32_t u32;
float f32;
};
RegisterValue values[kRegisterCount];
RegisterValue& operator[](Register reg) {
return values[reg];
}
RegisterValue& operator[](Register reg) { return values[reg]; }
};
} // namespace gpu