Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <campbell@blender.org>2022-08-10 09:23:11 +0300
committerCampbell Barton <campbell@blender.org>2022-08-10 09:23:11 +0300
commit77f41da5f1a4f11be37d719722e9bac8e2912604 (patch)
tree87af00ead39bc8c9ebf5187962f031daca8bbab6 /source/blender/draw/intern
parent72f388c85e5f6d819e9e9f44b3ef29a8ecce3c62 (diff)
Cleanup: spelling
Diffstat (limited to 'source/blender/draw/intern')
-rw-r--r--source/blender/draw/intern/draw_debug.cc6
-rw-r--r--source/blender/draw/intern/draw_debug.hh2
-rw-r--r--source/blender/draw/intern/draw_manager_data.c6
3 files changed, 7 insertions, 7 deletions
diff --git a/source/blender/draw/intern/draw_debug.cc b/source/blender/draw/intern/draw_debug.cc
index c610d7a2ffc..aaf18014143 100644
--- a/source/blender/draw/intern/draw_debug.cc
+++ b/source/blender/draw/intern/draw_debug.cc
@@ -599,7 +599,7 @@ void drw_debug_draw()
if (!GPU_shader_storage_buffer_objects_support() || DST.debug == nullptr) {
return;
}
- /* TODO(fclem): Convenience for now. Will have to move to DRWManager. */
+ /* TODO(@fclem): Convenience for now. Will have to move to #DRWManager. */
reinterpret_cast<blender::draw::DebugDraw *>(DST.debug)->display_to_view();
#endif
}
@@ -610,12 +610,12 @@ void drw_debug_draw()
void drw_debug_init()
{
/* Module should not be used in release builds. */
- /* TODO(fclem): Hide the functions declarations without using ifdefs everywhere. */
+ /* TODO(@fclem): Hide the functions declarations without using `ifdefs` everywhere. */
#ifdef DEBUG
if (!GPU_shader_storage_buffer_objects_support()) {
return;
}
- /* TODO(fclem): Convenience for now. Will have to move to DRWManager. */
+ /* TODO(@fclem): Convenience for now. Will have to move to #DRWManager. */
if (DST.debug == nullptr) {
DST.debug = reinterpret_cast<DRWDebugModule *>(new blender::draw::DebugDraw());
}
diff --git a/source/blender/draw/intern/draw_debug.hh b/source/blender/draw/intern/draw_debug.hh
index 4a2a367aef0..730b69ed954 100644
--- a/source/blender/draw/intern/draw_debug.hh
+++ b/source/blender/draw/intern/draw_debug.hh
@@ -98,7 +98,7 @@ class DebugDraw {
void draw_matrix_as_bbox(float4x4 mat, const float4 color = {1, 0, 0, 1});
/**
- * Will draw all debug shapes and text cached up until now to the current view / framebuffer.
+ * Will draw all debug shapes and text cached up until now to the current view / frame-buffer.
* Draw buffers will be emptied and ready for new debug data.
*/
void display_to_view();
diff --git a/source/blender/draw/intern/draw_manager_data.c b/source/blender/draw/intern/draw_manager_data.c
index 5d8537e0f19..9d4a2c58ab6 100644
--- a/source/blender/draw/intern/draw_manager_data.c
+++ b/source/blender/draw/intern/draw_manager_data.c
@@ -47,8 +47,8 @@
/**
* IMPORTANT:
* In order to be able to write to the same print buffer sequentially, we add a barrier to allow
- * multiple shader calls writting to the same buffer.
- * However, this adds explicit synchronisation events which might change the rest of the
+ * multiple shader calls writing to the same buffer.
+ * However, this adds explicit synchronization events which might change the rest of the
* application behavior and hide some bugs. If you know you are using shader debug print in only
* one shader pass, you can comment this out to remove the aforementioned barrier.
*/
@@ -1532,7 +1532,7 @@ static void drw_shgroup_init(DRWShadingGroup *shgroup, GPUShader *shader)
drw_shgroup_uniform_create_ex(
shgroup, debug_print_location, DRW_UNIFORM_STORAGE_BLOCK, buf, 0, 0, 1);
# ifndef DISABLE_DEBUG_SHADER_PRINT_BARRIER
- /* Add a barrier to allow multiple shader writting to the same buffer. */
+ /* Add a barrier to allow multiple shader writing to the same buffer. */
DRW_shgroup_barrier(shgroup, GPU_BARRIER_SHADER_STORAGE);
# endif
}