Closed Michael-Lfx closed 2 years ago
Uniform structs are not able to be partially updated, the main reason for this is because the GL locations of the internal variables are not ordered and can be different per device.
not possible with OpenGL ES 2.0
https://github.com/ConfettiFX/The-Forge/blob/4aa015991bcf383d9f83d94e4e2a74fd152dbcad/Common_3/Renderer/OpenGLES/GLES.cpp#L2483
It seems that
mOffset
is always 0. What’s the correct way to update partial data of a struct uniform variable or array uniform variable?