Trying to come up to speed with DSA and more recent OpenGL changes. Was wondering if there’s a way to copy buffer to/from texture in similar fashion to how Vulkan’s vkCmdCopyBufferToImage and vkCmdCopyImageToBuffer?
glTextureSubImage with a buffer bound to
glGetTexture(Sub)Image with a buffer bound to
The DSA versions let you specify the texture directly (rather than using the texture bound to a specific target of the active texture unit), but for anything which can use either a buffer or client memory, you have to bind the buffer to the appropriate target.
Thanks, GClements. Exactly what I was looking for.