/Utilities/Graphics/ShaderFeatures/VertexCompressionShaderFeature.cs
C# | 90 lines | 52 code | 7 blank | 31 comment | 0 complexity | c52fe35ba90b5396c136c39b96d7e8f6 MD5 | raw file
Possible License(s): Apache-2.0
- using System.Collections.Generic;
- using System.IO;
-
- namespace Delta.Utilities.Graphics.ShaderFeatures
- {
- /// <summary>
- /// Vertex compression shader feature helper class. Defines nothing, just
- /// the flag, which is used to make the exported shader use compression
- /// in the vertex format specified for it.
- /// </summary>
- public class VertexCompressionShaderFeature : IShaderFeature
- {
- #region ShaderFeature (Public)
- /// <summary>
- /// Which shader feature flag is this ShaderFeature class using?
- /// Important for loading this file via ShaderData.LoadShaderFeature.
- /// Each flag should obviously only have one class for it!
- /// </summary>
- public ShaderFeatureFlags ShaderFeature
- {
- get
- {
- return ShaderFeatureFlags.VertexCompression;
- }
- }
- #endregion
-
- #region RequiredShaderFeatures (Public)
- /// <summary>
- /// Which shader feature flags are required for this ShaderFeature.
- /// Very important for creating of a new ShaderFeature.
- /// </summary>
- public ShaderFeatureFlags RequiredShaderFeatures
- {
- get
- {
- return ShaderFeatureFlags.Basic;
- }
- }
- #endregion
-
- #region Parameters (Public)
- /// <summary>
- /// Parameters as a dictionary, will be generated on the fly when
- /// requested.
- /// </summary>
- public Dictionary<string, object> Parameters
- {
- get
- {
- return new Dictionary<string, object>();
- }
- }
- #endregion
-
- #region Constructors
- /// <summary>
- /// Create compressed vertices shader feature.
- /// </summary>
- public VertexCompressionShaderFeature()
- {
- }
-
- /// <summary>
- /// Create compressed vertices shader feature and load automatically
- /// the ShaderFeatures from a binary data stream.
- /// </summary>
- public VertexCompressionShaderFeature(BinaryReader reader)
- {
- Load(reader);
- }
- #endregion
-
- #region ISaveLoadBinary Members
- /// <summary>
- /// Load this ShaderFeature from a binary data stream.
- /// </summary>
- public void Load(BinaryReader reader)
- {
- }
-
- /// <summary>
- /// Save this ShaderFeature to a binary data stream.
- /// </summary>
- public void Save(BinaryWriter writer)
- {
- }
- #endregion
- }
- }