PageRenderTime 162ms CodeModel.GetById 80ms app.highlight 3ms RepoModel.GetById 78ms app.codeStats 0ms

/Utilities/Graphics/ShaderFeatures/PostScreenHDRShaderFeature.cs

#
C# | 89 lines | 52 code | 7 blank | 30 comment | 0 complexity | 55ba01d9006ad421f9cc391e0c4f27b2 MD5 | raw file
 1using System.Collections.Generic;
 2using System.IO;
 3
 4namespace Delta.Utilities.Graphics.ShaderFeatures
 5{
 6	/// <summary>
 7	/// Post screen HDR shader feature
 8	/// </summary>
 9	public class PostScreenHDRShaderFeature : IShaderFeature
10	{
11		#region ShaderFeature (Public)
12		/// <summary>
13		/// Which shader feature flag is this ShaderFeature class using?
14		/// Important for loading this file via ShaderData.LoadShaderFeature.
15		/// Each flag should obviously only have one class for it!
16		/// </summary>
17		public ShaderFeatureFlags ShaderFeature
18		{
19			get
20			{
21				return ShaderFeatureFlags.PostScreenHDR;
22			}
23		}
24		#endregion
25
26		#region RequiredShaderFeatures (Public)
27		/// <summary>
28		/// Which shader feature flags are required for this ShaderFeature.
29		/// Very important for creating of a new ShaderFeature.
30		/// </summary>
31		public ShaderFeatureFlags RequiredShaderFeatures
32		{
33			get
34			{
35				// NOTE: PostScreenHDR used for specular power of one.
36				return ShaderFeatureFlags.Specular;
37			}
38		}
39		#endregion
40
41		#region Parameters (Public)
42		/// <summary>
43		/// Parameters as a dictionary, will be generated on the fly when
44		/// requested.
45		/// </summary>
46		public Dictionary<string, object> Parameters
47		{
48			get
49			{
50				return new Dictionary<string, object>();
51			}
52		}
53		#endregion
54
55		#region Constructors
56		/// <summary>
57		/// Create basic shader feature
58		/// </summary>
59		public PostScreenHDRShaderFeature()
60		{
61		}
62
63		/// <summary>
64		/// Create basic shader feature and load automatically
65		/// the ShaderFeatures from a binary data stream.
66		/// </summary>
67		public PostScreenHDRShaderFeature(BinaryReader reader)
68		{
69			Load(reader);
70		}
71		#endregion
72
73		#region ISaveLoadBinary Members
74		/// <summary>
75		/// Load this ShaderFeature from a binary data stream.
76		/// </summary>
77		public void Load(BinaryReader reader)
78		{
79		}
80
81		/// <summary>
82		/// Save this ShaderFeature to a binary data stream.
83		/// </summary>
84		public void Save(BinaryWriter writer)
85		{
86		}
87		#endregion
88	}
89}