?/TD>
Microsoft DirectX 9.0

Functions


A function is the building block for a shader created in the high-level language. If you prefer to write shaders in a C-style language instead of in assembly language, you will want to write functions.

Syntax

type id ( [ parameters ] )  
    { body }

Functions do not change parameter values in an effect.

Functions are built from the high-level language. See High-Level Shader Language.



© 2002 Microsoft Corporation. All rights reserved.