How to chamfer edges with shaders

I really Apperiate you taking your time to answer my question.

why i want to implement the bevel this way is because i have a archvis 3d model that i want my users to be able to change the bevel at runtime.
i thought it would be much more time efficient if i could implement it using this way instead of manually making beveled meshes for my items then morph between them when user wants to bevel