Techniques and Passes (Direct3D 9)

Techniques provide the rendering muscle. A technique encapsulates the effect state that determines a rendering style. A technique is made up of one or more passes.

Techniques

The syntax for calling a technique is as follows:

technique [ id ]  [< annotation(s) >] 
    { pass(es) }

Where:

Passes

A pass contains the state assignments required to render.

pass  [ id ]  [< annotation(s) >] 
    { state assignment(s) }

Where:

Passes ignore all but the last assignment in a set of repeated assignments to the same state.

Effect Format