mirror of
https://github.com/Xaymar/obs-StreamFX
synced 2024-11-11 06:15:05 +00:00
gfx-shader-param: FIXME Don't create parameters for invisible
This commit is contained in:
parent
de473f0c2e
commit
24edee795a
1 changed files with 7 additions and 0 deletions
|
@ -30,6 +30,13 @@ std::shared_ptr<gfx::shader::parameter> gfx::shader::parameter::make_parameter(g
|
|||
if (!param)
|
||||
return nullptr;
|
||||
|
||||
// ToDo: Allow other parameters to specify hidden properties, as well as the shader itself, and the source/filter/transition.
|
||||
if (auto anno = param.get_annotation("visible"); anno != nullptr) {
|
||||
if (!anno.get_default_bool()) {
|
||||
return nullptr;
|
||||
}
|
||||
}
|
||||
|
||||
typedef gs::effect_parameter::type eptype;
|
||||
switch (param.get_type()) {
|
||||
case eptype::Boolean: {
|
||||
|
|
Loading…
Reference in a new issue