Cleanup: spelling in comments

This commit is contained in:
Campbell Barton 2023-04-26 12:01:23 +10:00
parent ca98185f84
commit db1af0e325
9 changed files with 13 additions and 11 deletions

View File

@ -11,7 +11,7 @@
#define HIPRT_SHARED_STACK
/* The size of global stack availavle to each thread (memory reserved for each thread in
/* The size of global stack available to each thread (memory reserved for each thread in
* global_stack_buffer). */
#define HIPRT_THREAD_STACK_SIZE 64
@ -19,7 +19,7 @@
#define HIPRT_SHARED_STACK_SIZE 24
/* HIPRT_THREAD_GROUP_SIZE is the number of threads per work group for intersection kernels
* The default number of threads per workgroup is 1024, however, since HIP RT intersection kernels
* The default number of threads per work-group is 1024, however, since HIP RT intersection kernels
* use local memory, and the local memory size in those kernels scales up with the number of
* threads, the number of threads to is scaled down to 256 to avoid going over maximum local memory
* and to strike a balance between memory access and the number of waves.

View File

@ -92,7 +92,7 @@ enum {
* Do not attempt to access original ID pointers (triggers usages of
* `IDWALK_NO_ORIG_POINTERS_ACCESS` too).
*
* Use when original ID pointers values are (probably) not valid, e.g. dureing readfile process.
* Use when original ID pointers values are (probably) not valid, e.g. during read-file process.
*/
ID_REMAP_NO_ORIG_POINTERS_ACCESS = 1 << 20,
};

View File

@ -1900,7 +1900,7 @@ void BKE_fcurve_deduplicate_keys(FCurve *fcu)
}
else {
/* Move the retained key to the old X-coordinate, to 'anchor' the X-coordinate used for
* subsequente comparisons. Without this, the reference X-coordinate would keep moving
* subsequent comparisons. Without this, the reference X-coordinate would keep moving
* forward in time, potentially merging in more keys than desired. */
BKE_fcurve_keyframe_move_time_with_handles(prev_bezt, prev_x);
}

View File

@ -242,7 +242,7 @@ void BKE_screen_foreach_id_screen_area(LibraryForeachIDData *data, ScrArea *area
}
}
/* Both `snode->id` and `snode->nodetree` have been remapped now, sotheir data can be
/* Both `snode->id` and `snode->nodetree` have been remapped now, so their data can be
* accessed. */
BLI_assert(snode->id == NULL || snode->nodetree == NULL ||
(snode->nodetree->id.flag & LIB_EMBEDDED_DATA) == 0 ||

View File

@ -294,7 +294,7 @@ void VKCommandBuffer::submit_encoded_commands()
}
/* -------------------------------------------------------------------- */
/** \name Framebuffer/RenderPass state tracking
/** \name FrameBuffer/RenderPass state tracking
* \{ */
void VKCommandBuffer::validate_framebuffer_not_exists()

View File

@ -60,13 +60,13 @@ class VKCommandBuffer : NonCopyable, NonMovable {
* - minimize command buffers and track render passes.
* - add custom encoder to also track resource usages.
*
* Currently I expect the custom encoder has to be done eventually. But want to keep post-poning
* Currently I expect the custom encoder has to be done eventually. But want to keep postponing
* the custom encoder for now to collect more use cases it should solve. (first pixel drawn on
* screen).
*
* Some command can also be encoded in another way when encoded as a first command. For example
* clearing a framebuffer textures isn't allowed inside a render pass, but clearing the
* framebuffer textures via ops is allowed. When clearing a framebuffer texture directly after
* clearing a frame-buffer textures isn't allowed inside a render pass, but clearing the
* frame-buffer textures via ops is allowed. When clearing a frame-buffer texture directly after
* beginning a render pass could be re-encoded to do this in the same command.
*
* So for now we track the state and temporary switch to another state if the command requires

View File

@ -974,7 +974,7 @@ typedef enum IDRecalcFlag {
/* ** Particle system changed. ** */
/* Only do pathcache etc. */
ID_RECALC_PSYS_REDO = (1 << 3),
/* Reset everything including pointcache. */
/* Reset everything including point-cache. */
ID_RECALC_PSYS_RESET = (1 << 4),
/* Only child settings changed. */
ID_RECALC_PSYS_CHILD = (1 << 5),

View File

@ -321,7 +321,7 @@ typedef struct Mesh {
*/
void loose_edges_tag_none() const;
/**
* Set the number of verices not connected to edges to zero. Similar to #loose_edges_tag_none().
* Set the number of vertices not connected to edges to zero. Similar to #loose_edges_tag_none().
* There may still be vertices only used by loose edges though.
*
* \note If both #loose_edges_tag_none() and #tag_loose_verts_none() are called,

View File

@ -209,6 +209,8 @@ dict_custom = {
"planarize",
"polygonizer",
"polytope",
"postfix",
"postfixes",
"postprocess",
"postprocessed",
"pre-filtered",