#define directive (HLSL reference)

Preprocessor directive that defines a constant or a macro.

Overload List

Item Description
#define identifier token-string
Preprocessor directive that assigns a meaningful name to a constant in your application.
#define identifier( argument0, ..., argumentN-1 ) token-string
Preprocessor directive that creates a function-like macro.

See also

Preprocessor Directives (DirectX HLSL)