From 87bf9a5d43b8d73fc35df8ece707b6fc6aeaf5bb Mon Sep 17 00:00:00 2001 From: assiduous Date: Tue, 28 Nov 2023 14:24:22 -0800 Subject: [PATCH] IDeviceContext::SetVertexBuffers: added missing const qualifier --- Graphics/GraphicsEngine/include/DeviceContextBase.hpp | 4 ++-- Graphics/GraphicsEngine/interface/DeviceContext.h | 2 +- .../GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp | 2 +- Graphics/GraphicsEngineD3D11/src/DeviceContextD3D11Impl.cpp | 2 +- .../GraphicsEngineD3D12/include/DeviceContextD3D12Impl.hpp | 2 +- Graphics/GraphicsEngineD3D12/src/DeviceContextD3D12Impl.cpp | 2 +- Graphics/GraphicsEngineOpenGL/include/DeviceContextGLImpl.hpp | 2 +- Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp | 2 +- Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp | 2 +- Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) diff --git a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp index 44a748e03..c8660c9a9 100644 --- a/Graphics/GraphicsEngine/include/DeviceContextBase.hpp +++ b/Graphics/GraphicsEngine/include/DeviceContextBase.hpp @@ -186,7 +186,7 @@ class DeviceContextBase : public ObjectBase inline void DeviceContextBase::SetVertexBuffers( Uint32 StartSlot, Uint32 NumBuffersSet, - IBuffer** ppBuffers, + IBuffer* const* ppBuffers, const Uint64* pOffsets, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode, SET_VERTEX_BUFFERS_FLAGS Flags) diff --git a/Graphics/GraphicsEngine/interface/DeviceContext.h b/Graphics/GraphicsEngine/interface/DeviceContext.h index 5d2c789da..a66003c06 100644 --- a/Graphics/GraphicsEngine/interface/DeviceContext.h +++ b/Graphics/GraphicsEngine/interface/DeviceContext.h @@ -2388,7 +2388,7 @@ DILIGENT_BEGIN_INTERFACE(IDeviceContext, IObject) VIRTUAL void METHOD(SetVertexBuffers)(THIS_ Uint32 StartSlot, Uint32 NumBuffersSet, - IBuffer** ppBuffers, + IBuffer* const* ppBuffers, const Uint64* pOffsets, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode, SET_VERTEX_BUFFERS_FLAGS Flags DEFAULT_VALUE(SET_VERTEX_BUFFERS_FLAG_NONE)) PURE; diff --git a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp index d2084792c..2eef47fbc 100644 --- a/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp +++ b/Graphics/GraphicsEngineD3D11/include/DeviceContextD3D11Impl.hpp @@ -84,7 +84,7 @@ class DeviceContextD3D11Impl final : public DeviceContextBase /// Implementation of IDeviceContext::SetVertexBuffers() in OpenGL backend. virtual void DILIGENT_CALL_TYPE SetVertexBuffers(Uint32 StartSlot, Uint32 NumBuffersSet, - IBuffer** ppBuffers, + IBuffer* const* ppBuffers, const Uint64* pOffsets, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode, SET_VERTEX_BUFFERS_FLAGS Flags) override final; diff --git a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp index a3c61ec37..8eafb5074 100644 --- a/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp +++ b/Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp @@ -207,7 +207,7 @@ void DeviceContextGLImpl::SetBlendFactors(const float* pBlendFactors) void DeviceContextGLImpl::SetVertexBuffers(Uint32 StartSlot, Uint32 NumBuffersSet, - IBuffer** ppBuffers, + IBuffer* const* ppBuffers, const Uint64* pOffsets, RESOURCE_STATE_TRANSITION_MODE StateTransitionMode, SET_VERTEX_BUFFERS_FLAGS Flags) diff --git a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp index d1359c85d..83e1c244d 100644 --- a/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp +++ b/Graphics/GraphicsEngineVulkan/include/DeviceContextVkImpl.hpp @@ -100,7 +100,7 @@ class DeviceContextVkImpl final : public DeviceContextNextGenBase