C# Class Microsoft.Xna.Framework.Graphics.Effect

Inheritance: GraphicsResource
ファイルを表示 Open project: procfxgen/MGShaderEditor Class Usage Examples

Private Properties

Property Type Description
Clone void
Effect System
LoadEffectResource byte[]
ReadAnnotations EffectAnnotationCollection
ReadEffect void
ReadHeader MGFXHeader
ReadParameters EffectParameterCollection
ReadPasses EffectPassCollection

Public Methods

Method Description
Clone ( ) : Effect

Returns a deep copy of the effect where immutable types are shared and mutable data is duplicated.

See "Cloning an Effect" in MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476138(v=vs.85).aspx

Effect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, byte effectCode ) : System

Protected Methods

Method Description
Dispose ( bool disposing ) : void
Effect ( Effect cloneSource ) : System
GraphicsDeviceResetting ( ) : void
OnApply ( ) : bool

Private Methods

Method Description
Clone ( Effect cloneSource ) : void

Clone the source into this existing object.

Note this is not overloaded in derived classes on purpose. This is only a reason this exists is for caching effects.

Effect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice ) : System
LoadEffectResource ( string name ) : byte[]
ReadAnnotations ( BinaryReader reader ) : EffectAnnotationCollection
ReadEffect ( BinaryReader reader ) : void
ReadHeader ( byte effectCode ) : MGFXHeader
ReadParameters ( BinaryReader reader ) : EffectParameterCollection
ReadPasses ( BinaryReader reader, Effect effect, Shader shaders ) : EffectPassCollection

Method Details

Clone() public method

Returns a deep copy of the effect where immutable types are shared and mutable data is duplicated.
See "Cloning an Effect" in MSDN: http://msdn.microsoft.com/en-us/library/windows/desktop/ff476138(v=vs.85).aspx
public Clone ( ) : Effect
return Effect

Dispose() protected method

protected Dispose ( bool disposing ) : void
disposing bool
return void

Effect() protected method

protected Effect ( Effect cloneSource ) : System
cloneSource Effect
return System

Effect() public method

public Effect ( Microsoft.Xna.Framework.Graphics.GraphicsDevice graphicsDevice, byte effectCode ) : System
graphicsDevice Microsoft.Xna.Framework.Graphics.GraphicsDevice
effectCode byte
return System

GraphicsDeviceResetting() protected method

protected GraphicsDeviceResetting ( ) : void
return void

OnApply() protected method

protected OnApply ( ) : bool
return bool