Table of Contents

Class ShaderClassSource

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

A shader class based on .sdsl file, used for mixin.

[DataContract("ShaderClassSource")]
public sealed class ShaderClassSource : ShaderClassCode, IEquatable<ShaderClassSource>
Inheritance
ShaderClassSource
Implements
Inherited Members

Constructors

ShaderClassSource()

Initializes a new instance of the ShaderClassSource class.

public ShaderClassSource()

ShaderClassSource(string)

Initializes a new instance of the ShaderClassSource class.

public ShaderClassSource(string className)

Parameters

className string

Name of the class.

ShaderClassSource(string, params object[])

Initializes a new instance of the ShaderClassSource class.

public ShaderClassSource(string className, params object[] genericArguments)

Parameters

className string

Name of the class.

genericArguments object[]

The generic parameters.

ShaderClassSource(string, params string[])

Initializes a new instance of the ShaderClassSource class.

public ShaderClassSource(string className, params string[] genericArguments)

Parameters

className string

Name of the class.

genericArguments string[]

The generic parameters.

Methods

Clone()

Deep clones this instance.

public override object Clone()

Returns

object

A new instance.

Equals(ShaderClassSource)

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

public bool Equals(ShaderClassSource shaderClassSource)

Parameters

shaderClassSource ShaderClassSource

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.

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

implicit operator ShaderClassSource(string)

Performs an implicit conversion from string to ShaderClassSource.

public static implicit operator ShaderClassSource(string className)

Parameters

className string

Name of the class.

Returns

ShaderClassSource

The result of the conversion.