[PATCH vkd3d 02/11] vkd3d: Factor out d3d12_resource_init().