[Bf-blender-cvs] [b87ae86e3cc] tmp-workbench-rewrite2: Class separators
Miguel Pozo
noreply at git.blender.org
Tue Jan 10 15:55:20 CET 2023
Commit: b87ae86e3cc588206dd00e04c18504b850b0e3cd
Author: Miguel Pozo
Date: Mon Jan 9 17:39:16 2023 +0100
Branches: tmp-workbench-rewrite2
https://developer.blender.org/rBb87ae86e3cc588206dd00e04c18504b850b0e3cd
Class separators
===================================================================
M source/blender/draw/engines/workbench/workbench_mesh_passes.cc
===================================================================
diff --git a/source/blender/draw/engines/workbench/workbench_mesh_passes.cc b/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
index 84c7c58f12f..d47a806b694 100644
--- a/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
+++ b/source/blender/draw/engines/workbench/workbench_mesh_passes.cc
@@ -4,6 +4,10 @@
namespace blender::workbench {
+/* -------------------------------------------------------------------- */
+/** \name MeshPass
+ * \{ */
+
MeshPass::MeshPass(const char *name) : PassMain(name){};
/* Move to draw::Pass */
@@ -99,6 +103,12 @@ void MeshPass::draw(ObjectRef &ref,
handle);
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name OpaquePass
+ * \{ */
+
void OpaquePass::sync(const SceneState &scene_state, SceneResources &resources)
{
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL |
@@ -226,6 +236,12 @@ bool OpaquePass::is_empty() const
return gbuffer_ps_.is_empty() && gbuffer_in_front_ps_.is_empty();
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name TransparentPass
+ * \{ */
+
void TransparentPass::sync(const SceneState &scene_state, SceneResources &resources)
{
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_DEPTH_LESS_EQUAL | DRW_STATE_BLEND_OIT |
@@ -297,6 +313,12 @@ bool TransparentPass::is_empty() const
return accumulation_ps_.is_empty() && accumulation_in_front_ps_.is_empty();
}
+/** \} */
+
+/* -------------------------------------------------------------------- */
+/** \name TransparentDepthPass
+ * \{ */
+
void TransparentDepthPass::sync(const SceneState &scene_state, SceneResources &resources)
{
DRWState state = DRW_STATE_WRITE_COLOR | DRW_STATE_WRITE_DEPTH | DRW_STATE_DEPTH_LESS_EQUAL |
@@ -370,4 +392,6 @@ bool TransparentDepthPass::is_empty() const
return main_ps_.is_empty() && in_front_ps_.is_empty();
}
+/** \} */
+
} // namespace blender::workbench
More information about the Bf-blender-cvs
mailing list