From 499fec6f79a26c9c9d2d61b90bda2e4cec424f81 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 6 Jan 2022 13:54:52 +1100 Subject: Cleanup: spelling in comments --- source/blender/gpu/GPU_state.h | 2 +- source/blender/gpu/intern/gpu_codegen.c | 2 +- source/blender/gpu/intern/gpu_material.c | 4 ++-- source/blender/gpu/intern/gpu_state_private.hh | 2 +- source/blender/gpu/opengl/gl_state.cc | 2 +- 5 files changed, 6 insertions(+), 6 deletions(-) (limited to 'source/blender/gpu') diff --git a/source/blender/gpu/GPU_state.h b/source/blender/gpu/GPU_state.h index 7b69012dcbc..22cd7eab927 100644 --- a/source/blender/gpu/GPU_state.h +++ b/source/blender/gpu/GPU_state.h @@ -56,7 +56,7 @@ ENUM_OPERATORS(eGPUBarrier, GPU_BARRIER_ELEMENT_ARRAY) */ typedef enum eGPUBlend { GPU_BLEND_NONE = 0, - /** Premult variants will _NOT_ multiply rgb output by alpha. */ + /** Pre-multiply variants will _NOT_ multiply rgb output by alpha. */ GPU_BLEND_ALPHA, GPU_BLEND_ALPHA_PREMULT, GPU_BLEND_ADDITIVE, diff --git a/source/blender/gpu/intern/gpu_codegen.c b/source/blender/gpu/intern/gpu_codegen.c index f0046e879a0..568462ec2a6 100644 --- a/source/blender/gpu/intern/gpu_codegen.c +++ b/source/blender/gpu/intern/gpu_codegen.c @@ -65,7 +65,7 @@ extern char datatoc_gpu_shader_common_obinfos_lib_glsl[]; * same for 2 different Materials. Unused GPUPasses are free by Garbage collection. */ -/* Only use one linklist that contains the GPUPasses grouped by hash. */ +/* Only use one linked-list that contains the GPUPasses grouped by hash. */ static GPUPass *pass_cache = NULL; static SpinLock pass_cache_spin; diff --git a/source/blender/gpu/intern/gpu_material.c b/source/blender/gpu/intern/gpu_material.c index 3804f2f0dd1..6451086f5fc 100644 --- a/source/blender/gpu/intern/gpu_material.c +++ b/source/blender/gpu/intern/gpu_material.c @@ -84,7 +84,7 @@ struct GPUMaterial { bool has_volume_output; bool has_surface_output; - /* Only used by Eevee to know which bsdf are used. */ + /* Only used by Eevee to know which BSDF are used. */ eGPUMatFlag flag; /* Used by 2.8 pipeline */ @@ -604,7 +604,7 @@ GPUMaterial *GPU_material_from_nodetree(Scene *scene, /* Caller must re-use materials. */ BLI_assert(GPU_material_from_nodetree_find(gpumaterials, engine_type, options) == NULL); - /* HACK: Eevee assume this to create Ghash keys. */ + /* HACK: Eevee assume this to create #GHash keys. */ BLI_assert(sizeof(GPUPass) > 16); /* allocate material */ diff --git a/source/blender/gpu/intern/gpu_state_private.hh b/source/blender/gpu/intern/gpu_state_private.hh index 81d422ff21a..864b7d0446a 100644 --- a/source/blender/gpu/intern/gpu_state_private.hh +++ b/source/blender/gpu/intern/gpu_state_private.hh @@ -62,7 +62,7 @@ union GPUState { uint32_t polygon_smooth : 1; uint32_t line_smooth : 1; }; - /* Here to allow fast bitwise ops. */ + /* Here to allow fast bit-wise ops. */ uint64_t data; }; diff --git a/source/blender/gpu/opengl/gl_state.cc b/source/blender/gpu/opengl/gl_state.cc index bfc691df4b3..c6c013fcf3a 100644 --- a/source/blender/gpu/opengl/gl_state.cc +++ b/source/blender/gpu/opengl/gl_state.cc @@ -377,7 +377,7 @@ void GLStateManager::set_blend(const eGPUBlend value) break; } case GPU_BLEND_ADDITIVE: { - /* Do not let alpha accumulate but premult the source RGB by it. */ + /* Do not let alpha accumulate but pre-multiply the source RGB by it. */ src_rgb = GL_SRC_ALPHA; dst_rgb = GL_ONE; src_alpha = GL_ZERO; -- cgit v1.2.3