glUniform and 1 large buffer

Started by
1 comment, last by hdxpete 10 years, 10 months ago

Directx 11 has a very nice (from my pov) way to deal with shader parameters via the constant buffer. it seems to me that it would be really cool if i could do the same thing in opengl

ie. just pass for example 200 bytes of float data and have it fill a struct that is 200 bytes long in the shader. ok... i get it the data im transfering to the shader might not be 200 bytes for that GPU etc etc etc.

however setting (for example) 30 uniform values for every uniform in the shader seems slow. is there an extention that would behave similiar to directx?

thanks for reading

Advertisement

Sounds like GL_ARB_uniform_buffer_object

thank you tremendously

This topic is closed to new replies.

Advertisement