How to set a custom sampler to a dynamicly generated atlas?

Card stencil is a tilesource with a single tile in it