From d5b03d26a5cc349b805ae69701625b5b34b6a93a Mon Sep 17 00:00:00 2001 From: Cort Date: Mon, 28 Nov 2016 22:12:43 -0800 Subject: [PATCH] Fixed assorted typos in comments and function names --- base/vulkandevice.hpp | 12 ++++++------ base/vulkanexamplebase.cpp | 2 +- base/vulkanswapchain.hpp | 6 +++--- 3 files changed, 10 insertions(+), 10 deletions(-) diff --git a/base/vulkandevice.hpp b/base/vulkandevice.hpp index 912f4a09..3f2e5105 100644 --- a/base/vulkandevice.hpp +++ b/base/vulkandevice.hpp @@ -50,7 +50,7 @@ namespace vk /** * Default constructor * - * @param physicalDevice Phyiscal device that is to be used + * @param physicalDevice Physical device that is to be used */ VulkanDevice(VkPhysicalDevice physicalDevice) { @@ -62,7 +62,7 @@ namespace vk vkGetPhysicalDeviceProperties(physicalDevice, &properties); // Features should be checked by the examples before using them vkGetPhysicalDeviceFeatures(physicalDevice, &features); - // Memory properties are used regularly for creating all kinds of buffer + // Memory properties are used regularly for creating all kinds of buffers vkGetPhysicalDeviceMemoryProperties(physicalDevice, &memoryProperties); // Queue family properties, used for setting up requested queues upon device creation uint32_t queueFamilyCount; @@ -147,7 +147,7 @@ namespace vk * * @throw Throws an exception if no queue family index could be found that supports the requested flags */ - uint32_t getQueueFamiliyIndex(VkQueueFlagBits queueFlags) + uint32_t getQueueFamilyIndex(VkQueueFlagBits queueFlags) { // Dedicated queue for compute // Try to find a queue family index that supports compute but not graphics @@ -220,7 +220,7 @@ namespace vk // Graphics queue if (requestedQueueTypes & VK_QUEUE_GRAPHICS_BIT) { - queueFamilyIndices.graphics = getQueueFamiliyIndex(VK_QUEUE_GRAPHICS_BIT); + queueFamilyIndices.graphics = getQueueFamilyIndex(VK_QUEUE_GRAPHICS_BIT); VkDeviceQueueCreateInfo queueInfo{}; queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; queueInfo.queueFamilyIndex = queueFamilyIndices.graphics; @@ -236,7 +236,7 @@ namespace vk // Dedicated compute queue if (requestedQueueTypes & VK_QUEUE_COMPUTE_BIT) { - queueFamilyIndices.compute = getQueueFamiliyIndex(VK_QUEUE_COMPUTE_BIT); + queueFamilyIndices.compute = getQueueFamilyIndex(VK_QUEUE_COMPUTE_BIT); if (queueFamilyIndices.compute != queueFamilyIndices.graphics) { // If compute family index differs, we need an additional queue create info for the compute queue @@ -257,7 +257,7 @@ namespace vk // Dedicated transfer queue if (requestedQueueTypes & VK_QUEUE_TRANSFER_BIT) { - queueFamilyIndices.transfer = getQueueFamiliyIndex(VK_QUEUE_TRANSFER_BIT); + queueFamilyIndices.transfer = getQueueFamilyIndex(VK_QUEUE_TRANSFER_BIT); if ((queueFamilyIndices.transfer != queueFamilyIndices.graphics) && (queueFamilyIndices.transfer != queueFamilyIndices.compute)) { // If compute family index differs, we need an additional queue create info for the compute queue diff --git a/base/vulkanexamplebase.cpp b/base/vulkanexamplebase.cpp index 3732b9b1..a120e30e 100644 --- a/base/vulkanexamplebase.cpp +++ b/base/vulkanexamplebase.cpp @@ -822,7 +822,7 @@ void VulkanExampleBase::initVulkan(bool enableValidation) err = vkEnumeratePhysicalDevices(instance, &gpuCount, physicalDevices.data()); if (err) { - vkTools::exitFatal("Could not enumerate phyiscal devices : \n" + vkTools::errorString(err), "Fatal error"); + vkTools::exitFatal("Could not enumerate physical devices : \n" + vkTools::errorString(err), "Fatal error"); } // Note : diff --git a/base/vulkanswapchain.hpp b/base/vulkanswapchain.hpp index aec18542..a9c6eb26 100644 --- a/base/vulkanswapchain.hpp +++ b/base/vulkanswapchain.hpp @@ -81,7 +81,7 @@ public: std::vector images; std::vector buffers; // Index of the deteced graphics and presenting device queue - /** @brief Queue family index of the deteced graphics and presenting device queue */ + /** @brief Queue family index of the detected graphics and presenting device queue */ uint32_t queueNodeIndex = UINT32_MAX; // Creates an os specific surface @@ -238,7 +238,7 @@ public: } /** - * Set instance, physical and logical device to use for the swpachain and get all required function pointers + * Set instance, physical and logical device to use for the swapchain and get all required function pointers * * @param instance Vulkan instance to use * @param physicalDevice Physical device used to query properties and formats relevant to the swapchain @@ -373,7 +373,7 @@ public: err = fpCreateSwapchainKHR(device, &swapchainCI, nullptr, &swapChain); assert(!err); - // If an existing sawp chain is re-created, destroy the old swap chain + // If an existing swap chain is re-created, destroy the old swap chain // This also cleans up all the presentable images if (oldSwapchain != VK_NULL_HANDLE) {