PageRenderTime 22ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/Utilities/Graphics/ShaderFeatures/PostScreenHDRShaderFeature.cs

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