Table of Contents

Struct ShaderMacro

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

Preprocessor macro.

[DataContract]
public struct ShaderMacro : IEquatable<ShaderMacro>
Implements
Inherited Members

Constructors

ShaderMacro(string, object)

Initializes a new instance of the ShaderMacro struct.

public ShaderMacro(string name, object definition)

Parameters

name string

The name.

definition object

The definition.

Fields

Definition

Value of the macro to set.

public string Definition

Field Value

string

Name

Name of the macro to set.

public string Name

Field Value

string

Methods

Equals(ShaderMacro)

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

public bool Equals(ShaderMacro other)

Parameters

other ShaderMacro

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

The object to compare with this instance.

Returns

bool

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

GetHashCode()

Returns a hash code for this instance.

public override int GetHashCode()

Returns

int

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