Sample nodes with image input?
If possible, we need a sampler function node that accepts an integer used to select the image to sample from.
If this is not possible, we need some type of setup change that allows us to create generic sampling functions that sample pixels from images, without those image indices being hard-coded into the functions.
Currently, the only way to do this is some type of switch selector that samples from several images and returns the one desired. And in the pixel processor, this is a problem, because all code ends up getting executed for each and every sample. This means we end up sampling from 5+ images for every single sample, just to get the option of selecting the image by index.