Thread with 6 posts
jump to expanded postOpenGL question: is there some way to share the storage between a renderbuffer and a texture, or directly convert a renderbuffer to a texture? note: I know I can construct a framebuffer and use it to copy a renderbuffer to a texture, I’m just wondering if I can skip that step
if I have to use functions from the platform API (i.e. not just gl* stuff) then the answer may as well be “no” though
hey wait what if I made a pixelbuffer and used glReadPixels and then glTexImage2D
…
hikari no, that’s just asking for terrible performance, just use framebuffer blitting at that point…
I know how this ends (it ends with me writing my own OpenGL implementation…)
232 lines of opengl code later, i’m free
hey, since I released it now, you can now see what I was complaining about: https://github.com/hikari-no-yume/touchHLE/blob/cf6b650ebb227ac588d2eb107a8cea90a5fbe97a/src/frameworks/opengles/eagl.rs#L162-L355