Synchronisation in OpenGL (part 1.1)

 ̄綄美尐妖づ 提交于 2019-12-20 03:47:11

问题


My questions pertain to the use of a single OpenGL 4.5 context without any direct memory mapping or explicit synchronisation (hypothetically), with both rendering shaders (invoked with glDrawArrays()) and compute shaders (invoked with glDispatchCompute()).

Question 1.1: Are all changes to rendering state – such as with glUseProgram(), glEnable()/glDisable(), glStencilFunc(), glStencilOp(),glClearColor(), glStencilMask(), glClearStencil(), glBlendFunc(), glColorMask(), etc. – made by the client application BEFORE invoking shaders guaranteed to be seen by those shader invocations (and associated fixed-function rendering operations)?

And if the answer is NO, what forms of synchronisation when added would change the answer to YES?

来源:https://stackoverflow.com/questions/59328829/synchronisation-in-opengl-part-1-1

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!