Fix code style

This commit is contained in:
Wojtek Figat
2020-12-22 12:57:00 +01:00
parent 4665e8fbdb
commit 16cd75d179
10 changed files with 17 additions and 108 deletions

View File

@@ -4,24 +4,11 @@
#include "GPUAdapterVulkan.h"
#include "GPUDeviceVulkan.h"
#include "RenderToolsVulkan.h"
GPUAdapterVulkan::GPUAdapterVulkan(VkPhysicalDevice gpu)
: Gpu(gpu)
{
// Query device information
vkGetPhysicalDeviceProperties(gpu, &GpuProps);
#if VULKAN_ENABLE_DESKTOP_HMD_SUPPORT
if (GPUDeviceVulkan::OptionalDeviceExtensions.HasKHRGetPhysicalDeviceProperties2)
{
VkPhysicalDeviceProperties2KHR GpuProps2;
RenderToolsVulkan::ZeroStruct(GpuProps2, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2_KHR);
GpuProps2.pNext = &GpuProps2;
RenderToolsVulkan::ZeroStruct(GpuIdProps, VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_ID_PROPERTIES_KHR);
vkGetPhysicalDeviceProperties2KHR(Gpu, &GpuProps2);
}
#endif
Description = GpuProps.deviceName;
}