Skip to content

GL Backend Integration Attempt With Bevy #1630

Answered by kvark
zicklag asked this question in Q&A
Discussion options

You must be logged in to vote

Hi! You are correct, the GL backend currently assumes that the device, buffers, and the queue are used on one thread, at least one at a time.

Do you have env_logger hooked up? By default, we route GL's debug logging to log, so it would tell us what went wrong with buffer mapping that returned NULL.

Your idea with a dedicated thread is worth considering. It's not clear, for example, how would a method like create_texture return a texture if the actual execution happens on another thread. Rolling out the full client-server ID management (like wgpu does in Gecko, for example), is a bit too heavy handed of a solution.

It's possible that EGL would be fine with us accessing the context from dif…

Replies: 1 comment 3 replies

Comment options

You must be logged in to vote
3 replies
@zicklag
Comment options

@zicklag
Comment options

@zicklag
Comment options

Answer selected by zicklag
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants