In addition to ULSD, there is also bio-diesel with different percent blends. For example, B20 is 80% petroleum diesel and 20% bio-diesel.
Bio-diesel has slightly less BTU's/gallon and shorter shelf life. If I have a choice, I don't use bio-diesel.
All engine manufacturers have specs BY ENGINE FAMILY AND ENGINE YEAR as to maximum permissible percent of bio-diesel. They also have published specs that biodiesel must meet. Note, Bubba making bio-diesel from McDonalds fryer may NOT meet the engine manufacturer's requirements.