Fixed assorted typos in comments and function names

This commit is contained in:
Cort 2016-11-28 22:12:43 -08:00
parent fda21f96c9
commit d5b03d26a5
3 changed files with 10 additions and 10 deletions

View file

@ -50,7 +50,7 @@ namespace vk
/** /**
* Default constructor * Default constructor
* *
* @param physicalDevice Phyiscal device that is to be used * @param physicalDevice Physical device that is to be used
*/ */
VulkanDevice(VkPhysicalDevice physicalDevice) VulkanDevice(VkPhysicalDevice physicalDevice)
{ {
@ -62,7 +62,7 @@ namespace vk
vkGetPhysicalDeviceProperties(physicalDevice, &properties); vkGetPhysicalDeviceProperties(physicalDevice, &properties);
// Features should be checked by the examples before using them // Features should be checked by the examples before using them
vkGetPhysicalDeviceFeatures(physicalDevice, &features); 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); vkGetPhysicalDeviceMemoryProperties(physicalDevice, &memoryProperties);
// Queue family properties, used for setting up requested queues upon device creation // Queue family properties, used for setting up requested queues upon device creation
uint32_t queueFamilyCount; 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 * @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 // Dedicated queue for compute
// Try to find a queue family index that supports compute but not graphics // Try to find a queue family index that supports compute but not graphics
@ -220,7 +220,7 @@ namespace vk
// Graphics queue // Graphics queue
if (requestedQueueTypes & VK_QUEUE_GRAPHICS_BIT) if (requestedQueueTypes & VK_QUEUE_GRAPHICS_BIT)
{ {
queueFamilyIndices.graphics = getQueueFamiliyIndex(VK_QUEUE_GRAPHICS_BIT); queueFamilyIndices.graphics = getQueueFamilyIndex(VK_QUEUE_GRAPHICS_BIT);
VkDeviceQueueCreateInfo queueInfo{}; VkDeviceQueueCreateInfo queueInfo{};
queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO; queueInfo.sType = VK_STRUCTURE_TYPE_DEVICE_QUEUE_CREATE_INFO;
queueInfo.queueFamilyIndex = queueFamilyIndices.graphics; queueInfo.queueFamilyIndex = queueFamilyIndices.graphics;
@ -236,7 +236,7 @@ namespace vk
// Dedicated compute queue // Dedicated compute queue
if (requestedQueueTypes & VK_QUEUE_COMPUTE_BIT) 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 (queueFamilyIndices.compute != queueFamilyIndices.graphics)
{ {
// If compute family index differs, we need an additional queue create info for the compute queue // 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 // Dedicated transfer queue
if (requestedQueueTypes & VK_QUEUE_TRANSFER_BIT) 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 ((queueFamilyIndices.transfer != queueFamilyIndices.graphics) && (queueFamilyIndices.transfer != queueFamilyIndices.compute))
{ {
// If compute family index differs, we need an additional queue create info for the compute queue // If compute family index differs, we need an additional queue create info for the compute queue

View file

@ -822,7 +822,7 @@ void VulkanExampleBase::initVulkan(bool enableValidation)
err = vkEnumeratePhysicalDevices(instance, &gpuCount, physicalDevices.data()); err = vkEnumeratePhysicalDevices(instance, &gpuCount, physicalDevices.data());
if (err) 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 : // Note :

View file

@ -81,7 +81,7 @@ public:
std::vector<VkImage> images; std::vector<VkImage> images;
std::vector<SwapChainBuffer> buffers; std::vector<SwapChainBuffer> buffers;
// Index of the deteced graphics and presenting device queue // 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; uint32_t queueNodeIndex = UINT32_MAX;
// Creates an os specific surface // 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 instance Vulkan instance to use
* @param physicalDevice Physical device used to query properties and formats relevant to the swapchain * @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); err = fpCreateSwapchainKHR(device, &swapchainCI, nullptr, &swapChain);
assert(!err); 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 // This also cleans up all the presentable images
if (oldSwapchain != VK_NULL_HANDLE) if (oldSwapchain != VK_NULL_HANDLE)
{ {