Skip to content

Commit

Permalink
fixed clang-format
Browse files Browse the repository at this point in the history
  • Loading branch information
eugenegff committed Nov 22, 2024
1 parent 16aeec8 commit bb766ad
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 11 deletions.
10 changes: 4 additions & 6 deletions RenderSystems/Vulkan/src/OgreVulkanDevice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -465,10 +465,7 @@ namespace Ogre
{
}
//-------------------------------------------------------------------------
VulkanDevice::~VulkanDevice()
{
destroy();
}
VulkanDevice::~VulkanDevice() { destroy(); }
//-------------------------------------------------------------------------
void VulkanDevice::destroy()
{
Expand Down Expand Up @@ -578,7 +575,7 @@ namespace Ogre
makeVkStruct( deviceShaderFloat16Int8Features,
VK_STRUCTURE_TYPE_PHYSICAL_DEVICE_SHADER_FLOAT16_INT8_FEATURES );

PFN_vkGetPhysicalDeviceFeatures2KHR GetPhysicalDeviceFeatures2KHR =
PFN_vkGetPhysicalDeviceFeatures2KHR GetPhysicalDeviceFeatures2KHR =
(PFN_vkGetPhysicalDeviceFeatures2KHR)vkGetInstanceProcAddr(
mInstance->mVkInstance, "vkGetPhysicalDeviceFeatures2KHR" );

Expand Down Expand Up @@ -884,7 +881,8 @@ namespace Ogre
mDeviceExtensions.reserve( deviceExtensions.size() );
for( auto ext : deviceExtensions )
{
LogManager::getSingleton().logMessage( "Vulkan: Requesting device extension: " + String( ext ) );
LogManager::getSingleton().logMessage( "Vulkan: Requesting device extension: " +
String( ext ) );
mDeviceExtensions.push_back( ext );
}
std::sort( mDeviceExtensions.begin(), mDeviceExtensions.end() );
Expand Down
5 changes: 1 addition & 4 deletions RenderSystems/Vulkan/src/OgreVulkanQueue.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -68,10 +68,7 @@ namespace Ogre
{
}
//-------------------------------------------------------------------------
VulkanQueue::~VulkanQueue()
{
destroy();
}
VulkanQueue::~VulkanQueue() { destroy(); }
//-------------------------------------------------------------------------
void VulkanQueue::destroy()
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -477,7 +477,8 @@ namespace Ogre

VkSurfaceKHR surface;

VkResult result = vkCreateWin32SurfaceKHR( mDevice->mInstance->mVkInstance, &createInfo, 0, &surface );
VkResult result =
vkCreateWin32SurfaceKHR( mDevice->mInstance->mVkInstance, &createInfo, 0, &surface );
checkVkResult( result, "vkCreateWin32SurfaceKHR" );

mSurfaceKHR = surface;
Expand Down

0 comments on commit bb766ad

Please sign in to comment.