fix
This commit is contained in:
parent
22b8af7bfc
commit
b4bd0c03c5
1 changed files with 6 additions and 8 deletions
|
|
@ -528,17 +528,10 @@ void Device::Initialize() {
|
||||||
{
|
{
|
||||||
VkPhysicalDevice device = physDevices[i];
|
VkPhysicalDevice device = physDevices[i];
|
||||||
|
|
||||||
VkPhysicalDeviceProperties2 properties2{
|
uint32_t score;
|
||||||
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2,
|
|
||||||
.pNext = &rayTracingProperties
|
|
||||||
};
|
|
||||||
vkGetPhysicalDeviceProperties2(device, &properties2);
|
|
||||||
|
|
||||||
VkPhysicalDeviceProperties properties;
|
VkPhysicalDeviceProperties properties;
|
||||||
vkGetPhysicalDeviceProperties(device, &properties);
|
vkGetPhysicalDeviceProperties(device, &properties);
|
||||||
|
|
||||||
uint32_t score;
|
|
||||||
|
|
||||||
switch (properties.deviceType)
|
switch (properties.deviceType)
|
||||||
{
|
{
|
||||||
default :
|
default :
|
||||||
|
|
@ -567,6 +560,11 @@ void Device::Initialize() {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
VkPhysicalDeviceProperties2 properties2{
|
||||||
|
.sType = VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_PROPERTIES_2,
|
||||||
|
.pNext = &rayTracingProperties
|
||||||
|
};
|
||||||
|
vkGetPhysicalDeviceProperties2(physDevice, &properties2);
|
||||||
|
|
||||||
uint32_t queueFamilyCount;
|
uint32_t queueFamilyCount;
|
||||||
vkGetPhysicalDeviceQueueFamilyProperties(physDevice, &queueFamilyCount, NULL);
|
vkGetPhysicalDeviceQueueFamilyProperties(physDevice, &queueFamilyCount, NULL);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue