From f3698c9127d6e384eabe779b8fb3519c94e0babb Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Wed, 24 Apr 2019 22:17:09 -0700 Subject: Added IShaderResourceVariable::IsBound method (updated API version to 240024) --- Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Graphics/GraphicsEngineVulkan') diff --git a/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h b/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h index b67fcf5e..65d5b05c 100644 --- a/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h +++ b/Graphics/GraphicsEngineVulkan/include/ShaderVariableVk.h @@ -184,6 +184,11 @@ public: return m_ParentManager.GetVariableIndex(*this); } + virtual bool IsBound(Uint32 ArrayIndex) const override final + { + return m_Resource.IsBound(ArrayIndex, m_ParentManager.m_ResourceCache); + } + const ShaderResourceLayoutVk::VkResource& GetResource()const { return m_Resource; -- cgit v1.2.3