Class ShaderArraySource
An array of ShaderSource used only in shader mixin compositions.
[DataContract("ShaderArraySource")]
public sealed class ShaderArraySource : ShaderSource, IEnumerable<ShaderSource>, IEnumerable, IEquatable<ShaderArraySource>
- Inheritance
-
ShaderArraySource
- Implements
- Inherited Members
- Extension Methods
Constructors
ShaderArraySource()
Initializes a new instance of the ShaderArraySource class.
public ShaderArraySource()
Properties
Values
Gets or sets the values.
public ShaderSourceCollection Values { get; set; }
Property Value
- ShaderSourceCollection
The values.
Methods
Add(ShaderSource)
Adds the specified composition.
public void Add(ShaderSource composition)
Parameters
composition
ShaderSourceThe composition.
Clone()
Deep clones this instance.
public override object Clone()
Returns
- object
A new instance.
Equals(ShaderArraySource)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(ShaderArraySource other)
Parameters
other
ShaderArraySourceAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to this instance.
public override bool Equals(object obj)
Parameters
obj
object
Returns
GetEnumerator()
Returns an enumerator that iterates through the collection.
public IEnumerator<ShaderSource> GetEnumerator()
Returns
- IEnumerator<ShaderSource>
An enumerator that can be used to iterate through the collection.
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
Operators
operator ==(ShaderArraySource, ShaderArraySource)
public static bool operator ==(ShaderArraySource left, ShaderArraySource right)
Parameters
left
ShaderArraySourceright
ShaderArraySource
Returns
operator !=(ShaderArraySource, ShaderArraySource)
public static bool operator !=(ShaderArraySource left, ShaderArraySource right)
Parameters
left
ShaderArraySourceright
ShaderArraySource