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

Inheritance: GraphicsResource
Afficher le fichier Open project: procfxgen/MGShaderEditor Class Usage Examples

Private Properties

Свойство Type Description
Clone void
Effect System
LoadEffectResource byte[]
ReadAnnotations EffectAnnotationCollection
ReadEffect void
ReadHeader MGFXHeader
ReadParameters EffectParameterCollection
ReadPasses EffectPassCollection

Méthodes publiques

Méthode 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

Méthodes protégées

Méthode Description
Dispose ( bool disposing ) : void
Effect ( Effect cloneSource ) : System
GraphicsDeviceResetting ( ) : void
OnApply ( ) : bool

Private Methods

Méthode 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 méthode

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
Résultat Effect

Dispose() protected méthode

protected Dispose ( bool disposing ) : void
disposing bool
Résultat void

Effect() protected méthode

protected Effect ( Effect cloneSource ) : System
cloneSource Effect
Résultat System

Effect() public méthode

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

GraphicsDeviceResetting() protected méthode

protected GraphicsDeviceResetting ( ) : void
Résultat void

OnApply() protected méthode

protected OnApply ( ) : bool
Résultat bool