ConfettiFX / The-Forge

The Forge Cross-Platform Rendering Framework PC Windows, Steamdeck (native), Ray Tracing, macOS / iOS, Android, XBOX, PS4, PS5, Switch, Quest 2
Apache License 2.0
4.65k stars 491 forks source link

Question: updating partial uniform data on OpenGLES backend #212

Closed Michael-Lfx closed 2 years ago

Michael-Lfx commented 2 years ago

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?

TheOlav0 commented 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.

wolfgangfengel commented 2 years ago

not possible with OpenGL ES 2.0