mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-12-28 18:41:14 +00:00
gs-effect: Allow retrieving effect parameter name
This commit is contained in:
parent
4b364865a1
commit
71900e6752
2 changed files with 6 additions and 1 deletions
|
@ -107,6 +107,10 @@ GS::EffectParameter::EffectParameter(gs_eparam_t* param) {
|
|||
gs_effect_get_param_info(m_param, &m_paramInfo);
|
||||
}
|
||||
|
||||
std::string GS::EffectParameter::GetName() {
|
||||
return m_paramInfo.name;
|
||||
}
|
||||
|
||||
GS::EffectParameter::Type GS::EffectParameter::GetType() {
|
||||
switch (m_paramInfo.type) {
|
||||
case GS_SHADER_PARAM_BOOL:
|
||||
|
|
|
@ -55,7 +55,8 @@ namespace GS {
|
|||
|
||||
public:
|
||||
EffectParameter(gs_eparam_t* param);
|
||||
|
||||
|
||||
std::string GetName();
|
||||
Type GetType();
|
||||
|
||||
void SetBoolean(bool v);
|
||||
|
|
Loading…
Reference in a new issue