18 #ifndef GZ_RENDERING_SHADERPARAM_HH_
19 #define GZ_RENDERING_SHADERPARAM_HH_
26 #include <gz/utils/SuppressWarning.hh>
28 #include "gz/rendering/config.hh"
29 #include "gz/rendering/Export.hh"
35 inline namespace GZ_RENDERING_VERSION_NAMESPACE {
38 class ShaderParamPrivate;
55 PARAM_FLOAT_BUFFER = 3,
64 PARAM_TEXTURE_CUBE = 6,
79 public: ParamType Type()
const;
83 public: uint32_t Count()
const;
92 public:
void operator=(
const float _value);
96 public:
void operator=(
const int _value);
104 uint32_t _uvSetIndex = 0u);
108 public:
void InitializeBuffer(uint32_t _count);
112 public:
void UpdateBuffer(
float *_floatBuffer);
116 public:
void UpdateBuffer(
int *_intBuffer);
121 public:
bool Value(
float *_value)
const;
126 public:
bool Value(
int *_value)
const;
132 public:
bool Value(
std::string &_value, uint32_t &_uvSetIndex)
const;
140 GZ_UTILS_WARN_IGNORE__DLL_INTERFACE_MISSING
142 GZ_UTILS_WARN_RESUME__DLL_INTERFACE_MISSING