diff --git a/examples/common/entry/entry_p.h b/examples/common/entry/entry_p.h index 971b88055..cc1e892db 100644 --- a/examples/common/entry/entry_p.h +++ b/examples/common/entry/entry_p.h @@ -14,7 +14,7 @@ #include // memcpy #ifndef ENTRY_CONFIG_USE_NOOP -# define ENTRY_CONFIG_USE_NOOP (BX_PLATFORM_QNX) +# define ENTRY_CONFIG_USE_NOOP (BX_PLATFORM_QNX || BX_PLATFORM_PS4) #endif // ENTRY_CONFIG_USE_NOOP #ifndef ENTRY_CONFIG_USE_SDL diff --git a/src/bgfx.cpp b/src/bgfx.cpp index e966e1c6f..108a7a37e 100644 --- a/src/bgfx.cpp +++ b/src/bgfx.cpp @@ -718,7 +718,8 @@ namespace bgfx } else if (RendererType::OpenGLES == g_caps.rendererType || RendererType::OpenGL == g_caps.rendererType - || RendererType::Vulkan == g_caps.rendererType) + || RendererType::Vulkan == g_caps.rendererType + || RendererType::GNM == g_caps.rendererType) { vsh = createShader(makeRef(vs_clear_glsl, sizeof(vs_clear_glsl) ) ); @@ -1754,6 +1755,7 @@ namespace bgfx BGFX_RENDERER_CONTEXT(mtl); BGFX_RENDERER_CONTEXT(gl); BGFX_RENDERER_CONTEXT(vk); + BGFX_RENDERER_CONTEXT(gnm); #undef BGFX_RENDERER_CONTEXT @@ -2491,7 +2493,7 @@ namespace bgfx s_callbackStub = BX_NEW(g_allocator, CallbackStub); } - if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_NACL) + if (!BX_ENABLED(BX_PLATFORM_EMSCRIPTEN || BX_PLATFORM_NACL || BX_PLATFORM_PS4) && NULL == g_platformData.ndt && NULL == g_platformData.nwh && NULL == g_platformData.context diff --git a/src/config.h b/src/config.h index 06a3a2401..eccde2fda 100644 --- a/src/config.h +++ b/src/config.h @@ -77,7 +77,9 @@ # endif // BGFX_CONFIG_RENDERER_VULKAN # ifndef BGFX_CONFIG_RENDERER_GNM -# define BGFX_CONFIG_RENDERER_GNM 0 +# define BGFX_CONFIG_RENDERER_GNM (0 \ + || BX_PLATFORM_PS4 \ + ? 1 : 0) # endif // BGFX_CONFIG_RENDERER_GNM # ifndef BGFX_CONFIG_RENDERER_NOOP