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

@@ -85,6 +85,8 @@ class TraceWriter {
TraceWriter(uint8_t* membase) : membase_(membase), file_(nullptr) {}
~TraceWriter() = default;
bool is_open() const { return file_ != nullptr; }
bool Open(const std::wstring& path) {
Close();
file_ = _wfopen(path.c_str(), L"wb");