Are you really sure you need a search texture?
It seems that it would be better if you had a textured rectangular mesh (or a non-rectangular mesh, of course, like a face recognition algorithm that most likely returns a facial mesh) and distorted it according to the algorithm:

Not only can you do this in the vertex shader, thereby processing each node mesh in parallel, but it also has fewer values ββto process compared to dynamically generating textures.
- Y 0 , , (, , ) , R G X Y.
.
, - , .