Guest User

Untitled

a guest
May 24th, 2018
99
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.39 KB | None | 0 0
  1. static void updateUniformIV (const string &uniform, usize count, const s32 *val)
  2. {
  3.     sUniformCallbacks[uniform] = [count, val] (Program *prog, const string &uniform)
  4.         {
  5.             Uniform uni = prog->getUniform(uniform);
  6.             uni.setIV(count, val);
  7.         };
  8.  
  9.     for each (auto i in sPrograms)
  10.     {
  11.         const Program *prog = i.second;
  12.         Uniform uni = prog->getUniform(uniform);
  13.         uni.setIV(count, val);
  14.     }
  15. }
Add Comment
Please, Sign In to add comment