IDXCoreAdapter::GetPropertySize(DXCoreAdapterProperty::DriverDescription, &driver_description_size) returns the size of the string including the null terminating character, but the string that we pass to std::string shouldn't contain a terminating character. Therefore, after retrieving the adapter description, we need to remove the last character.
IDXCoreAdapter::GetPropertySize(DXCoreAdapterProperty::DriverDescription, &driver_description_size)
returns the size of the string including the null terminating character, but the string that we pass tostd::string
shouldn't contain a terminating character. Therefore, after retrieving the adapter description, we need to remove the last character.