Cleanup: format

This commit is contained in:
Campbell Barton 2022-08-16 10:30:23 +10:00
parent 75e652027c
commit c4eb70e543
11 changed files with 21 additions and 18 deletions

View File

@ -2899,10 +2899,13 @@ void BKE_pbvh_draw_cb(PBVH *pbvh,
MEM_SAFE_FREE(nodes);
}
void BKE_pbvh_draw_debug_cb(
PBVH *pbvh,
void (*draw_fn)(PBVHNode *node, void *user_data, const float bmin[3], const float bmax[3], PBVHNodeFlags flag),
void *user_data)
void BKE_pbvh_draw_debug_cb(PBVH *pbvh,
void (*draw_fn)(PBVHNode *node,
void *user_data,
const float bmin[3],
const float bmax[3],
PBVHNodeFlags flag),
void *user_data)
{
for (int a = 0; a < pbvh->totnode; a++) {
PBVHNode *node = &pbvh->nodes[a];

View File

@ -765,4 +765,4 @@ void DepthOfField::render(GPUTexture **input_tx,
/** \} */
} // namespace blender::eevee
} // namespace blender::eevee

View File

@ -259,4 +259,4 @@ void MotionBlurModule::render(GPUTexture **input_tx, GPUTexture **output_tx)
/** \} */
} // namespace blender::eevee
} // namespace blender::eevee

View File

@ -134,8 +134,8 @@ void main()
{
/**
* NOTE: We can **NOT** optimize by discarding some tiles as the result is sampled using bilinear
* filtering in the resolve pass. Not outputting to a tile means that border texels have undefined
* value and tile border will be noticeable in the final image.
* filtering in the resolve pass. Not outputting to a tile means that border texels have
* undefined value and tile border will be noticeable in the final image.
*/
cache_init();

View File

@ -2,8 +2,8 @@
/**
* Gather pass: Convolve foreground and background parts in separate passes.
*
* Using the min&max CoC tile buffer, we select the best appropriate method to blur the scene color.
* A fast gather path is taken if there is not many CoC variation inside the tile.
* Using the min&max CoC tile buffer, we select the best appropriate method to blur the scene
*color. A fast gather path is taken if there is not many CoC variation inside the tile.
*
* We sample using an octaweb sampling pattern. We randomize the kernel center and each ring
* rotation to ensure maximum coverage.

View File

@ -2,8 +2,8 @@
/**
* Holefill pass: Gather background parts where foreground is present.
*
* Using the min&max CoC tile buffer, we select the best appropriate method to blur the scene color.
* A fast gather path is taken if there is not many CoC variation inside the tile.
* Using the min&max CoC tile buffer, we select the best appropriate method to blur the scene
*color. A fast gather path is taken if there is not many CoC variation inside the tile.
*
* We sample using an octaweb sampling pattern. We randomize the kernel center and each ring
* rotation to ensure maximum coverage.

View File

@ -51,4 +51,4 @@ void main()
out_debug_color_add = vec4(color.rgb, 0.0) * 0.2;
out_debug_color_mul = color;
}
}

View File

@ -1213,7 +1213,7 @@ static void sculpt_debug_cb(
if (flag & PBVH_Leaf) {
int color = (*debug_node_nr)++;
color += BKE_pbvh_debug_draw_gen_get(node);
DRW_debug_bbox(&bb, SCULPT_DEBUG_COLOR(color));
}
#endif

View File

@ -130,4 +130,4 @@ void main()
/* Transparent Background for ease of read. */
out_color = vec4(0, 0, 0, 0.2);
}
}
}

View File

@ -26,4 +26,4 @@ void main()
gl_Position = vec4(
pos_on_screen * drw_view.viewport_size_inverse * vec2(2.0, -2.0) - vec2(1.0, -1.0), 0, 1);
gl_PointSize = char_size;
}
}

View File

@ -10,12 +10,12 @@
*
* The sculpt undo system is a delta-based system. Each undo step stores
* the difference with the prior one.
*
*
* To use the sculpt undo system, you must call SCULPT_undo_push_begin
* inside an operator exec or invoke callback (ED_sculpt_undo_geometry_begin
* may be called if you wish to save a non-delta copy of the entire mesh).
* This will initialize the sculpt undo stack and set up an undo step.
*
*
* At the end of the operator you should call SCULPT_undo_push_end.
*
* SCULPT_undo_push_end and ED_sculpt_undo_geometry_begin both take a