]> git.cworth.org Git - apitrace/blobdiff - common/trace_writer.hpp
Check for ARB_sampler_objects before dumping its state.
[apitrace] / common / trace_writer.hpp
index a46b43edc487f15faff6f22bc68fade0a57924fa..a75d5ac69ef188e49e408f71eb6c2336fcd54649 100644 (file)
@@ -36,7 +36,7 @@
 #include <vector>
 
 #include "trace_model.hpp"
-
+#include "trace_backtrace.hpp"
 
 namespace trace {
     class File;
@@ -50,6 +50,7 @@ namespace trace {
         std::vector<bool> structs;
         std::vector<bool> enums;
         std::vector<bool> bitmasks;
+        std::vector<bool> frames;
 
     public:
         Writer();
@@ -70,6 +71,10 @@ namespace trace {
         void beginReturn(void);
         inline void endReturn(void) {}
 
+        void beginBacktrace(unsigned num_frames);
+        void writeStackFrame(const RawStackFrame *frame);
+        inline void endBacktrace(void) {}
+
         void beginArray(size_t length);
         inline void endArray(void) {}