d3d11: Introduce get_resource_properties() helper function.