[PATCH vkd3d v4 4/4] vkd3d: Factor ReadFrom/WriteToSubresource validation and mapping.