Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    ShaderArraySource Class

    Namespace: Stride.Shaders
    Assembly: Stride.Shaders.dll

    An array of ShaderSource used only in shader mixin compositions.

    System.Object → ShaderSource → ShaderArraySource
    Derived from ShaderArraySource:

    [DataContract("ShaderArraySource")]
    public sealed class ShaderArraySource : ShaderSource, IEnumerable<ShaderSource>, IEnumerable, IEquatable<ShaderArraySource>
    Name Description
    Constructors
    ShaderArraySource()

    Initializes a new instance of the ShaderArraySource class.

    Properties
    Values

    Gets or sets the values.

    Methods
    Add(ShaderSource)

    Adds the specified composition.

    Clone()
    Equals(ShaderArraySource)
    Equals(Object)
    GetEnumerator()
    GetHashCode()
    ToString()
    Operators
    Equality(ShaderArraySource, ShaderArraySource)
    Inequality(ShaderArraySource, ShaderArraySource)
    Explicit Interface Implementations
    IEnumerable.GetEnumerator()
    | Improve this Doc View Source

    Constructors


    ShaderArraySource()

    Initializes a new instance of the ShaderArraySource class.

    public ShaderArraySource()
    | Improve this Doc View Source

    Properties


    Values

    Gets or sets the values.

    public ShaderSourceCollection Values { get; set; }
    Property Value
    Type Description
    ShaderSourceCollection

    The values.

    | Improve this Doc View Source

    Methods


    Add(ShaderSource)

    Adds the specified composition.

    public void Add(ShaderSource composition)
    Parameters
    Type Name Description
    ShaderSource composition

    The composition.


    Clone()

    public override object Clone()
    Returns
    Type Description
    System.Object
    Overrides
    ShaderSource.Clone()

    Equals(ShaderArraySource)

    public bool Equals(ShaderArraySource other)
    Parameters
    Type Name Description
    ShaderArraySource other
    Returns
    Type Description
    System.Boolean

    Equals(Object)

    public override bool Equals(object obj)
    Parameters
    Type Name Description
    System.Object obj
    Returns
    Type Description
    System.Boolean
    Overrides
    ShaderSource.Equals(Object)

    GetEnumerator()

    public IEnumerator<ShaderSource> GetEnumerator()
    Returns
    Type Description
    System.Collections.Generic.IEnumerator<ShaderSource>

    GetHashCode()

    public override int GetHashCode()
    Returns
    Type Description
    System.Int32
    Overrides
    ShaderSource.GetHashCode()

    ToString()

    public override string ToString()
    Returns
    Type Description
    System.String
    Overrides
    System.Object.ToString()
    | Improve this Doc View Source

    Operators


    Equality(ShaderArraySource, ShaderArraySource)

    public static bool operator ==(ShaderArraySource left, ShaderArraySource right)
    Parameters
    Type Name Description
    ShaderArraySource left
    ShaderArraySource right
    Returns
    Type Description
    System.Boolean

    Inequality(ShaderArraySource, ShaderArraySource)

    public static bool operator !=(ShaderArraySource left, ShaderArraySource right)
    Parameters
    Type Name Description
    ShaderArraySource left
    ShaderArraySource right
    Returns
    Type Description
    System.Boolean
    | Improve this Doc View Source

    Explicit Interface Implementations


    IEnumerable.GetEnumerator()

    IEnumerator IEnumerable.GetEnumerator()
    Returns
    Type Description
    System.Collections.IEnumerator

    Inherited Members

    ShaderSource.Discard

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    EnumerableExtensions.IsNullOrEmpty(IEnumerable)
    EnumerableExtensions.ForEach<T>(IEnumerable, Action<T>)
    EnumerableExtensions.ForEach<T>(IEnumerable<T>, Action<T>)
    EnumerableExtensions.IndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.LastIndexOf<T>(IEnumerable<T>, Func<T, Boolean>)
    EnumerableExtensions.NotNull<T>(IEnumerable<T>)
    EnumerableExtensions.ToHashCode<T>(IEnumerable<T>)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation