Hacktastic GPU trace viewer; textures, shaders, state, etc.

This commit is contained in:
Ben Vanik
2015-03-01 12:26:11 -08:00
parent 4a211a4195
commit 41174b0e64
19 changed files with 4026 additions and 2536 deletions

View File

@@ -9,21 +9,28 @@
#include "xenia/gpu/register_file.h"
#include "poly/math.h"
namespace xe {
namespace gpu {
RegisterFile::RegisterFile() { memset(values, 0, sizeof(values)); }
const char* RegisterFile::GetRegisterName(uint32_t index) {
const RegisterInfo* RegisterFile::GetRegisterInfo(uint32_t index) {
switch (index) {
#define XE_GPU_REGISTER(index, type, name) \
case index: \
return #name;
case index: { \
static const RegisterInfo reg_info = { \
RegisterInfo::Type::type, #name, \
}; \
return &reg_info; \
\
}
#include "xenia/gpu/register_table.inc"
#undef XE_GPU_REGISTER
default:
return nullptr;
}
};
}
} // namespace gpu