demotool/ui-demo.hh
Emmanuel BENOîT a266120761 Profiler - "Expected order" workaround
So the profiler apparently expects starts and ends to be consistent in
ordering. Whenever the order changes, it will likely crash. Modified the
main loop so it doesn't add the debug output's timings if the profiler
has been reset due to reloading as a workaround. This needs to be fixed,
though.
2018-03-30 17:34:22 +02:00

31 lines
569 B
C++

#pragma once
#include "c-opcomp.hh"
namespace ops { class T_OpContext; }
struct T_Demo
{
T_Demo( ) = default;
NO_COPY( T_Demo );
NO_MOVE( T_Demo );
// ---------------------------------------------------------------------
bool initialise( const uint32_t width ,
const uint32_t height );
bool render( );
// ---------------------------------------------------------------------
private:
uint32_t width;
uint32_t height;
T_OwnPtr< ops::T_OpProgram > program;
T_OwnPtr< ops::T_OpContext > context;
bool runInit( ops::T_OpProgram& program );
};