Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

EffectPass.End Method

Ends a pass within the active technique.

Namespace: Microsoft.Xna.Framework.Graphics
Assembly: Microsoft.Xna.Framework (in microsoft.xna.framework.dll)

public void End ()
Exception typeCondition
InvalidOperationException

End was called, but Begin has not yet been called. Begin must be called successfully before End can be called.

An application signals the end of rendering an active pass by calling End. Each End must be part of a matching pair of Begin and End calls.

Begin and End must occur in a matching pair, within a matching pair of Effect.Begin and Effect.End calls.

If the application changes any effect state using any of the Effect methods inside of a Begin/End matching pair, the application must call CommitChanges to set the update the device with the state changes. If no state changes occur within a Begin and End matching pair, it is not necessary to call CommitChanges.

Xbox 360, Windows XP SP2, Windows Vista
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.