heyx3 / Bplus.jl

A modern OpenGL 4.6 rendering framework, written in Julia.
Other
72 stars 3 forks source link

When the GL ViewDebugger service reports inactive views, get their original uniform names #55

Open heyx3 opened 1 year ago

heyx3 commented 1 year ago

In GL.service_view_debugger_check(), if there are any inactive Views that are about to be used in a Program, it raises an InactiveViewsException.

Currently this exception keeps a list of the offending Views, but since we know their corresponding uniform handles, we should be able to get the names of each uniform with glGetActiveUniform(), making the exception much more informative.

This is assuming that a uniform handle, which we use to set its value, is the same as its "index" that you would pass in for glGetActiveUniforrm(). If the two are different, then this is not such an easy task and we should skip it.