Cleanup: spelling
Also remove historic bftgl reference.
This commit is contained in:
@@ -76,9 +76,9 @@ ccl_device void kernel_filter_construct_transform(const ccl_global float *ccl_re
|
|||||||
filter_calculate_scale(feature_scale, use_time);
|
filter_calculate_scale(feature_scale, use_time);
|
||||||
|
|
||||||
/* === Generate the feature transformation. ===
|
/* === Generate the feature transformation. ===
|
||||||
* This transformation maps the num_features-dimentional feature space to a reduced feature
|
* This transformation maps the num_features-dimensional feature space to a reduced feature
|
||||||
* (r-feature) space which generally has fewer dimensions. This mainly helps to prevent
|
* (r-feature) space which generally has fewer dimensions.
|
||||||
* overfitting. */
|
* This mainly helps to prevent overfitting. */
|
||||||
float feature_matrix[DENOISE_FEATURES * DENOISE_FEATURES];
|
float feature_matrix[DENOISE_FEATURES * DENOISE_FEATURES];
|
||||||
math_matrix_zero(feature_matrix, num_features);
|
math_matrix_zero(feature_matrix, num_features);
|
||||||
FOR_PIXEL_WINDOW
|
FOR_PIXEL_WINDOW
|
||||||
|
@@ -73,9 +73,9 @@ ccl_device void kernel_filter_construct_transform(const float *ccl_restrict buff
|
|||||||
filter_calculate_scale_sse(feature_scale, use_time);
|
filter_calculate_scale_sse(feature_scale, use_time);
|
||||||
|
|
||||||
/* === Generate the feature transformation. ===
|
/* === Generate the feature transformation. ===
|
||||||
* This transformation maps the num_features-dimentional feature space to a reduced feature
|
* This transformation maps the num_features-dimensional feature space to a reduced feature
|
||||||
* (r-feature) space which generally has fewer dimensions. This mainly helps to prevent
|
* (r-feature) space which generally has fewer dimensions.
|
||||||
* overfitting. */
|
* This mainly helps to prevent over-fitting. */
|
||||||
float4 feature_matrix_sse[DENOISE_FEATURES * DENOISE_FEATURES];
|
float4 feature_matrix_sse[DENOISE_FEATURES * DENOISE_FEATURES];
|
||||||
math_matrix_zero_sse(feature_matrix_sse, num_features);
|
math_matrix_zero_sse(feature_matrix_sse, num_features);
|
||||||
FOR_PIXEL_WINDOW_SSE
|
FOR_PIXEL_WINDOW_SSE
|
||||||
|
@@ -80,9 +80,8 @@ typedef struct GlyphCacheBLF {
|
|||||||
/* and the last texture, aka. the current texture. */
|
/* and the last texture, aka. the current texture. */
|
||||||
unsigned int texture_current;
|
unsigned int texture_current;
|
||||||
|
|
||||||
/* like bftgl, we draw every glyph in a big texture, so this is the
|
/* We draw every glyph in a big texture, so this is the
|
||||||
* current position inside the texture.
|
* current position inside the texture. */
|
||||||
*/
|
|
||||||
int offset_x;
|
int offset_x;
|
||||||
int offset_y;
|
int offset_y;
|
||||||
|
|
||||||
|
@@ -407,7 +407,8 @@ BLI_INLINE eGPUTextureFormat workbench_color_texture_format(const WORKBENCH_Priv
|
|||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
|
||||||
BLI_INLINE bool workbench_background_dither_factor(const WORKBENCH_PrivateData *wpd) {
|
BLI_INLINE bool workbench_background_dither_factor(const WORKBENCH_PrivateData *wpd)
|
||||||
|
{
|
||||||
/* Only apply dithering when rendering on a RGBA8 texture.
|
/* Only apply dithering when rendering on a RGBA8 texture.
|
||||||
* The dithering will remove banding when using a gradient as background */
|
* The dithering will remove banding when using a gradient as background */
|
||||||
return workbench_color_texture_format(wpd) == GPU_RGBA8;
|
return workbench_color_texture_format(wpd) == GPU_RGBA8;
|
||||||
|
@@ -688,7 +688,7 @@ static void edit_mesh_add_ob_to_pass(Scene *scene,
|
|||||||
|
|
||||||
skin_roots = DRW_mesh_batch_cache_get_edit_skin_roots(ob->data);
|
skin_roots = DRW_mesh_batch_cache_get_edit_skin_roots(ob->data);
|
||||||
/* NOTE(fclem) We cannot use ob here since it would offset the instance attribs with
|
/* NOTE(fclem) We cannot use ob here since it would offset the instance attribs with
|
||||||
* baseinstance offset. */
|
* base instance offset. */
|
||||||
DRW_shgroup_call(grp, skin_roots, NULL);
|
DRW_shgroup_call(grp, skin_roots, NULL);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@@ -436,7 +436,7 @@ PyTypeObject PyKDTree_Type = {
|
|||||||
(destructor)NULL, /* tp_del */
|
(destructor)NULL, /* tp_del */
|
||||||
};
|
};
|
||||||
|
|
||||||
PyDoc_STRVAR(py_kdtree_doc, "Generic 3-dimentional kd-tree to perform spatial searches.");
|
PyDoc_STRVAR(py_kdtree_doc, "Generic 3-dimensional kd-tree to perform spatial searches.");
|
||||||
static struct PyModuleDef kdtree_moduledef = {
|
static struct PyModuleDef kdtree_moduledef = {
|
||||||
PyModuleDef_HEAD_INIT,
|
PyModuleDef_HEAD_INIT,
|
||||||
"mathutils.kdtree", /* m_name */
|
"mathutils.kdtree", /* m_name */
|
||||||
|
Reference in New Issue
Block a user