Skip to content

Commit

Permalink
IDeviceContext::SetVertexBuffers: added missing const qualifier
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMostDiligent committed Nov 28, 2023
1 parent 5d9dcb4 commit 87bf9a5
Show file tree
Hide file tree
Showing 10 changed files with 11 additions and 11 deletions.
4 changes: 2 additions & 2 deletions Graphics/GraphicsEngine/include/DeviceContextBase.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -186,7 +186,7 @@ class DeviceContextBase : public ObjectBase<typename EngineImplTraits::DeviceCon
/// caches references to the buffers.
inline 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 = 0;
Expand Down Expand Up @@ -703,7 +703,7 @@ template <typename ImplementationTraits>
inline void DeviceContextBase<ImplementationTraits>::SetVertexBuffers(
Uint32 StartSlot,
Uint32 NumBuffersSet,
IBuffer** ppBuffers,
IBuffer* const* ppBuffers,
const Uint64* pOffsets,
RESOURCE_STATE_TRANSITION_MODE StateTransitionMode,
SET_VERTEX_BUFFERS_FLAGS Flags)
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngine/interface/DeviceContext.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ class DeviceContextD3D11Impl final : public DeviceContextBase<EngineD3D11ImplTra
/// Implementation of IDeviceContext::SetVertexBuffers() in Direct3D11 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ void DeviceContextD3D11Impl::FinishFrame()

void DeviceContextD3D11Impl::SetVertexBuffers(Uint32 StartSlot,
Uint32 NumBuffersSet,
IBuffer** ppBuffers,
IBuffer* const* ppBuffers,
const Uint64* pOffsets,
RESOURCE_STATE_TRANSITION_MODE StateTransitionMode,
SET_VERTEX_BUFFERS_FLAGS Flags)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ class DeviceContextD3D12Impl final : public DeviceContextNextGenBase<EngineD3D12
/// Implementation of IDeviceContext::SetVertexBuffers() in Direct3D12 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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1080,7 +1080,7 @@ void DeviceContextD3D12Impl::FinishFrame()

void DeviceContextD3D12Impl::SetVertexBuffers(Uint32 StartSlot,
Uint32 NumBuffersSet,
IBuffer** ppBuffers,
IBuffer* const* ppBuffers,
const Uint64* pOffsets,
RESOURCE_STATE_TRANSITION_MODE StateTransitionMode,
SET_VERTEX_BUFFERS_FLAGS Flags)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ class DeviceContextGLImpl final : public DeviceContextBase<EngineGLImplTraits>
/// 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;
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineOpenGL/src/DeviceContextGLImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,7 @@ class DeviceContextVkImpl final : public DeviceContextNextGenBase<EngineVkImplTr
/// Implementation of IDeviceContext::SetVertexBuffers() in Vulkan 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;
Expand Down
2 changes: 1 addition & 1 deletion Graphics/GraphicsEngineVulkan/src/DeviceContextVkImpl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1521,7 +1521,7 @@ void DeviceContextVkImpl::Flush(Uint32 NumCommandLists,

void DeviceContextVkImpl::SetVertexBuffers(Uint32 StartSlot,
Uint32 NumBuffersSet,
IBuffer** ppBuffers,
IBuffer* const* ppBuffers,
const Uint64* pOffsets,
RESOURCE_STATE_TRANSITION_MODE StateTransitionMode,
SET_VERTEX_BUFFERS_FLAGS Flags)
Expand Down

0 comments on commit 87bf9a5

Please sign in to comment.