Class Shader
public class Shader
- Inheritance
-
Shader
- Inherited Members
Constructors
Shader()
Default constructor for the Shader class.
public Shader()
Shader(string)
Constructor for the Shader class that initializes the source code.
public Shader(string source)
Parameters
sourcestringThe source code of the shader.
Properties
ShaderID
Gets or sets the ID of the shader.
public int ShaderID { get; set; }
Property Value
Source
Gets or sets the source code of the shader.
public string Source { get; set; }
Property Value
Methods
FromFile(string)
Creates a Shader object by reading the source code from a file.
public static Shader FromFile(string filename)
Parameters
filenamestringThe path to the file containing the shader source code.
Returns
- Shader
A Shader object with the source code read from the file.