Without knowing what renderer you have in mind, it’s difficult to answer.
Most shaders have some function that would allow you to add two user variables and a switch, and adjust the tiling depending on the output from the .sbsar
Substance graphs, even really complex ones, can’t produce more than a texture set with specific pixel dimensions - some internal nodes have the concept of physical scale, but this information isn’t normally included in the output.
It is theoretically possible to add it as metadata to the .sbsar, (described
here) but it looks to be a pretty horrible process.