[PATCH 1/6] d3d11: Introduce get_resource_properties() helper function.