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

Make GlesPixelProgram / GlesTexProgram Send + Sync #1603

Merged
merged 2 commits into from
Dec 11, 2024

Conversation

ids1024
Copy link
Member

@ids1024 ids1024 commented Dec 10, 2024

https://registry.khronos.org/OpenGL/specs/es/2.0/es_full_spec_2.0.pdf appendix C states that programs, like textures, can be shared between contexts. So I believe this has the same considerations for use in different renderers/contexts/threads as GlesTexture.

This makes these types `Send + Sync`, like `GlesTexture`.

https://registry.khronos.org/OpenGL/specs/es/2.0/es_full_spec_2.0.pdf
appendix C states that programs, like textures, can be shared between
contexts. So I believe this has the same considerations for use in
different renderers/contexts/threads as `GlesTexture`.
Copy link
Member

@Drakulix Drakulix left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Seems sound

@Drakulix Drakulix merged commit 3823bae into Smithay:master Dec 11, 2024
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants