ZenitUI
Retained-mode C++20 UI framework
Loading...
Searching...
No Matches
ZenitUI::FilterParam Struct Reference

One uniform exposed by a filter shader. More...

#include <FilterRegistry.hpp>

Public Member Functions

 FilterParam (std::string u, FilterParamType t, int ai, float fd)
 FilterParam (std::string u, FilterParamType t, int ai, Color cd)

Public Attributes

std::string uniform
FilterParamType type {FilterParamType::Float}
int argIndex {0}
float fdef {0.0f}
Vec2 vdef {}
Color cdef {Colors::White}

Detailed Description

One uniform exposed by a filter shader.

argIndex is the index into FilterRef::args that supplies this parameter's value; if the call site did not provide enough arguments, the default (fdef, vdef, or cdef) is used instead.


The documentation for this struct was generated from the following file: