FPN
FPN

Reputation: 1

OpenGL pixel transfer inside GPU

I have been working with VR recently and encountered some OpenGL related problem. The API i use for VR capture a video stream and write it to a texture, I, then, want to submit this texture to a headset. But there is an incompatibility in the API : the texture I get from the stream has an undefined internal format and cannot be submitted to the headset directly.

I am working on a workaround, for now, I have used a GPU -> CPU -> GPU transfer : I read the first texture pixel (with glReadPixels) and write them into a buffer, then I use this buffer to create a texture with the correct format. This works fine but has some latencies due to data transfers.

I have been trying to do a direct GPU copy but failed :

What are the steps to do a direct GPU copy?

Upvotes: 0

Views: 244

Answers (0)

Related Questions