diff options
Diffstat (limited to '3rdparty/bgfx/src/config.h')
-rw-r--r-- | 3rdparty/bgfx/src/config.h | 48 |
1 files changed, 40 insertions, 8 deletions
diff --git a/3rdparty/bgfx/src/config.h b/3rdparty/bgfx/src/config.h index f9e4ddd2408..6ef37b421b8 100644 --- a/3rdparty/bgfx/src/config.h +++ b/3rdparty/bgfx/src/config.h @@ -19,7 +19,8 @@ && !defined(BGFX_CONFIG_RENDERER_OPENGL) \ && !defined(BGFX_CONFIG_RENDERER_OPENGLES) \ && !defined(BGFX_CONFIG_RENDERER_VULKAN) \ - && !defined(BGFX_CONFIG_RENDERER_NULL) + && !defined(BGFX_CONFIG_RENDERER_GNM) \ + && !defined(BGFX_CONFIG_RENDERER_NOOP) # ifndef BGFX_CONFIG_RENDERER_DIRECT3D9 # define BGFX_CONFIG_RENDERER_DIRECT3D9 (0 \ @@ -72,11 +73,21 @@ # endif // BGFX_CONFIG_RENDERER_OPENGLES # ifndef BGFX_CONFIG_RENDERER_VULKAN -# define BGFX_CONFIG_RENDERER_VULKAN 0 +# define BGFX_CONFIG_RENDERER_VULKAN (0 \ + || BX_PLATFORM_ANDROID \ + || BX_PLATFORM_LINUX \ + || BX_PLATFORM_WINDOWS \ + ? 1 : 0) # endif // BGFX_CONFIG_RENDERER_VULKAN -# ifndef BGFX_CONFIG_RENDERER_NULL -# define BGFX_CONFIG_RENDERER_NULL (!(0 \ +# ifndef BGFX_CONFIG_RENDERER_GNM +# define BGFX_CONFIG_RENDERER_GNM (0 \ + || BX_PLATFORM_PS4 \ + ? 1 : 0) +# endif // BGFX_CONFIG_RENDERER_GNM + +# ifndef BGFX_CONFIG_RENDERER_NOOP +# define BGFX_CONFIG_RENDERER_NOOP (!(0 \ || BGFX_CONFIG_RENDERER_DIRECT3D9 \ || BGFX_CONFIG_RENDERER_DIRECT3D11 \ || BGFX_CONFIG_RENDERER_DIRECT3D12 \ @@ -84,8 +95,9 @@ || BGFX_CONFIG_RENDERER_OPENGL \ || BGFX_CONFIG_RENDERER_OPENGLES \ || BGFX_CONFIG_RENDERER_VULKAN \ + || BGFX_CONFIG_RENDERER_GNM \ ? 1 : 0) ) -# endif // BGFX_CONFIG_RENDERER_NULL +# endif // BGFX_CONFIG_RENDERER_NOOP #else # ifndef BGFX_CONFIG_RENDERER_DIRECT3D9 # define BGFX_CONFIG_RENDERER_DIRECT3D9 0 @@ -115,9 +127,13 @@ # define BGFX_CONFIG_RENDERER_VULKAN 0 # endif // BGFX_CONFIG_RENDERER_VULKAN -# ifndef BGFX_CONFIG_RENDERER_NULL -# define BGFX_CONFIG_RENDERER_NULL 0 -# endif // BGFX_CONFIG_RENDERER_NULL +# ifndef BGFX_CONFIG_RENDERER_GNM +# define BGFX_CONFIG_RENDERER_GNM 0 +# endif // BGFX_CONFIG_RENDERER_GNM + +# ifndef BGFX_CONFIG_RENDERER_NOOP +# define BGFX_CONFIG_RENDERER_NOOP 0 +# endif // BGFX_CONFIG_RENDERER_NOOP #endif // !defined... #if BGFX_CONFIG_RENDERER_OPENGL && BGFX_CONFIG_RENDERER_OPENGL < 21 @@ -237,6 +253,10 @@ # define BGFX_CONFIG_MAX_VERTEX_BUFFERS (4<<10) #endif // BGFX_CONFIG_MAX_VERTEX_BUFFERS +#ifndef BGFX_CONFIG_MAX_VERTEX_STREAMS +# define BGFX_CONFIG_MAX_VERTEX_STREAMS 1 +#endif // BGFX_CONFIG_MAX_VERTEX_STREAMS + #ifndef BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS # define BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS (4<<10) #endif // BGFX_CONFIG_MAX_DYNAMIC_INDEX_BUFFERS @@ -315,4 +335,16 @@ # define BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB BGFX_CONFIG_PROFILER_REMOTERY #endif // BGFX_CONFIG_PROFILER_REMOTERY_BUILD_LIB +#ifndef BGFX_CONFIG_RENDERDOC_LOG_FILEPATH +# define BGFX_CONFIG_RENDERDOC_LOG_FILEPATH "temp/bgfx" +#endif // BGFX_CONFIG_RENDERDOC_LOG_FILEPATH + +#ifndef BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS +# define BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS { eRENDERDOC_Key_F11 } +#endif // BGFX_CONFIG_RENDERDOC_CAPTURE_KEYS + +#ifndef BGFX_CONFIG_API_SEMAPHORE_TIMEOUT +# define BGFX_CONFIG_API_SEMAPHORE_TIMEOUT (-1) +#endif // BGFX_CONFIG_API_SEMAPHORE_TIMEOUT + #endif // BGFX_CONFIG_H_HEADER_GUARD |