mirror of
https://github.com/bkaradzic/bgfx.git
synced 2026-02-21 14:23:02 +01:00
Removed Remotery.
This commit is contained in:
12
src/bgfx.cpp
12
src/bgfx.cpp
@@ -4,21 +4,9 @@
|
||||
*/
|
||||
|
||||
#include <bx/platform.h>
|
||||
#if BX_PLATFORM_WINDOWS
|
||||
// BK - Remotery needs WinSock, but on VS2015/Win10 build
|
||||
// fails if WinSock2 is included after Windows.h?!
|
||||
# include <winsock2.h>
|
||||
#endif // BX_PLATFORM_WINDOWS
|
||||
|
||||
#include "bgfx_p.h"
|
||||
#include <bgfx/embedded_shader.h>
|
||||
|
||||
#if BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB
|
||||
# define RMT_USE_D3D11 BGFX_CONFIG_RENDERER_DIRECT3D11
|
||||
# define RMT_USE_OPENGL BGFX_CONFIG_RENDERER_OPENGL
|
||||
# include <remotery/lib/Remotery.c>
|
||||
#endif // BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB
|
||||
|
||||
#include <bx/file.h>
|
||||
#include <bx/mutex.h>
|
||||
|
||||
|
||||
29
src/bgfx_p.h
29
src/bgfx_p.h
@@ -45,30 +45,11 @@
|
||||
)
|
||||
|
||||
#ifndef BGFX_PROFILER_SCOPE
|
||||
# if BGFX_CONFIG_PROFILER_MICROPROFILE
|
||||
# include <microprofile.h>
|
||||
# define BGFX_PROFILER_SCOPE(_group, _name, _color) MICROPROFILE_SCOPEI(#_group, #_name, _color)
|
||||
# define BGFX_PROFILER_BEGIN(_group, _name, _color) BX_NOOP()
|
||||
# define BGFX_PROFILER_BEGIN_DYNAMIC(_namestr) BX_NOOP()
|
||||
# define BGFX_PROFILER_END() BX_NOOP()
|
||||
# define BGFX_PROFILER_SET_CURRENT_THREAD_NAME(_name) BX_NOOP()
|
||||
# elif BGFX_CONFIG_PROFILER_REMOTERY
|
||||
# define RMT_ENABLED BGFX_CONFIG_PROFILER_REMOTERY
|
||||
# define RMT_USE_D3D11 BGFX_CONFIG_RENDERER_DIRECT3D11
|
||||
# define RMT_USE_OPENGL BGFX_CONFIG_RENDERER_OPENGL
|
||||
# include <remotery/lib/Remotery.h>
|
||||
# define BGFX_PROFILER_SCOPE(_group, _name, _color) rmt_ScopedCPUSample(_group##_##_name, RMTSF_None)
|
||||
# define BGFX_PROFILER_BEGIN(_group, _name, _color) rmt_BeginCPUSample(_group##_##_name, RMTSF_None)
|
||||
# define BGFX_PROFILER_BEGIN_DYNAMIC(_namestr) rmt_BeginCPUSampleDynamic(_namestr, RMTSF_None)
|
||||
# define BGFX_PROFILER_END() rmt_EndCPUSample()
|
||||
# define BGFX_PROFILER_SET_CURRENT_THREAD_NAME(_name) rmt_SetCurrentThreadName(_name)
|
||||
# else
|
||||
# define BGFX_PROFILER_SCOPE(_group, _name, _color) BX_NOOP()
|
||||
# define BGFX_PROFILER_BEGIN(_group, _name, _color) BX_NOOP()
|
||||
# define BGFX_PROFILER_BEGIN_DYNAMIC(_namestr) BX_NOOP()
|
||||
# define BGFX_PROFILER_END() BX_NOOP()
|
||||
# define BGFX_PROFILER_SET_CURRENT_THREAD_NAME(_name) BX_NOOP()
|
||||
# endif // BGFX_CONFIG_PROFILER_*
|
||||
# define BGFX_PROFILER_SCOPE(_group, _name, _color) BX_NOOP()
|
||||
# define BGFX_PROFILER_BEGIN(_group, _name, _color) BX_NOOP()
|
||||
# define BGFX_PROFILER_BEGIN_DYNAMIC(_namestr) BX_NOOP()
|
||||
# define BGFX_PROFILER_END() BX_NOOP()
|
||||
# define BGFX_PROFILER_SET_CURRENT_THREAD_NAME(_name) BX_NOOP()
|
||||
#endif // BGFX_PROFILER_SCOPE
|
||||
|
||||
namespace bgfx
|
||||
|
||||
Reference in New Issue
Block a user