Passing the arbitrary memory block to glsl

How could I pass the arbitrary memory block to GLSL?
DX has the ID3DXBaseEffect::SetValue method.
Is there similar method?

OpenGL generally doesn’t let you throw random memory at it, with some expectation that it will come out correctly on the other side. Everything you give OpenGL must conform to an expected format, usually an explicit one.

The closest to that you’ll get is uniform buffer objects. And those have either layout requirements that you must query, or a standard layout which is spelled out in loving detail in the specification which you must conform to.

This topic was automatically closed 183 days after the last reply. New replies are no longer allowed.