Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
RendererExtensions.cs
Go to the documentation of this file.
1 // Copyright (c) 2014 Silicon Studio Corp. (http://siliconstudio.co.jp)
2 // This file is distributed under GPL v3. See LICENSE.md for details.
3 namespace SiliconStudio.Paradox.Effects
4 {
5  /// <summary>
6  /// Extensions for <see cref="Renderer"/>
7  /// </summary>
8  public static class RendererExtensions
9  {
10  /// <summary>
11  /// Appends a name to an existing <see cref="Renderer.DebugName"/>.
12  /// </summary>
13  /// <typeparam name="T">Type of the renderer</typeparam>
14  /// <param name="renderer">The renderer</param>
15  /// <param name="name">Name to append to <see cref="Renderer.DebugName"/>.</param>
16  /// <returns>The renderer</returns>
17  public static T AppendDebugName<T>(this T renderer, string name) where T : Renderer
18  {
19  renderer.DebugName = renderer.DebugName == null ? name : renderer.DebugName + " " + name;
20  return renderer;
21  }
22  }
23 }
Performs render pipeline transformations attached to a specific RenderPass.
Definition: Renderer.cs:13