Table of Contents

Class ShaderSource

Namespace
Stride.Shaders
Assembly
Stride.Shaders.dll

A shader source.

[DataContract("ShaderSource")]
public abstract class ShaderSource
Inheritance
ShaderSource
Derived

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

bool

true if discard; otherwise, false.

Methods

Clone()

Deep clones this instance.

public abstract object Clone()

Returns

object

A new instance.

Equals(object)

Determines whether the specified object is equal to this instance.

public override abstract bool Equals(object against)

Parameters

against object

The object to compare with this instance.

Returns

bool

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

GetHashCode()

Serves as the default hash function.

public override abstract int GetHashCode()

Returns

int

A hash code for the current object.