Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

【Opengl】The DeviceFeatureLimits::BufferAlignment is not always equals 16 byte on OpenGL backend. #113

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

vinsentli
Copy link
Contributor

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.

@facebook-github-bot
Copy link
Contributor

@corporateshark has imported this pull request. If you are a Meta employee, you can view this diff on Phabricator.

@vinsentli vinsentli changed the title The DeviceFeatureLimits::BufferAlignment is not always equals 16 byte on OpenGL backend. 【Opengl】The DeviceFeatureLimits::BufferAlignment is not always equals 16 byte on OpenGL backend. May 3, 2024
@vinsentli
Copy link
Contributor Author

@corporateshark
Can this pull request about OpenGL be merged?

@corporateshark
Copy link
Contributor

@vinsentli This PR triggered some errors with SwiftShader. We are looking into it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants