Functions
Microsoft DirectX 9.0 SDK Update (October 2004)

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 HLSL Shader Reference.



© 2004 Microsoft Corporation. All rights reserved.
Feedback? Please provide us with your comments on this topic.
For more help, visit the DirectX Developer Center.