diff options
| author | Egor Yusov <egor.yusov@gmail.com> | 2019-03-08 03:49:59 +0000 |
|---|---|---|
| committer | Egor Yusov <egor.yusov@gmail.com> | 2019-03-08 03:49:59 +0000 |
| commit | 541560c6d8979d594ca383e432ae16e3be1872d5 (patch) | |
| tree | a2e9e861c217994039838d4dd2d082d2b96a4438 /Graphics/GraphicsEngine | |
| parent | Added IShaderD3D interface and HLSLShaderResourceDesc structure (diff) | |
| download | DiligentCore-541560c6d8979d594ca383e432ae16e3be1872d5.tar.gz DiligentCore-541560c6d8979d594ca383e432ae16e3be1872d5.zip | |
Repalced IShaderResourceVariable::GetArraySize() and GetName() with GetResourceDesc()
Diffstat (limited to 'Graphics/GraphicsEngine')
| -rw-r--r-- | Graphics/GraphicsEngine/interface/ShaderResourceVariable.h | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h b/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h index 95b6eae5..1bf9fdfd 100644 --- a/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h +++ b/Graphics/GraphicsEngine/interface/ShaderResourceVariable.h @@ -29,6 +29,7 @@ #include "../../../Primitives/interface/BasicTypes.h" #include "../../../Primitives/interface/Object.h" #include "DeviceObject.h" +#include "Shader.h" namespace Diligent { @@ -121,11 +122,8 @@ public: /// Returns the shader resource variable type virtual SHADER_RESOURCE_VARIABLE_TYPE GetType()const = 0; - /// Returns array size. For non-array variables returns one. - virtual Uint32 GetArraySize()const = 0; - - /// Returns the variable name - virtual const Char* GetName()const = 0; + /// Returns shader resource description. See Diligent::ShaderResourceDesc. + virtual ShaderResourceDesc GetResourceDesc()const = 0; /// Returns the variable index that can be used to access the variable. virtual Uint32 GetIndex()const = 0; |
