Hello everyone! I have a question about what the most efficient way of accomplishing a task is. What I want to do is to pack multiple TOPs and some other data into a single “image” that can be shown out on a screen and interpreted by some other hardware. I want to use the GPU as much as possible to keep this performing well even when I am using large images but for now let’s say I have 2 - 3x3 images and 6 - 8 bit values. I want to render a single 8 bit image on the GPU and display it on a screen that contains all the data. For example:
If image 1 is -
[1 , 2, 3]
[4, 5, 6]
[7, 8, 9]
and Image 2 is -
[10, 11, 12]
[13, 14, 15]
[16, 17, 18]
and my values are -
255, 254, 253, 252, 251, 250
I want a single 5x5 image that is of this format:
[1, 2, 3, 4, 5]
[6, 7, 8, 9, 10]
[11, 12, 13, 14, 15]
[16, 17, 18, 0, 255]
[254, 253, 252, 251, 250]
The pack TOP seems intriguing but isn’t well documented and I’m not sure it’s flexible enough. I’m relatively certain I could accomplish this with a GLSL shader which I’m fairly certain would be high performance but isn’t very easy to maintain. Does anyone have any ideas on some of the other TOPs that might be able to handle a task like this? Or is the right answer a GLSL shader?