From 53a3753caf997cee19a4c8021fafab0ae71de5d2 Mon Sep 17 00:00:00 2001 From: Fabian Sauter Date: Wed, 27 Jul 2022 12:59:08 +0200 Subject: [PATCH] Fixed deviceName conversion Signed-off-by: Fabian Sauter --- python/src/utils.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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],