306 dispatch_semaphore_wait((dispatch_semaphore_t)shader->lock, DISPATCH_TIME_FOREVER);
308 for (
int i = 0; i < shader->uniformsCount; ++i)
309 if (strcmp(shader->uniforms[i].type,
"VuoImage") == 0
310 && strcmp(shader->uniforms[i].name, uniformIdentifier) == 0)
312 VuoImage image = shader->uniforms[i].value.image;
313 dispatch_semaphore_signal((dispatch_semaphore_t)shader->lock);
317 dispatch_semaphore_signal((dispatch_semaphore_t)shader->lock);
327 dispatch_semaphore_wait((dispatch_semaphore_t)shader->lock, DISPATCH_TIME_FOREVER);
329 for (
int i = 0; i < shader->uniformsCount; ++i)
330 if (strcmp(shader->uniforms[i].type,
"VuoImage") == 0)
332 VuoImage image = shader->uniforms[i].value.image;
335 dispatch_semaphore_signal((dispatch_semaphore_t)shader->lock);
340 dispatch_semaphore_signal((dispatch_semaphore_t)shader->lock);