32 lines
670 B
C
Raw Normal View History

#ifndef HGL_GRAPH_SHADER_PARAM_INCLUDE
#define HGL_GRAPH_SHADER_PARAM_INCLUDE
2019-12-06 21:45:51 +08:00
#include<hgl/type/BaseString.h>
2019-12-10 22:12:09 +08:00
#include<hgl/graph/shader/common.h>
#include<hgl/graph/shader/param/type.h>
2019-12-10 22:12:09 +08:00
BEGIN_SHADER_PARAM_NAMESPACE
2019-12-12 22:25:40 +08:00
/**
*
*/
class Param
{
UTF8String name; //参数名称
ParamType type; //类型
2019-12-06 21:45:51 +08:00
2019-12-12 22:25:40 +08:00
public:
2019-12-06 21:45:51 +08:00
2019-12-12 22:25:40 +08:00
Param(const UTF8String &n,const ParamType &t)
2019-12-06 21:45:51 +08:00
{
2019-12-12 22:25:40 +08:00
name=n;
type=t;
}
2019-12-06 21:45:51 +08:00
2019-12-12 22:25:40 +08:00
virtual ~Param()=default;
const UTF8String & GetName()const{return name;}
const ParamType GetType()const{return type;}
2019-12-12 22:25:40 +08:00
};//class Param
2019-12-10 22:12:09 +08:00
END_SHADER_PARAM_NAMESPACE
#endif//HGL_GRAPH_SHADER_PARAM_INCLUDE