summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Giessen <charles@lunarg.com>2021-11-16 18:20:49 -0700
committerCharles Giessen <46324611+charles-lunarg@users.noreply.github.com>2022-02-02 16:22:12 -0700
commite9160a7be48478dbf66c4c5b9e56adcdad98dab4 (patch)
tree7ab16fe764a9e39810db6cf1350cb05c09af0e0a
parentf6116ecbe28d649d61bc150295346fb151607ca1 (diff)
downloadVulkan-Tools-e9160a7be48478dbf66c4c5b9e56adcdad98dab4.tar.gz
Vulkan-Tools-e9160a7be48478dbf66c4c5b9e56adcdad98dab4.tar.bz2
Vulkan-Tools-e9160a7be48478dbf66c4c5b9e56adcdad98dab4.zip
vulkaninfo: Fix spelling mistakes
-rw-r--r--vulkaninfo/outputprinter.h2
-rw-r--r--vulkaninfo/vulkaninfo.cpp10
2 files changed, 6 insertions, 6 deletions
diff --git a/vulkaninfo/outputprinter.h b/vulkaninfo/outputprinter.h
index 2d4e97ac..785f2b2b 100644
--- a/vulkaninfo/outputprinter.h
+++ b/vulkaninfo/outputprinter.h
@@ -705,7 +705,7 @@ class Printer {
int element_index = -1; // negative one is the sentinel value
// json
- std::stack<bool> is_first_item; // for json: for adding a comma inbetween objects
+ std::stack<bool> is_first_item; // for json: for adding a comma in between objects
std::stack<bool> is_array; // for json: match pairs of {}'s and []'s
// utility
diff --git a/vulkaninfo/vulkaninfo.cpp b/vulkaninfo/vulkaninfo.cpp
index f17e084c..35fc62a6 100644
--- a/vulkaninfo/vulkaninfo.cpp
+++ b/vulkaninfo/vulkaninfo.cpp
@@ -202,7 +202,7 @@ void DumpPresentableSurfaces(Printer &p, AppInstance &inst, const std::vector<st
for (auto &surface : surfaces) {
auto exists = surface_list.end();
for (auto it = surface_list.begin(); it != surface_list.end(); it++) {
- // check for duplicat surfaces that differ only by the surface extension
+ // check for duplicate surfaces that differ only by the surface extension
if (*(it->surface) == *(surface.get())) {
exists = it;
break;
@@ -395,7 +395,7 @@ std::string NumToNiceStr(const size_t sz) {
return std::string(buf);
}
-std::string append_human_readible(VkDeviceSize memory) {
+std::string append_human_readable(VkDeviceSize memory) {
return std::to_string(memory) + " (" + to_hex_str(memory) + ") (" + NumToNiceStr(static_cast<size_t>(memory)) + ")";
}
@@ -410,10 +410,10 @@ void GpuDumpMemoryProps(Printer &p, AppGpu &gpu) {
p.SetElementIndex(static_cast<int>(i));
ObjectWrapper obj_mem_heap(p, "memoryHeaps");
- p.PrintKeyString("size", append_human_readible(gpu.memory_props.memoryHeaps[i].size), 6);
+ p.PrintKeyString("size", append_human_readable(gpu.memory_props.memoryHeaps[i].size), 6);
if (gpu.CheckPhysicalDeviceExtensionIncluded(VK_EXT_MEMORY_BUDGET_EXTENSION_NAME)) {
- p.PrintKeyString("budget", append_human_readible(gpu.heapBudget[i]), 6);
- p.PrintKeyString("usage", append_human_readible(gpu.heapUsage[i]), 6);
+ p.PrintKeyString("budget", append_human_readable(gpu.heapBudget[i]), 6);
+ p.PrintKeyString("usage", append_human_readable(gpu.heapUsage[i]), 6);
}
DumpVkMemoryHeapFlags(p, "flags", gpu.memory_props.memoryHeaps[i].flags, 6);
}