C# Класс Vector.Gpu.Shader

Shader

GLSL Effect wrapper Object.

Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
AppendFragmentSource ( ) : void

Appends the Fragment Shader Source

AppendGeometrySource ( ) : void

Appends the Fragment Shader Source

AppendVertexSource ( ) : void

Appends the Vertex Shader Source

Begin ( ) : void

Starts this Program

ClearFragmentSource ( ) : void

Clears the Fragment Shader Source

ClearGeometrySource ( ) : void

Clears the Geometry Shader Source

ClearVertexSource ( ) : void

Clears the Vertex Shader Source.

Compile ( ) : ShaderCompileResult

Compiles all Shader Source code into a workable program. Will only compile a Shader Type, Vertex, Fragment or Geometry if the Source for each program is greater than 0 in length.

Dispose ( ) : void
End ( ) : void

Ends this Program

Flush ( ) : void

Flushes out all previously bound data while leaving the Shader still bound.

Parameter ( string name, System.Matrix matrix ) : void
Parameter ( string name, Plane plane ) : void
Parameter ( string name, TextureBase texture ) : void
Parameter ( string name, System.Vector2 v ) : void
Parameter ( string name, System.Vector3 v ) : void
Parameter ( string name, System.Vector4 v ) : void
Parameter ( string name, bool x ) : void
Parameter ( string name, float x ) : void
Parameter ( string name, float x, float y ) : void
Parameter ( string name, float x, float y, float z ) : void
Parameter ( string name, float x, float y, float z, float w ) : void
Parameter ( string name, int x ) : void
Parameter ( string name, int x, int y ) : void
Parameter ( string name, int x, int y, int z ) : void
Parameter ( string name, int x, int y, int z, int w ) : void
Parameter ( string name, object obj ) : void
Shader ( Device device ) : System

Приватные методы

Метод Описание
CompileFragmentSource ( string &error ) : bool

Compiles Fragment Source

CompileGeometrySource ( string &error ) : bool

Compiles Geometry Source

CompileVertexSource ( string &error ) : bool

Compiles Vertex Source

DestroyFragmentShader ( ) : void

Detaches and Deletes a Fragment Program.

DestroyGeometryShader ( ) : void

Detaches and Deletes a Geometry Program.

DestroyVertexShader ( ) : void

Detaches and Deletes a Vertex Program.

Dispose ( bool disposing ) : void

Описание методов

AppendFragmentSource() публичный Метод

Appends the Fragment Shader Source
public AppendFragmentSource ( ) : void
Результат void

AppendGeometrySource() публичный Метод

Appends the Fragment Shader Source
public AppendGeometrySource ( ) : void
Результат void

AppendVertexSource() публичный Метод

Appends the Vertex Shader Source
public AppendVertexSource ( ) : void
Результат void

Begin() публичный Метод

Starts this Program
public Begin ( ) : void
Результат void

ClearFragmentSource() публичный Метод

Clears the Fragment Shader Source
public ClearFragmentSource ( ) : void
Результат void

ClearGeometrySource() публичный Метод

Clears the Geometry Shader Source
public ClearGeometrySource ( ) : void
Результат void

ClearVertexSource() публичный Метод

Clears the Vertex Shader Source.
public ClearVertexSource ( ) : void
Результат void

Compile() публичный Метод

Compiles all Shader Source code into a workable program. Will only compile a Shader Type, Vertex, Fragment or Geometry if the Source for each program is greater than 0 in length.
public Compile ( ) : ShaderCompileResult
Результат ShaderCompileResult

Dispose() публичный Метод

public Dispose ( ) : void
Результат void

End() публичный Метод

Ends this Program
public End ( ) : void
Результат void

Flush() публичный Метод

Flushes out all previously bound data while leaving the Shader still bound.
public Flush ( ) : void
Результат void

Parameter() публичный Метод

public Parameter ( string name, System.Matrix matrix ) : void
name string
matrix System.Matrix
Результат void

Parameter() публичный Метод

public Parameter ( string name, Plane plane ) : void
name string
plane Plane
Результат void

Parameter() публичный Метод

public Parameter ( string name, TextureBase texture ) : void
name string
texture TextureBase
Результат void

Parameter() публичный Метод

public Parameter ( string name, System.Vector2 v ) : void
name string
v System.Vector2
Результат void

Parameter() публичный Метод

public Parameter ( string name, System.Vector3 v ) : void
name string
v System.Vector3
Результат void

Parameter() публичный Метод

public Parameter ( string name, System.Vector4 v ) : void
name string
v System.Vector4
Результат void

Parameter() публичный Метод

public Parameter ( string name, bool x ) : void
name string
x bool
Результат void

Parameter() публичный Метод

public Parameter ( string name, float x ) : void
name string
x float
Результат void

Parameter() публичный Метод

public Parameter ( string name, float x, float y ) : void
name string
x float
y float
Результат void

Parameter() публичный Метод

public Parameter ( string name, float x, float y, float z ) : void
name string
x float
y float
z float
Результат void

Parameter() публичный Метод

public Parameter ( string name, float x, float y, float z, float w ) : void
name string
x float
y float
z float
w float
Результат void

Parameter() публичный Метод

public Parameter ( string name, int x ) : void
name string
x int
Результат void

Parameter() публичный Метод

public Parameter ( string name, int x, int y ) : void
name string
x int
y int
Результат void

Parameter() публичный Метод

public Parameter ( string name, int x, int y, int z ) : void
name string
x int
y int
z int
Результат void

Parameter() публичный Метод

public Parameter ( string name, int x, int y, int z, int w ) : void
name string
x int
y int
z int
w int
Результат void

Parameter() публичный Метод

public Parameter ( string name, object obj ) : void
name string
obj object
Результат void

Shader() публичный Метод

public Shader ( Device device ) : System
device Device
Результат System