diff --git a/python/src/utils.hpp b/python/src/utils.hpp index de557d7ba..69cd2a653 100644 --- a/python/src/utils.hpp +++ b/python/src/utils.hpp @@ -10,9 +10,9 @@ namespace py { static pybind11::dict vkPropertiesToDict(const vk::PhysicalDeviceProperties& properties) { - + std::string deviceName = properties.deviceName; pybind11::dict pyDict( - "device_name"_a = std::string(properties.deviceName), + "device_name"_a = deviceName, "max_work_group_count"_a = pybind11::make_tuple(properties.limits.maxComputeWorkGroupCount[0], properties.limits.maxComputeWorkGroupCount[1],