Click or drag to resize

ShaderEffect Class

A ShaderEffect contains a list of render passes with each pass item being a combination of a set of render states, and a pair of Pixel and Vertex Shader Programs (the code running on the GPU). In addition a ShaderEffect contains the actual values for all the shaders' (uniform) variables.
Inheritance Hierarchy

Namespace:  Fusee.Engine.Core
Assembly:  Fusee.Engine.Core (in Fusee.Engine.Core.dll) Version: 0.7.0.0 (0.7.0.0)
Syntax
C#
public class ShaderEffect : DynamicObject, 
	IDisposable

The ShaderEffect type exposes the following members.

Constructors
  NameDescription
Public methodShaderEffect
The constructor to create a shader effect.
Top
Properties
  NameDescription
Public propertyCount
Size of ParamDecl Needed for DynamicObject
Top
Methods
  NameDescription
Public methodDispose
Is called when GC of this shadereffect kicks in
Public methodEquals
Determines whether the specified object is equal to the current object.
(Inherited from Object.)
Protected methodFinalize
Destructor calls Dispose in order to fire MeshChanged event.
(Overrides ObjectFinalize.)
Public methodGetDynamicMemberNames
Returns the enumeration of all dynamic member names.
(Inherited from DynamicObject.)
Public methodGetEffectParam
Returns the value of a given shadereffect variable
Remarks
THIS IS NOT THE ACTUAL UNIFORM VALUE
Public methodGetHashCode
Serves as the default hash function.
(Inherited from Object.)
Public methodGetMetaObject
Provides a DynamicMetaObject that dispatches to the dynamic virtual methods. The object can be encapsulated inside another DynamicMetaObject to provide custom behavior for individual actions. This method supports the Dynamic Language Runtime infrastructure for language implementers and it is not intended to be used directly from your code.
(Inherited from DynamicObject.)
Public methodGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSetEffectParam
Set effect parameter
Public methodToString
Returns a string that represents the current object.
(Inherited from Object.)
Public methodTryBinaryOperation
Provides implementation for binary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as addition and multiplication.
(Inherited from DynamicObject.)
Public methodTryConvert
Provides implementation for type conversion operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that convert an object from one type to another.
(Inherited from DynamicObject.)
Public methodTryCreateInstance
Provides the implementation for operations that initialize a new instance of a dynamic object. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryDeleteIndex
Provides the implementation for operations that delete an object by index. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryDeleteMember
Provides the implementation for operations that delete an object member. This method is not intended for use in C# or Visual Basic.
(Inherited from DynamicObject.)
Public methodTryGetIndex
Provides the implementation for operations that get a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for indexing operations.
(Inherited from DynamicObject.)
Public methodTryGetMember
Returns value of property ParamDecl. Needed for DynamicObject
(Overrides DynamicObjectTryGetMember(GetMemberBinder, Object).)
Public methodTryInvoke
Provides the implementation for operations that invoke an object. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as invoking an object or a delegate.
(Inherited from DynamicObject.)
Public methodTryInvokeMember
Provides the implementation for operations that invoke a member. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as calling a method.
(Inherited from DynamicObject.)
Public methodTrySetIndex
Provides the implementation for operations that set a value by index. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations that access objects by a specified index.
(Inherited from DynamicObject.)
Public methodTrySetMember
Set a uniform variable Needed for DynamicObject
(Overrides DynamicObjectTrySetMember(SetMemberBinder, Object).)
Public methodTryUnaryOperation
Provides implementation for unary operations. Classes derived from the DynamicObject class can override this method to specify dynamic behavior for operations such as negation, increment, or decrement.
(Inherited from DynamicObject.)
Top
Fields
  NameDescription
Public fieldParamDecl
The uniform parameter and value of a ShaderEffect
Public fieldPixelShaderSrc
Pixel- or fragmentshader of all passes
Public fieldStates
Public fieldVertexShaderSrc
Vertexshaders of all passes
Top
See Also