View Full Version : Passing the arbitrary memory block to glsl
09-05-2011, 11:46 PM
How could I pass the arbitrary memory block to GLSL?
DX has the ID3DXBaseEffect::SetValue method.
Is there similar method?
09-05-2011, 11:51 PM
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.
Powered by vBulletin® Version 4.2.3 Copyright © 2017 vBulletin Solutions, Inc. All rights reserved.