Skip to content

Commit

Permalink
[Vk] use EXT struct name, to build properly with Vulkan 1.2 headers
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Feb 3, 2025
1 parent ce59129 commit 2f82014
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion RenderSystems/Vulkan/include/OgreVulkanDevice.h
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ namespace Ogre
VkPhysicalDeviceFeatures2 &deviceFeatures2,
VkPhysicalDevice16BitStorageFeatures &device16BitStorageFeatures,
VkPhysicalDeviceShaderFloat16Int8Features &deviceShaderFloat16Int8Features,
VkPhysicalDevicePipelineCreationCacheControlFeatures &deviceCacheControlFeatures );
VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT &deviceCacheControlFeatures );

static void destroyQueues( FastArray<VulkanQueue> &queueArray );

Expand Down
6 changes: 3 additions & 3 deletions RenderSystems/Vulkan/src/OgreVulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -600,7 +600,7 @@ namespace Ogre
VkPhysicalDeviceFeatures2 &deviceFeatures2,
VkPhysicalDevice16BitStorageFeatures &device16BitStorageFeatures,
VkPhysicalDeviceShaderFloat16Int8Features &deviceShaderFloat16Int8Features,
VkPhysicalDevicePipelineCreationCacheControlFeatures &deviceCacheControlFeatures )
VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT &deviceCacheControlFeatures )
{
if( !VulkanInstance::hasExtension( VK_KHR_GET_PHYSICAL_DEVICE_PROPERTIES_2_EXTENSION_NAME ) )
return false;
Expand Down Expand Up @@ -768,7 +768,7 @@ namespace Ogre
VkPhysicalDeviceFeatures2 deviceFeatures2;
VkPhysicalDevice16BitStorageFeatures device16BitStorageFeatures;
VkPhysicalDeviceShaderFloat16Int8Features deviceShaderFloat16Int8Features;
VkPhysicalDevicePipelineCreationCacheControlFeatures deviceCacheControlFeatures;
VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT deviceCacheControlFeatures;
fillDeviceFeatures2( deviceFeatures2, device16BitStorageFeatures,
deviceShaderFloat16Int8Features, deviceCacheControlFeatures );
}
Expand Down Expand Up @@ -977,7 +977,7 @@ namespace Ogre
VkPhysicalDeviceFeatures2 deviceFeatures2;
VkPhysicalDevice16BitStorageFeatures device16BitStorageFeatures;
VkPhysicalDeviceShaderFloat16Int8Features deviceShaderFloat16Int8Features;
VkPhysicalDevicePipelineCreationCacheControlFeatures deviceCacheControlFeatures;
VkPhysicalDevicePipelineCreationCacheControlFeaturesEXT deviceCacheControlFeatures;
if( fillDeviceFeatures2( deviceFeatures2, device16BitStorageFeatures,
deviceShaderFloat16Int8Features, deviceCacheControlFeatures ) )
{
Expand Down

0 comments on commit 2f82014

Please sign in to comment.