Skip to content

Commit 6aa455c

Browse files
committed
IopenglphysicalDevice inheritance
1 parent c0c1885 commit 6aa455c

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/nbl/video/IOpenGL_PhysicalDeviceBase.h

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -19,14 +19,18 @@
1919
namespace nbl::video
2020
{
2121

22-
class IOpenGLPhysicalDeviceBase
22+
class IOpenGLPhysicalDeviceBase : public IPhysicalDevice
2323
{
2424
public:
2525
static inline constexpr uint32_t MaxQueues = 8u;
26+
27+
IOpenGLPhysicalDeviceBase(core::smart_refctd_ptr<system::ISystem>&& s, core::smart_refctd_ptr<asset::IGLSLCompiler>&& glslc)
28+
: IPhysicalDevice(std::move(s), std::move(glslc))
29+
{}
2630
};
2731

2832
template <typename LogicalDeviceType>
29-
class IOpenGL_PhysicalDeviceBase : public IPhysicalDevice, public IOpenGLPhysicalDeviceBase
33+
class IOpenGL_PhysicalDeviceBase : public IOpenGLPhysicalDeviceBase
3034
{
3135
using function_table_t = typename LogicalDeviceType::FunctionTableType;
3236
static inline constexpr EGLint EGL_API_TYPE = function_table_t::EGL_API_TYPE;
@@ -167,7 +171,7 @@ class IOpenGL_PhysicalDeviceBase : public IPhysicalDevice, public IOpenGLPhysica
167171

168172
public:
169173
IOpenGL_PhysicalDeviceBase(IAPIConnection* api, renderdoc_api_t* rdoc, core::smart_refctd_ptr<system::ISystem>&& s, egl::CEGL&& _egl, COpenGLDebugCallback&& _dbgCb, EGLConfig _config, EGLContext ctx, EGLint _major, EGLint _minor)
170-
: IPhysicalDevice(std::move(s),core::make_smart_refctd_ptr<asset::IGLSLCompiler>(s.get())), m_api(api), m_rdoc_api(rdoc), m_egl(std::move(_egl)), m_dbgCb(std::move(_dbgCb)), m_config(_config), m_gl_major(_major), m_gl_minor(_minor)
174+
: IOpenGLPhysicalDeviceBase(std::move(s),core::make_smart_refctd_ptr<asset::IGLSLCompiler>(s.get())), m_api(api), m_rdoc_api(rdoc), m_egl(std::move(_egl)), m_dbgCb(std::move(_dbgCb)), m_config(_config), m_gl_major(_major), m_gl_minor(_minor)
171175
{
172176
// OpenGL backend emulates presence of just one queue family with all capabilities (graphics, compute, transfer, ... what about sparse binding?)
173177
SQueueFamilyProperties qprops;

0 commit comments

Comments
 (0)