Using ValueAccessor Sampler

Replace the Tree based sampler by Value Accessor Sampler, improve the
performance.  I gave every thread a value accessor, for pass the thread
info, I added a [int thread_index] in the TextureOpt