Thread with 12 posts

jump to expanded post

OpenGL 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

Open thread at this post

@aeva it’s not that I want to avoid using a framebuffer, I’m just forced by, uh, the specific legacy code I am dealing with, to render everything to a renderbuffer, and it just frustrates me that I have to copy it to another thing (a texture) before I can do anything useful with it

Open thread at this post
Richard Barrell , @0x2ba22e11@unstable.systems
(open profile)

@hikari I believe the answer is no you can't have them share a block of GPU memory because the point of a renderbuffer is to have a simple flat structure and the point of a texture is to have a sampling-friendly weird structure where it's broken up into tiles laid out in morton order or whatever
so the need to explicitly copy data from one to the other reflects this?

Open remote post (opens in a new window)