diff options
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/gfx/vk-swap-chain.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/gfx/vk-swap-chain.cpp b/tools/gfx/vk-swap-chain.cpp index 340e6a6a4..bde68c413 100644 --- a/tools/gfx/vk-swap-chain.cpp +++ b/tools/gfx/vk-swap-chain.cpp @@ -11,7 +11,7 @@ namespace gfx { using namespace Slang; -static int _indexOf(List<VkSurfaceFormatKHR>& formatsIn, VkFormat format) +static Index _indexOfFormat(List<VkSurfaceFormatKHR>& formatsIn, VkFormat format) { const Index numFormats = formatsIn.getCount(); const VkSurfaceFormatKHR* formats = formatsIn.getBuffer(); @@ -81,7 +81,7 @@ SlangResult VulkanSwapChain::init(VulkanDeviceQueue* deviceQueue, const Desc& de for(Index i = 0; i < formats.getCount(); ++i) { VkFormat format = formats[i]; - if (_indexOf(surfaceFormats, format) >= 0) + if (_indexOfFormat(surfaceFormats, format) >= 0) { m_format = format; } |
