This commit is contained in:
Branimir Karadžić
2015-10-23 20:52:22 -07:00
parent 6ffdb3e247
commit 1c51d81006
22 changed files with 97 additions and 54 deletions

View File

@@ -3,10 +3,10 @@
* License: http://www.opensource.org/licenses/BSD-2-Clause
*/
#include <bgfx/bgfx.h>
#include <bx/uint32_t.h>
#include "common.h"
#include "bgfx_utils.h"
#include <bx/uint32_t.h>
#include "imgui/imgui.h"
// embedded shaders
@@ -72,8 +72,10 @@ static const int64_t lowwm = 1000000/57;
class DrawStress : public entry::AppI
{
void init(int /*_argc*/, char** /*_argv*/) BX_OVERRIDE
void init(int _argc, char** _argv) BX_OVERRIDE
{
Args args(_argc, _argv);
m_width = 1280;
m_height = 720;
m_debug = BGFX_DEBUG_TEXT;
@@ -91,7 +93,7 @@ class DrawStress : public entry::AppI
m_deltaTimeAvgNs = 0;
m_numFrames = 0;
bgfx::init();
bgfx::init(args.m_type, args.m_pciId);
bgfx::reset(m_width, m_height, m_reset);
const bgfx::Caps* caps = bgfx::getCaps();