Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ShaderSource Class

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

    A shader source.

    System.Object → ShaderSource
    Derived from ShaderSource: ShaderArraySource ShaderClassCode ShaderMixinGeneratorSource ShaderMixinSource

    [DataContract("ShaderSource")]
    public abstract class ShaderSource
    Name Description
    Properties
    Discard

    Gets or sets a value indicating whether this ShaderSource is a discard shader after it has been mixed.

    Methods
    Clone()

    Deep clones this instance.

    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    GetHashCode()
    | Improve this Doc View Source

    Properties


    Discard

    Gets or sets a value indicating whether this ShaderSource is a discard shader after it has been mixed.

    public bool Discard { get; set; }
    Property Value
    Type Description
    System.Boolean

    true if discard; otherwise, false.

    | Improve this Doc View Source

    Methods


    Clone()

    Deep clones this instance.

    public abstract object Clone()
    Returns
    Type Description
    System.Object

    A new instance.


    Equals(Object)

    Determines whether the specified System.Object is equal to this instance.

    public abstract override bool Equals(object against)
    Parameters
    Type Name Description
    System.Object against

    The System.Object to compare with this instance.

    Returns
    Type Description
    System.Boolean

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

    Overrides
    System.Object.Equals(System.Object)

    GetHashCode()

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

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

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