Hacktastic GPU trace viewer; textures, shaders, state, etc.
This commit is contained in:
@@ -21,11 +21,20 @@ enum Register {
|
||||
#undef XE_GPU_REGISTER
|
||||
};
|
||||
|
||||
struct RegisterInfo {
|
||||
enum class Type {
|
||||
kDword,
|
||||
kFloat,
|
||||
};
|
||||
Type type;
|
||||
const char* name;
|
||||
};
|
||||
|
||||
class RegisterFile {
|
||||
public:
|
||||
RegisterFile();
|
||||
|
||||
const char* GetRegisterName(uint32_t index);
|
||||
static const RegisterInfo* GetRegisterInfo(uint32_t index);
|
||||
|
||||
static const size_t kRegisterCount = 0x5003;
|
||||
union RegisterValue {
|
||||
@@ -34,6 +43,7 @@ class RegisterFile {
|
||||
};
|
||||
RegisterValue values[kRegisterCount];
|
||||
|
||||
RegisterValue& operator[](int reg) { return values[reg]; }
|
||||
RegisterValue& operator[](Register reg) { return values[reg]; }
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user