Table of Contents

Class ShaderClassString

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

A shader class based on source code string, used for mixin.

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

Constructors

ShaderClassString()

Initializes a new instance of the ShaderClassString class.

public ShaderClassString()

ShaderClassString(string, string)

Initializes a new instance of the ShaderClassString class.

public ShaderClassString(string className, string shaderSourceCode)

Parameters

className string

Name of the class.

shaderSourceCode string

ShaderClassString(string, string, params object[])

Initializes a new instance of the ShaderClassString class.

public ShaderClassString(string className, string shaderSourceCode, params object[] genericArguments)

Parameters

className string

Name of the class.

shaderSourceCode string
genericArguments object[]

The generic parameters.

ShaderClassString(string, string, params string[])

Initializes a new instance of the ShaderClassString class.

public ShaderClassString(string className, string shaderSourceCode, params string[] genericArguments)

Parameters

className string

Name of the class.

shaderSourceCode string
genericArguments string[]

The generic parameters.

Properties

ShaderSourceCode

Gets the source code of this shader class as string, XKSL syntax.

public string ShaderSourceCode { get; set; }

Property Value

string

The source code of the shader class.

Methods

Clone()

Deep clones this instance.

public override object Clone()

Returns

object

A new instance.

Equals(ShaderClassString)

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

public bool Equals(ShaderClassString shaderClassString)

Parameters

shaderClassString ShaderClassString

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.