# Clear Mode

The "Clear Mode" item can be created via "Solution Explorer" panel by using the context menu option ("Add" &gt; "New Item"). In this way, all its specific properties ("Clear Color", "Enable Color Write", "Enable Depth Clear" and "Enable Stencil Clear") are related with just one item instead of being included among many other properties of every render target.

A Clear Mode Palette View is available in Solution Options. By using it ("File" &gt; "Solution Options"), it is possible to create different clear mode items which can be saved and reused.

<div drawio-diagram="6653"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-09/drawing-4-1725599676.png" alt=""/></div>

<div class="contents" id="bkmrk--0"><div class="contents"><div class="textblock">  
</div></div></div>If there are many render targets which are referencing the same clear mode item, it is enough to modify the desired property just once rather than modifying all of them.

<div drawio-diagram="5866"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-05/drawing-5-1717134650.png" alt=""/></div>

<div class="contents" id="bkmrk--2"><div class="contents"><div class="textblock">  
</div></div></div>After the creation of a "Clear Mode" item, it can referenced by one or more Render Targets. This operation can be done using the "Clear Mode" property available in the "Properties" panel associated with any available render target.

<div class="contents" id="bkmrk-if-a-clearmode-is-a-"><div class="textblock"><dl class="note"><dd><p class="callout info">If a ClearMode is a associated to a RenderTarget, the RenderTarget is cleared using that ClearMode before any of the attached cameras renders to it.</p>

</dd></dl></div></div><div drawio-diagram="5870"><img src="https://doc316en.candera.eu/uploads/images/drawio/2024-05/drawing-5-1717135069.png" alt=""/></div>

<div class="contents" id="bkmrk-see-also%3A-candera%3A%3Ac"><div class="textblock"><dl class="see"><dt>**See also:**</dt><dd>- [Candera::ClearMode](http://dev.doc.cgistudio.at/APILINK/class_candera_1_1_clear_mode.html "Describes how a viewport is cleared. The color buffer may be cleared using a given color...")

</dd></dl></div></div>