summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngineD3D12
diff options
context:
space:
mode:
authorEgor Yusov <egor.yusov@gmail.com>2019-04-25 05:17:09 +0000
committerEgor Yusov <egor.yusov@gmail.com>2019-04-25 05:17:09 +0000
commitf3698c9127d6e384eabe779b8fb3519c94e0babb (patch)
tree9e24ffe8d89b58d464766d7c03ecabe4fe62d466 /Graphics/GraphicsEngineD3D12
parentAdded slerp; updated Quaternion in math lib (diff)
downloadDiligentCore-f3698c9127d6e384eabe779b8fb3519c94e0babb.tar.gz
DiligentCore-f3698c9127d6e384eabe779b8fb3519c94e0babb.zip
Added IShaderResourceVariable::IsBound method (updated API version to 240024)
Diffstat (limited to 'Graphics/GraphicsEngineD3D12')
-rw-r--r--Graphics/GraphicsEngineD3D12/include/ShaderVariableD3D12.h5
1 files changed, 5 insertions, 0 deletions
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;