#pragma Directive

Preprocessor directive that provides machine-specific or operating system-specific features while retaining overall compatibility with the C and C++ languages.

#pragma token-string

Parameters

Item Description
token-string
Series of characters that gives a specific compiler instruction and arguments. This parameter is subject to macro expansion.

Remarks

If the compiler finds a pragma it does not recognize, it issues a warning, but compilation continues.

The HLSL compiler recognizes the following pragmas:

See also

Preprocessor Directives (DirectX HLSL)