From 408db3c96481ad05b686a5105cf92c9d58cfa5ba Mon Sep 17 00:00:00 2001 From: azhirnov Date: Mon, 15 Mar 2021 03:24:13 +0300 Subject: Added DrawMeshIndirectCount command. --- Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp | 2 ++ Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineOpenGL') diff --git a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp index f33b9d2c..0f0206c1 100644 --- a/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp +++ b/Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp @@ -135,6 +135,8 @@ public: virtual void DILIGENT_CALL_TYPE DrawMesh (const DrawMeshAttribs& Attribs) override final; /// Implementation of IDeviceContext::DrawMeshIndirect() in OpenGL backend. virtual void DILIGENT_CALL_TYPE DrawMeshIndirect (const DrawMeshIndirectAttribs& Attribs, IBuffer* pAttribsBuffer) override final; + /// Implementation of IDeviceContext::DrawMeshIndirectCount() in OpenGL backend. + virtual void DILIGENT_CALL_TYPE DrawMeshIndirectCount(const DrawMeshIndirectCountAttribs& Attribs, IBuffer* pAttribsBuffer, IBuffer* pCountBuffer) override final; /// Implementation of IDeviceContext::DispatchCompute() in OpenGL backend. virtual void DILIGENT_CALL_TYPE DispatchCompute (const DispatchComputeAttribs& Attribs) override final; diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index 9958c238..1bff455e 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -995,6 +995,11 @@ void DeviceContextGLImpl::DrawMeshIndirect(const DrawMeshIndirectAttribs& Attrib UNSUPPORTED("DrawMeshIndirect is not supported in OpenGL"); } +void DeviceContextGLImpl::DrawMeshIndirectCount(const DrawMeshIndirectCountAttribs& Attribs, IBuffer* pAttribsBuffer, IBuffer* pCountBuffer) +{ + UNSUPPORTED("DrawMeshIndirectCount is not supported in OpenGL"); +} + void DeviceContextGLImpl::DispatchCompute(const DispatchComputeAttribs& Attribs) { -- cgit v1.2.3