diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-10-23 03:05:14 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-10-23 03:05:14 +0000 |
| commit | de2944ba73141f1ebdef0c7e6f83c2c40b85f547 (patch) | |
| tree | 99fe3994e949ecdc4fe9b5a4ba325803aa97fb2d /Graphics/GraphicsEngineVulkan | |
| parent | D3D11 and GL backends: fixed instanced draw calls with one instance and non-z... (diff) | |
| download | DiligentCore-de2944ba73141f1ebdef0c7e6f83c2c40b85f547.tar.gz DiligentCore-de2944ba73141f1ebdef0c7e6f83c2c40b85f547.zip | |
Added validation and correction of IShaderVariable::SetArray arguments
Diffstat (limited to 'Graphics/GraphicsEngineVulkan')
| -rw-r--r-- | Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h b/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h index 59ef0e21..cfaa41a8 100644 --- a/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h +++ b/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h @@ -58,6 +58,7 @@ #include <memory> #include "ShaderResourceLayoutVk.h" +#include "ShaderResourceVariableBase.h" namespace Diligent { @@ -170,6 +171,7 @@ public: virtual void SetArray(IDeviceObject* const* ppObjects, Uint32 FirstElement, Uint32 NumElements)override final { + VerifyAndCorrectSetArrayArguments(m_Resource.SpirvAttribs.Name, m_Resource.SpirvAttribs.ArraySize, FirstElement, NumElements); for (Uint32 Elem = 0; Elem < NumElements; ++Elem) m_Resource.BindResource(ppObjects[Elem], FirstElement + Elem, m_ParentManager.m_ResourceCache); } |
