PageRenderTime 74ms CodeModel.GetById 69ms app.highlight 3ms RepoModel.GetById 1ms app.codeStats 0ms

/Utilities/Graphics/ShaderFeatures/VertexCompressionShaderFeature.cs

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