Drawing textures to custom rectangles with SDL2

I would like to draw a texture to a shape in a way like SDL_gfx but instead of a perfect polygon, I would like to deform the texture by assigning different coordinates to the rectangle’s vertices forming odd shapes like a trapezoid or other quadrilateral. Can “vanilla” SDL do this or what library/addon can I use to do this? Or will I need to use opengl code directly?

I still haven’t found anything useful elsewhere

duh there’s SDL_GL functions