sokol-multithread
sokol-multithread copied to clipboard
Returning error if uniform size is too big
In this part is interesting to return an error or print if size is too big:
// data size too big?
if ((size_t)data.size > sizeof(SokolRenderCommand::apply_uniforms.buf))
{
return;
}
Can be hard to debug!
Yes, that would make sense.
Possible even an assert?
Possible even an assert?
Yes, Sokol style assert should be good.