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/GraphicsEngineD3D12/include/ShaderVariableD3D12.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'Graphics/GraphicsEngineD3D12') diff --git a/Graphics/GraphicsEngineD3D12/include/ShaderVariableD3D12.h b/Graphics/GraphicsEngineD3D12/include/ShaderVariableD3D12.h index 69cc3829..6a8b3130 100644 --- a/Graphics/GraphicsEngineD3D12/include/ShaderVariableD3D12.h +++ b/Graphics/GraphicsEngineD3D12/include/ShaderVariableD3D12.h @@ -191,6 +191,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 ShaderResourceLayoutD3D12::D3D12Resource& GetResource()const { return m_Resource; -- cgit v1.2.3