From d66939f4449827f334cb77f1c4b4d99c30d1c507 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Sat, 2 Apr 2016 22:06:13 +0100 Subject: layers: fix spelling mistakes --- layers/core_validation.cpp | 6 +++--- layers/parameter_validation_utils.h | 4 ++-- layers/vk_validation_layer_details.md | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/layers/core_validation.cpp b/layers/core_validation.cpp index 59a0e318..be84bde5 100644 --- a/layers/core_validation.cpp +++ b/layers/core_validation.cpp @@ -1459,7 +1459,7 @@ static void collect_interface_by_location(layer_data *my_data, shader_module con /* TODO: handle grouped decorations */ /* TODO: handle index=1 dual source outputs from FS -- two vars will - * have the same location, and we DONT want to clobber. */ + * have the same location, and we DON'T want to clobber. */ /* find the end of the entrypoint's name string. additional zero bytes follow the actual null terminator, to fill out the rest of the word - so we only need to look at the last byte in @@ -1856,7 +1856,7 @@ static void mark_accessible_ids(shader_module const *src, spirv_inst_iter entryp auto insn = src->get_def(id); if (insn == src->end()) { - /* id is something we didnt collect in build_def_index. that's OK -- we'll stumble + /* id is something we didn't collect in build_def_index. that's OK -- we'll stumble * across all kinds of things here that we may not care about. */ continue; } @@ -9785,7 +9785,7 @@ bool logInvalidAttachmentMessage(layer_data *dev_data, VkCommandBuffer secondary DRAWSTATE_INVALID_SECONDARY_COMMAND_BUFFER, "DS", "vkCmdExecuteCommands() called w/ invalid Cmd Buffer %p which has a render pass %" PRIx64 " that is not compatible with the current render pass %" PRIx64 "." - "Attachment %" PRIu32 " is not compatable with %" PRIu32 ". %s", + "Attachment %" PRIu32 " is not compatible with %" PRIu32 ". %s", (void *)secondaryBuffer, (uint64_t)(secondaryPass), (uint64_t)(primaryPass), primaryAttach, secondaryAttach, msg); } diff --git a/layers/parameter_validation_utils.h b/layers/parameter_validation_utils.h index e3489f26..7003ccdd 100644 --- a/layers/parameter_validation_utils.h +++ b/layers/parameter_validation_utils.h @@ -538,7 +538,7 @@ static std::string get_result_description(VkResult result) { "sharing an image"; case VK_ERROR_VALIDATION_FAILED_EXT: return "API validation has detected an invalid use of the API"; case VK_ERROR_INVALID_SHADER_NV: return "one or more shaders failed to compile or link"; - default: return "an error has occured"; + default: return "an error has occurred"; }; // clang-format on } @@ -559,7 +559,7 @@ static void validate_result(debug_report_data *report_data, const char *apiName, if (resultName == UnsupportedResultString) { // Unrecognized result code log_msg(report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, 1, - ParameterValidationName, "%s: returned a result code indicating that an error has occured", apiName); + ParameterValidationName, "%s: returned a result code indicating that an error has occurred", apiName); } else { std::string resultDesc = get_result_description(result); log_msg(report_data, VK_DEBUG_REPORT_WARNING_BIT_EXT, (VkDebugReportObjectTypeEXT)0, 0, __LINE__, 1, diff --git a/layers/vk_validation_layer_details.md b/layers/vk_validation_layer_details.md index 5823e738..c5481a8f 100644 --- a/layers/vk_validation_layer_details.md +++ b/layers/vk_validation_layer_details.md @@ -56,7 +56,7 @@ The Draw State portion of the core validation layer tracks state leading into Dr | Descriptor Pool empty | Attempt to allocate descriptor type from descriptor pool when no more of that type are available to be allocated. | DESCRIPTOR_POOL_EMPTY | vkAllocateDescriptorSets | AllocDescriptorFromEmptyPool | NA | | Free from NON_FREE Pool | It's invalid to call vkFreeDescriptorSets() on Sets that were allocated from a Pool created with NON_FREE usage. | CANT_FREE_FROM_NON_FREE_POOL | vkFreeDescriptorSets | None | NA | | DS Update Index | DS update binding too large for layout binding count. | INVALID_UPDATE_INDEX | vkUpdateDescriptorSets | InvalidDSUpdateIndex CopyDescriptorUpdateErrors | NA | -| DS Update Type | Verifies that structs in DS Update tree are properly created, currenly valid, and of the right type | INVALID_UPDATE_STRUCT | vkUpdateDescriptorSets | InvalidDSUpdateStruct | NA | +| DS Update Type | Verifies that structs in DS Update tree are properly created, currently valid, and of the right type | INVALID_UPDATE_STRUCT | vkUpdateDescriptorSets | InvalidDSUpdateStruct | NA | | MSAA Sample Count | Verifies that Pipeline, RenderPass, and Subpass sample counts are consistent | NUM_SAMPLES_MISMATCH | vkCmdBindPipeline vkCmdBeginRenderPass vkCmdNextSubpass | NumSamplesMismatch | NA | | Dynamic Viewport State Binding | Verify that viewport dynamic state bound to Cmd Buffer at Draw time | VIEWPORT_NOT_BOUND |vkCmdDraw vkCmdDrawIndexed vkCmdDrawIndirect vkCmdDrawIndexedIndirect | ViewportStateNotBound | NA | | Dynamic Scissor State Binding | Verify that scissor dynamic state bound to Cmd Buffer at Draw time | SCISSOR_NOT_BOUND |vkCmdDraw vkCmdDrawIndexed vkCmdDrawIndirect vkCmdDrawIndexedIndirect | ScissorStateNotBound | NA | -- cgit v1.2.3