diff --git a/README.md b/README.md
index 7b47202a..9acb336d 100644
--- a/README.md
+++ b/README.md
@@ -373,7 +373,7 @@ Adds ray traced shadows casting using the new Nvidia RTX extensions to a more co
#### [10 - Ray traced reflections with VK_NV_ray_tracing](examples/nv_ray_tracing_reflections)
-Renders a complex scene with reflective surfaces using using the new Nvidia RTX extensions. Shows how to do recursion inside of the ray tracing shaders for implementing real time reflections.
+Renders a complex scene with reflective surfaces using the new Nvidia RTX extensions. Shows how to do recursion inside of the ray tracing shaders for implementing real time reflections.
### Misc
diff --git a/examples/bloom/bloom.cpp b/examples/bloom/bloom.cpp
index 5197a3f4..02276ab9 100644
--- a/examples/bloom/bloom.cpp
+++ b/examples/bloom/bloom.cpp
@@ -505,7 +505,7 @@ public:
setLayoutBindings = {
vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_VERTEX_BIT, 0), // Binding 0 : Vertex shader uniform buffer
vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER, VK_SHADER_STAGE_FRAGMENT_BIT, 1), // Binding 1 : Fragment shader image sampler
- vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_FRAGMENT_BIT, 2), // Binding 2 : Framgnet shader image sampler
+ vks::initializers::descriptorSetLayoutBinding(VK_DESCRIPTOR_TYPE_UNIFORM_BUFFER, VK_SHADER_STAGE_FRAGMENT_BIT, 2), // Binding 2 : Fragment shader image sampler
};
descriptorSetLayoutCreateInfo = vks::initializers::descriptorSetLayoutCreateInfo(setLayoutBindings.data(), setLayoutBindings.size());
@@ -663,7 +663,7 @@ public:
VK_CHECK_RESULT(uniformBuffers.blurParams.map());
VK_CHECK_RESULT(uniformBuffers.skyBox.map());
- // Intialize uniform buffers
+ // Initialize uniform buffers
updateUniformBuffersScene();
updateUniformBuffersBlur();
}
diff --git a/examples/computecloth/computecloth.cpp b/examples/computecloth/computecloth.cpp
index de7cc8e0..47d1e782 100644
--- a/examples/computecloth/computecloth.cpp
+++ b/examples/computecloth/computecloth.cpp
@@ -422,7 +422,7 @@ public:
indices.push_back((y + 1) * cloth.gridsize.x + x);
indices.push_back((y)* cloth.gridsize.x + x);
}
- // Primitive restart (signlaed by special value 0xFFFFFFFF)
+ // Primitive restart (signaled by special value 0xFFFFFFFF)
indices.push_back(0xFFFFFFFF);
}
uint32_t indexBufferSize = static_cast(indices.size()) * sizeof(uint32_t);
diff --git a/examples/computecullandlod/computecullandlod.cpp b/examples/computecullandlod/computecullandlod.cpp
index 24b1342b..7f8fdbbe 100644
--- a/examples/computecullandlod/computecullandlod.cpp
+++ b/examples/computecullandlod/computecullandlod.cpp
@@ -317,7 +317,7 @@ public:
// Vertex attribute bindings
attributeDescriptions = {
- // Per-vertex attributees
+ // Per-vertex attributes
// These are advanced for each vertex fetched by the vertex shader
vks::initializers::vertexInputAttributeDescription(VERTEX_BUFFER_BIND_ID, 0, VK_FORMAT_R32G32B32_SFLOAT, offsetof(vkglTF::Vertex, pos)), // Location 0: Position
vks::initializers::vertexInputAttributeDescription(VERTEX_BUFFER_BIND_ID, 1, VK_FORMAT_R32G32B32_SFLOAT, offsetof(vkglTF::Vertex, normal)), // Location 1: Normal
diff --git a/examples/computeraytracing/computeraytracing.cpp b/examples/computeraytracing/computeraytracing.cpp
index 76ca504c..57a00d17 100644
--- a/examples/computeraytracing/computeraytracing.cpp
+++ b/examples/computeraytracing/computeraytracing.cpp
@@ -681,7 +681,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
VK_CHECK_RESULT(vkQueueSubmit(queue, 1, &submitInfo, VK_NULL_HANDLE));
diff --git a/examples/conditionalrender/conditionalrender.cpp b/examples/conditionalrender/conditionalrender.cpp
index cbb3e4d6..be351d61 100644
--- a/examples/conditionalrender/conditionalrender.cpp
+++ b/examples/conditionalrender/conditionalrender.cpp
@@ -4,7 +4,7 @@
* Note: Requires a device that supports the VK_EXT_conditional_rendering extension
*
* With conditional rendering it's possible to execute certain rendering commands based on a buffer value instead of having to rebuild the command buffers.
-* This example sets up a conditonal buffer with one value per glTF part, that is used to toggle visibility of single model parts.
+* This example sets up a conditional buffer with one value per glTF part, that is used to toggle visibility of single model parts.
*
* Copyright (C) 2018 by Sascha Willems - www.saschawillems.de
*
@@ -268,7 +268,7 @@ public:
/*
[POI] Extension specific setup
- Gets the function pointers required for conditonal rendering
+ Gets the function pointers required for conditional rendering
Sets up a dedicated conditional buffer that is used to determine visibility at draw time
*/
void prepareConditionalRendering()
diff --git a/examples/debugmarker/debugmarker.cpp b/examples/debugmarker/debugmarker.cpp
index 3e022b53..3f4c53b3 100644
--- a/examples/debugmarker/debugmarker.cpp
+++ b/examples/debugmarker/debugmarker.cpp
@@ -1,5 +1,5 @@
/*
-* Vulkan Example - Example for VK_EXT_debug_marker extension. To be used in conjuction with a debugging app like RenderDoc (https://renderdoc.org)
+* Vulkan Example - Example for VK_EXT_debug_marker extension. To be used in conjunction with a debugging app like RenderDoc (https://renderdoc.org)
*
* Copyright (C) by Sascha Willems - www.saschawillems.de
*
diff --git a/examples/deferredshadows/deferredshadows.cpp b/examples/deferredshadows/deferredshadows.cpp
index a8767310..c79a9a27 100644
--- a/examples/deferredshadows/deferredshadows.cpp
+++ b/examples/deferredshadows/deferredshadows.cpp
@@ -59,7 +59,7 @@ public:
float zFar = 64.0f;
float lightFOV = 100.0f;
- // Depth bias (and slope) are used to avoid shadowing artefacts
+ // Depth bias (and slope) are used to avoid shadowing artifacts
float depthBiasConstant = 1.25f;
float depthBiasSlope = 1.75f;
diff --git a/examples/descriptorsets/descriptorsets.cpp b/examples/descriptorsets/descriptorsets.cpp
index 2b9d7859..d5254f81 100644
--- a/examples/descriptorsets/descriptorsets.cpp
+++ b/examples/descriptorsets/descriptorsets.cpp
@@ -220,7 +220,7 @@ public:
descriptorPoolCI.sType = VK_STRUCTURE_TYPE_DESCRIPTOR_POOL_CREATE_INFO;
descriptorPoolCI.poolSizeCount = static_cast(descriptorPoolSizes.size());
descriptorPoolCI.pPoolSizes = descriptorPoolSizes.data();
- // Max. number of descriptor sets that can be allocted from this pool (one per object)
+ // Max. number of descriptor sets that can be allocated from this pool (one per object)
descriptorPoolCI.maxSets = static_cast(cubes.size());
VK_CHECK_RESULT(vkCreateDescriptorPool(device, &descriptorPoolCI, nullptr, &descriptorPool));
@@ -266,7 +266,7 @@ public:
writeDescriptorSets[1].dstSet = cube.descriptorSet;
writeDescriptorSets[1].dstBinding = 1;
writeDescriptorSets[1].descriptorType = VK_DESCRIPTOR_TYPE_COMBINED_IMAGE_SAMPLER;
- // Images use a different descriptor strucutre, so we use pImageInfo instead of pBufferInfo
+ // Images use a different descriptor structure, so we use pImageInfo instead of pBufferInfo
writeDescriptorSets[1].pImageInfo = &cube.texture.descriptor;
writeDescriptorSets[1].descriptorCount = 1;
diff --git a/examples/displacement/displacement.cpp b/examples/displacement/displacement.cpp
index 58d1cc0d..1f2a9692 100644
--- a/examples/displacement/displacement.cpp
+++ b/examples/displacement/displacement.cpp
@@ -368,7 +368,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
diff --git a/examples/distancefieldfonts/distancefieldfonts.cpp b/examples/distancefieldfonts/distancefieldfonts.cpp
index dcaf5e3a..39aeedbb 100644
--- a/examples/distancefieldfonts/distancefieldfonts.cpp
+++ b/examples/distancefieldfonts/distancefieldfonts.cpp
@@ -141,7 +141,7 @@ public:
uniformBuffers.fs.destroy();
}
- // Basic parser fpr AngelCode bitmap font format files
+ // Basic parser for AngelCode bitmap font format files
// See http://www.angelcode.com/products/bmfont/doc/file_format.html for details
void parsebmFont()
{
@@ -625,7 +625,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
diff --git a/examples/dynamicuniformbuffer/dynamicuniformbuffer.cpp b/examples/dynamicuniformbuffer/dynamicuniformbuffer.cpp
index cef09fec..7d0fae1d 100644
--- a/examples/dynamicuniformbuffer/dynamicuniformbuffer.cpp
+++ b/examples/dynamicuniformbuffer/dynamicuniformbuffer.cpp
@@ -200,7 +200,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
diff --git a/examples/gears/gears.cpp b/examples/gears/gears.cpp
index b9582e27..64f9d7ae 100644
--- a/examples/gears/gears.cpp
+++ b/examples/gears/gears.cpp
@@ -333,7 +333,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
diff --git a/examples/geometryshader/geometryshader.cpp b/examples/geometryshader/geometryshader.cpp
index 930e8d67..06771c04 100644
--- a/examples/geometryshader/geometryshader.cpp
+++ b/examples/geometryshader/geometryshader.cpp
@@ -314,7 +314,7 @@ public:
{
VulkanExampleBase::prepareFrame();
- // Command buffer to be sumitted to the queue
+ // Command buffer to be submitted to the queue
submitInfo.commandBufferCount = 1;
submitInfo.pCommandBuffers = &drawCmdBuffers[currentBuffer];
diff --git a/examples/gltfloading/gltfloading.cpp b/examples/gltfloading/gltfloading.cpp
index c1b868dc..68358cf6 100644
--- a/examples/gltfloading/gltfloading.cpp
+++ b/examples/gltfloading/gltfloading.cpp
@@ -97,7 +97,7 @@ public:
glm::mat4 matrix;
};
- // A glTF material stores information in e.g. the exture that is attached to it and colors
+ // A glTF material stores information in e.g. the texture that is attached to it and colors
struct Material {
glm::vec4 baseColorFactor = glm::vec4(1.0f);
uint32_t baseColorTextureIndex;
@@ -235,7 +235,7 @@ public:
}
}
- // If the node contains mesh data, we load vertices and indices from the the buffers
+ // If the node contains mesh data, we load vertices and indices from the buffers
// In glTF this is done via accessors and buffer views
if (inputNode.mesh > -1) {
const tinygltf::Mesh mesh = input.meshes[inputNode.mesh];
@@ -555,7 +555,7 @@ public:
&indexStaging.memory,
indexBuffer.data()));
- // Create device local buffers (targat)
+ // Create device local buffers (target)
VK_CHECK_RESULT(vulkanDevice->createBuffer(
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
diff --git a/examples/gltfscenerendering/gltfscenerendering.cpp b/examples/gltfscenerendering/gltfscenerendering.cpp
index 1b343421..e1259785 100644
--- a/examples/gltfscenerendering/gltfscenerendering.cpp
+++ b/examples/gltfscenerendering/gltfscenerendering.cpp
@@ -78,7 +78,7 @@ void VulkanglTFScene::loadMaterials(tinygltf::Model& input)
if (glTFMaterial.additionalValues.find("normalTexture") != glTFMaterial.additionalValues.end()) {
materials[i].normalTextureIndex = glTFMaterial.additionalValues["normalTexture"].TextureIndex();
}
- // Get some additonal material parameters that are used in this sample
+ // Get some additional material parameters that are used in this sample
materials[i].alphaMode = glTFMaterial.alphaMode;
materials[i].alphaCutOff = (float)glTFMaterial.alphaCutoff;
materials[i].doubleSided = glTFMaterial.doubleSided;
@@ -114,7 +114,7 @@ void VulkanglTFScene::loadNode(const tinygltf::Node& inputNode, const tinygltf::
}
}
- // If the node contains mesh data, we load vertices and indices from the the buffers
+ // If the node contains mesh data, we load vertices and indices from the buffers
// In glTF this is done via accessors and buffer views
if (inputNode.mesh > -1) {
const tinygltf::Mesh mesh = input.meshes[inputNode.mesh];
@@ -417,7 +417,7 @@ void VulkanExample::loadglTFFile(std::string filename)
&indexStaging.memory,
indexBuffer.data()));
- // Create device local buffers (targat)
+ // Create device local buffers (target)
VK_CHECK_RESULT(vulkanDevice->createBuffer(
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
diff --git a/examples/gltfscenerendering/gltfscenerendering.h b/examples/gltfscenerendering/gltfscenerendering.h
index 6d5ba2f5..e5c81a26 100644
--- a/examples/gltfscenerendering/gltfscenerendering.h
+++ b/examples/gltfscenerendering/gltfscenerendering.h
@@ -98,7 +98,7 @@ public:
bool visible = true;
};
- // A glTF material stores information in e.g. the exture that is attached to it and colors
+ // A glTF material stores information in e.g. the texture that is attached to it and colors
struct Material {
glm::vec4 baseColorFactor = glm::vec4(1.0f);
uint32_t baseColorTextureIndex;
diff --git a/examples/gltfskinning/README.md b/examples/gltfskinning/README.md
index c7836922..88e199b3 100644
--- a/examples/gltfskinning/README.md
+++ b/examples/gltfskinning/README.md
@@ -453,7 +453,7 @@ void VulkanglTFModel::drawNode(VkCommandBuffer commandBuffer, VkPipelineLayout p
{
if (node.mesh.primitives.size() > 0)
{
- // Pass the node's matrix via push constanst
+ // Pass the node's matrix via push constants
// Traverse the node hierarchy to the top-most parent to get the final matrix of the current node
glm::mat4 nodeMatrix = node.matrix;
VulkanglTFModel::Node *currentParent = node.parent;
@@ -500,7 +500,7 @@ vkCmdPushConstants(commandBuffer, pipelineLayout, VK_SHADER_STAGE_VERTEX_BIT, 0,
As this matrix won't change in our case, we pass this is a push constant to the vertex shader.
-And we also bind the the shader storage buffer object of the skin so the vertex shader get's access to the current joint matrices for the skin to be applied to that particular node:
+And we also bind the shader storage buffer object of the skin so the vertex shader get's access to the current joint matrices for the skin to be applied to that particular node:
```cpp
vkCmdBindDescriptorSets(commandBuffer, VK_PIPELINE_BIND_POINT_GRAPHICS, pipelineLayout, 1, 1, &skins[node.skin].descriptorSet, 0, nullptr);
diff --git a/examples/gltfskinning/gltfskinning.cpp b/examples/gltfskinning/gltfskinning.cpp
index 816657c3..a365d3bd 100644
--- a/examples/gltfskinning/gltfskinning.cpp
+++ b/examples/gltfskinning/gltfskinning.cpp
@@ -337,7 +337,7 @@ void VulkanglTFModel::loadNode(const tinygltf::Node &inputNode, const tinygltf::
}
}
- // If the node contains mesh data, we load vertices and indices from the the buffers
+ // If the node contains mesh data, we load vertices and indices from the buffers
// In glTF this is done via accessors and buffer views
if (inputNode.mesh > -1)
{
@@ -790,7 +790,7 @@ void VulkanExample::loadglTFFile(std::string filename)
&indexStaging.memory,
indexBuffer.data()));
- // Create device local buffers (targat)
+ // Create device local buffers (target)
VK_CHECK_RESULT(vulkanDevice->createBuffer(
VK_BUFFER_USAGE_VERTEX_BUFFER_BIT | VK_BUFFER_USAGE_TRANSFER_DST_BIT,
VK_MEMORY_PROPERTY_DEVICE_LOCAL_BIT,
diff --git a/examples/multithreading/multithreading.cpp b/examples/multithreading/multithreading.cpp
index 94c31d11..d21ae730 100644
--- a/examples/multithreading/multithreading.cpp
+++ b/examples/multithreading/multithreading.cpp
@@ -54,7 +54,7 @@ public:
VkCommandBuffer primaryCommandBuffer;
- // Secondary scene command buffers used to store backgdrop and user interface
+ // Secondary scene command buffers used to store backdrop and user interface
struct SecondaryCommandBuffers {
VkCommandBuffer background;
VkCommandBuffer ui;
diff --git a/examples/occlusionquery/occlusionquery.cpp b/examples/occlusionquery/occlusionquery.cpp
index 3e87eba8..48c0bb1f 100644
--- a/examples/occlusionquery/occlusionquery.cpp
+++ b/examples/occlusionquery/occlusionquery.cpp
@@ -1,5 +1,5 @@
/*
-* Vulkan Example - Using occlusion query for visbility testing
+* Vulkan Example - Using occlusion query for visibility testing
*
* Copyright (C) 2016 by Sascha Willems - www.saschawillems.de
*
diff --git a/examples/pushdescriptors/pushdescriptors.cpp b/examples/pushdescriptors/pushdescriptors.cpp
index 39341496..4c9bac5b 100644
--- a/examples/pushdescriptors/pushdescriptors.cpp
+++ b/examples/pushdescriptors/pushdescriptors.cpp
@@ -134,7 +134,7 @@ public:
// Instead of preparing the descriptor sets up-front, using push descriptors we can set (push) them inside of a command buffer
// This allows a more dynamic approach without the need to create descriptor sets for each model
- // Note: dstSet for each descriptor set write is left at zero as this is ignored when ushing push descriptors
+ // Note: dstSet for each descriptor set write is left at zero as this is ignored when using push descriptors
std::array writeDescriptorSets{};