From ad61c704277607d2583cbe214b6c0a54e02e3d90 Mon Sep 17 00:00:00 2001 From: Aman Gupta Date: Mon, 15 Jun 2020 16:47:20 -0700 Subject: [PATCH] define initGPUInfoProperties stub --- MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm index b85c016b..5654a9d7 100644 --- a/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm +++ b/MoltenVK/MoltenVK/GPUObjects/MVKDevice.mm @@ -1626,6 +1626,16 @@ void MVKPhysicalDevice::initGPUInfoProperties() { } #endif //MVK_IOS +#if MVK_TVOS +void MVKPhysicalDevice::initGPUInfoProperties() { + uint32_t devID = 0; + + _properties.vendorID = 0x0000106b; // Apple's PCI ID + _properties.deviceID = devID; + _properties.deviceType = VK_PHYSICAL_DEVICE_TYPE_INTEGRATED_GPU; + strlcpy(_properties.deviceName, _mtlDevice.name.UTF8String, VK_MAX_PHYSICAL_DEVICE_NAME_SIZE); +} +#endif #pragma mark VkPhysicalDeviceLimits - List of feature limits available on the device