Effects can be compiled into object files using the Fxc.exe utility in DXSDK/Utilities/ with a target of fx_2_0. The object file can then be used to create an effect directly, using D3DXCreateEffect. The usage is:
fxc <options> <file> |
---|
Where:
Switch option | Description |
---|---|
/T <profile> | Target profile, which is a single selection from the following profiles:
|
/E <name> | Entrypoint name. |
/Od | Disable optimizations. |
/Vd | Disable validation. |
/Zi | Enable debugging information. |
/Zpr | Pack matrices in row-major order. |
/Zpc | Pack matrices in column-major order. |
/Gpp | Force partial precision. |
/Fo <file> | Output object file. |
/Fc <file> | Output assembly code listing file. |
/Fx <file> | Output assembly code and hex listing file. |
/Fh <file> | Output header containing object code. |
/D <id>= <text> | Define macro. |
/nologo | Suppress copyright message. |