How to change the shape of the bokeh in DOF to a custom texture.

The question is how to change the bokeh shape in depth of field to a custom grayscale texture, if possible, to somehow open the camera or make a custom drawing with this change function.