I need to write a Vulkan app which has a compute shader which takes:
- YUV image, each pixel has 3 bytes for Y,U,V components with values between 0…255
- warping grid for each pixel a vec2 coordinates floats with values 0.0 … 1.0
and it returns the output buffer with the warped image.
I was told that I can use texture() for that but I couldnt figure out how to do it.
Any help much appreciated!
Thanks,
Andrei