Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    ShaderMacro Struct

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

    Preprocessor macro.

    [DataContract]
    public struct ShaderMacro : IEquatable<ShaderMacro>
    Name Description
    Constructors
    ShaderMacro(String, Object)

    Initializes a new instance of the ShaderMacro struct.

    Fields
    Definition

    Value of the macro to set.

    Name

    Name of the macro to set.

    Methods
    Equals(ShaderMacro)

    Indicates whether the current object is equal to another object of the same type.

    Equals(Object)

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

    GetHashCode()

    Returns a hash code for this instance.

    | Improve this Doc View Source

    Constructors


    ShaderMacro(String, Object)

    Initializes a new instance of the ShaderMacro struct.

    public ShaderMacro(string name, object definition)
    Parameters
    Type Name Description
    System.String name

    The name.

    System.Object definition

    The definition.

    | Improve this Doc View Source

    Fields


    Definition

    Value of the macro to set.

    public string Definition
    Field Value
    Type Description
    System.String

    Name

    Name of the macro to set.

    public string Name
    Field Value
    Type Description
    System.String
    | Improve this Doc View Source

    Methods


    Equals(ShaderMacro)

    Indicates whether the current object is equal to another object of the same type.

    public bool Equals(ShaderMacro other)
    Parameters
    Type Name Description
    ShaderMacro other

    An object to compare with this object.

    Returns
    Type Description
    System.Boolean

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


    Equals(Object)

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

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

    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.ValueType.Equals(System.Object)

    GetHashCode()

    Returns a hash code for this instance.

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

    A hash code for this instance, suitable for use in hashing algorithms and data structures like a hash table.

    Overrides
    System.ValueType.GetHashCode()

    Inherited Members

    System.ValueType.ToString()

    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