[PATCH 4/7] d3d11: Add a helper to create DXGI resource objects.