igl
igl copied to clipboard
【Opengl】The DeviceFeatureLimits::BufferAlignment is not always equals 16 byte on OpenGL backend.
The DeviceFeatureLimits::BufferAlignment is not always equals 16 byte on OpenGL backend. For example , on iOS phone is 64, on iOS simulator is 256. So use glContext_.getIntegerv(GL_UNIFORM_BUFFER_OFFSET_ALIGNMENT, &tsize) to get the value is better.
@corporateshark has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.
@corporateshark Can this pull request about OpenGL be merged?
@vinsentli This PR triggered some errors with SwiftShader. We are looking into it.
@corporateshark merged this pull request in facebook/igl@004c6b580fee3e7d4dafdb7d634f86dba50c5a86.