Try Filter>Vanishing Point, which can do the perspective scaling automatically.
Looking at the Graffiti tutorial link I see I need to copy the texture to the clipboard, turn off the source of the texture, activate a layer to receive the perspective texture, filter>vanishing point, click 4 times to denote the perspective shape, then edit paste.
I do all that but at edit paste my pasted in test sheet of black dots just fills the original rectangular picture shape and doesn't appear within the perspective shape as did the graffiti. Try again and ditto.
Failed. Followed the tutorial exactly.
Also it would seem I have to firstly create the texture as far into distance as need to go wider than the shape I am painting, then apply filter to the texture, then I would edit out all the parts not needing the carpet..
So is there a way of rubber stamping and it lays down scaled texture ?
The vanishing point filter attempts to do what you describe, but it takes quite a bit of finess to get it to work well. I create the kinds of images that you describe for a carpet client of mine. I use vanishing point a lot in the work. I also use an extended set of advanced Photoshop skills that I have acquired over many years to create believable images. There is no quick way to make these kinds of images.
You could ‘rubber stamp’ out a large field of the texture in 2D space. Make it much bigger than the area you need to fill. Then you could use transform, or vanishing point to lay the texture into the 3D space.