First of all, sorry for the huge delay.
The patch is a bit awkward in that it's basically just style cleanup and those are generally frowned upon. Also maybe we don't want to use separate methods for d3d11 and d3d12 (more on that in reply to the next patch). It is a big cleanup though and I don't really want to waste your time reworking it...