From 541560c6d8979d594ca383e432ae16e3be1872d5 Mon Sep 17 00:00:00 2001 From: Egor Yusov Date: Thu, 7 Mar 2019 19:49:59 -0800 Subject: Repalced IShaderResourceVariable::GetArraySize() and GetName() with GetResourceDesc() --- Graphics/GraphicsEngine/interface/ShaderResourceVariable.h | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'Graphics/GraphicsEngine') 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; -- cgit v1.2.3