ViewportId.resize

void resize(int newWidth, int newHeight) @safe nothrow @nogc

Resizes the viewport. Internally, this creates a new texture, so avoid calling it while the viewport is in use.