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/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp | 2 ++ Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 5 +++++ 2 files changed, 7 insertions(+) (limited to 'Graphics/GraphicsEngineD3D11') diff --git a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp index 6b217ed4..6af1390d 100644 --- a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp +++ b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp @@ -138,6 +138,8 @@ public: virtual void DILIGENT_CALL_TYPE DrawMesh(const DrawMeshAttribs& Attribs) override final; /// Implementation of IDeviceContext::DrawMeshIndirect() in Direct3D11 backend. virtual void DILIGENT_CALL_TYPE DrawMeshIndirect(const DrawMeshIndirectAttribs& Attribs, IBuffer* pAttribsBuffer) override final; + /// Implementation of IDeviceContext::DrawMeshIndirectCount() in Direct3D11 backend. + virtual void DILIGENT_CALL_TYPE DrawMeshIndirectCount(const DrawMeshIndirectCountAttribs& Attribs, IBuffer* pAttribsBuffer, IBuffer* pCountBuffer) override final; /// Implementation of IDeviceContext::DispatchCompute() in Direct3D11 backend. virtual void DILIGENT_CALL_TYPE DispatchCompute(const DispatchComputeAttribs& Attribs) override final; diff --git a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp index 9023d33e..4ad09035 100755 --- a/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp +++ b/Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp @@ -850,6 +850,11 @@ void DeviceContextD3D11Impl::DrawMeshIndirect(const DrawMeshIndirectAttribs& Att UNSUPPORTED("DrawMeshIndirect is not supported in DirectX 11"); } +void DeviceContextD3D11Impl::DrawMeshIndirectCount(const DrawMeshIndirectCountAttribs& Attribs, IBuffer* pAttribsBuffer, IBuffer* pCountBuffer) +{ + UNSUPPORTED("DrawMeshIndirectCount is not supported in DirectX 11"); +} + void DeviceContextD3D11Impl::DispatchCompute(const DispatchComputeAttribs& Attribs) { if (!DvpVerifyDispatchArguments(Attribs)) -- cgit v1.2.3