2 Replies Latest reply on Jun 10, 2008 10:01 AM by :smeyel:

    error using sampleNearest and sampleLinear

    :smeyel:
      I get the error:
      ERROR: image may be sampled with only one filter per kernel

      when trying to compile the following code:
      void evaluatePixel()
      {
      result = (smooth == 0) ? sampleNearest(source, outCoord()) : sampleLinear(source, outCoord());
      }

      Is there a workaround to obtain the same result without having to create two different filters?
      Thanks