Added support for texturewrap,comparefunc and compare mode  using deferred uniform