11 #ifndef __RE_Uniform__
12 #define __RE_Uniform__
141 #define RE_UNIFORM_CUSTOM RE_UNIFORM_BUILT_IN__count
239 static void getArrayNameAndIndex(
const char *str,
262 const void *
getValue(
int index=0)
const;
265 bool setValues(
const void *
value);
267 int getInt(
int index=0)
const;
268 fpreal getFloat(
int index=0)
const;
272 UT_Color getColor(
int index=0)
const;
273 fpreal getAlpha(
int index=0)
const;
291 bool copyBytes(
const void *
data);
298 { myAutoGeneratedFlag =
gen; }
305 static int getBuiltIn(
const RE_Uniform *uniform,
318 static void initBuiltIns();
333 const void *
data =
nullptr);
357 void storeShaderUniformIndex(
const RE_Shader *sh,
359 int getShaderUniformIndex(
const RE_Shader *sh)
const;
380 bool myAutoGeneratedFlag;
384 mutable int myStoredIndex;
385 mutable int myStoredShaderSerial;
386 mutable exint myStoredShaderID;
OIIO_UTIL_API bool copy(string_view from, string_view to, std::string &err)
__hostdev__ void setValue(uint32_t offset, bool v)
__hostdev__ float getValue(uint32_t i) const
bool operator==(const BaseDimensions< T > &a, const BaseDimensions< Y > &b)
GA_API const UT_StringHolder gen
GLuint const GLchar * name
IMF_EXPORT bool isImage(const std::string &name)
FMT_INLINE void print(format_string< T...> fmt, T &&...args)