Table of Contents

Class ShaderArraySource

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

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 ShaderSource

The 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 ShaderArraySource

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to this instance.

public override bool Equals(object obj)

Parameters

obj object

Returns

bool

true if the specified object is equal to this instance; otherwise, false.

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 ShaderArraySource
right ShaderArraySource

Returns

bool

operator !=(ShaderArraySource, ShaderArraySource)

public static bool operator !=(ShaderArraySource left, ShaderArraySource right)

Parameters

left ShaderArraySource
right ShaderArraySource

Returns

bool