summaryrefslogtreecommitdiffstats
path: root/Graphics/GraphicsEngine
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/GraphicsEngine
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/GraphicsEngine')
-rw-r--r--Graphics/GraphicsEngine/interface/APIInfo.h2
-rw-r--r--Graphics/GraphicsEngine/interface/ShaderResourceVariable.h12
2 files changed, 10 insertions, 4 deletions
diff --git a/Graphics/GraphicsEngine/interface/APIInfo.h b/Graphics/GraphicsEngine/interface/APIInfo.h
index f1c89e58..fd6ef747 100644
--- a/Graphics/GraphicsEngine/interface/APIInfo.h
+++ b/Graphics/GraphicsEngine/interface/APIInfo.h
@@ -26,7 +26,7 @@
/// \file
/// Diligent API information
-#define DILIGENT_API_VERSION 240023
+#define DILIGENT_API_VERSION 240024
#include "../../../Primitives/interface/BasicTypes.h"
diff --git a/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h b/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h
index 1bf9fdfd..477c7380 100644
--- a/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h
+++ b/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h
@@ -120,13 +120,19 @@ public:
virtual void SetArray(IDeviceObject* const* ppObjects, Uint32 FirstElement, Uint32 NumElements) = 0;
/// Returns the shader resource variable type
- virtual SHADER_RESOURCE_VARIABLE_TYPE GetType()const = 0;
+ virtual SHADER_RESOURCE_VARIABLE_TYPE GetType() const = 0;
/// Returns shader resource description. See Diligent::ShaderResourceDesc.
- virtual ShaderResourceDesc GetResourceDesc()const = 0;
+ virtual ShaderResourceDesc GetResourceDesc() const = 0;
/// Returns the variable index that can be used to access the variable.
- virtual Uint32 GetIndex()const = 0;
+ virtual Uint32 GetIndex() const = 0;
+
+ /// Returns true if non-null resource is bound to this variable.
+
+ /// \param [in] ArrayIndex - Resource array index. Must be 0 for
+ /// non-array variables.
+ virtual bool IsBound(Uint32 ArrayIndex) const = 0;
};
}