Paradox Game Engine  v1.0.0 beta06
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Events Macros Pages
EffectSamplerStateBinding.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 using System.Diagnostics;
4 using SiliconStudio.Core;
5 using SiliconStudio.Core.Serialization;
6 using SiliconStudio.Paradox.Effects;
7 using SiliconStudio.Paradox.Graphics;
8 
9 namespace SiliconStudio.Paradox.Shaders
10 {
11  /// <summary>
12  /// Binding to a sampler.
13  /// </summary>
14  [DataContract]
15  [DebuggerDisplay("SamplerState {Key} ({Description.Filter})")]
17  {
18  /// <summary>
19  /// Initializes a new instance of the <see cref="EffectSamplerStateBinding"/> class.
20  /// </summary>
22  {
23  }
24 
25  /// <summary>
26  /// Initializes a new instance of the <see cref="EffectSamplerStateBinding"/> class.
27  /// </summary>
28  /// <param name="keyName">Name of the key.</param>
29  /// <param name="description">The description.</param>
30  public EffectSamplerStateBinding(string keyName, SamplerStateDescription description)
31  {
32  KeyName = keyName;
33  Description = description;
34  }
35 
36  /// <summary>
37  /// The key used to bind this sampler, used internaly.
38  /// </summary>
39  [DataMemberIgnore]
40  public ParameterKey Key;
41 
42  /// <summary>
43  /// The key name.
44  /// </summary>
45  public string KeyName;
46 
47  /// <summary>
48  /// The description of this sampler.
49  /// </summary>
51  }
52 }
Key of an effect parameter.
Definition: ParameterKey.cs:15
EffectSamplerStateBinding(string keyName, SamplerStateDescription description)
Initializes a new instance of the EffectSamplerStateBinding class.
SamplerStateDescription Description
The description of this sampler.
ParameterKey Key
The key used to bind this sampler, used internaly.
EffectSamplerStateBinding()
Initializes a new instance of the EffectSamplerStateBinding class.