Skip to content

Latest commit

 

History

History
68 lines (35 loc) · 1.87 KB

dx-graphics-hlsl-appendix-pre-pragma.md

File metadata and controls

68 lines (35 loc) · 1.87 KB
title description ms.assetid keywords topic_type api_name api_type ms.topic ms.date api_location
pragma Directive
Preprocessor directive that provides machine-specific or operating system-specific features while retaining overall compatibility with the C and C++ languages.
806ddb9b-ae4b-4dd3-a2c4-39c9cb7f3820
pragma Directive HLSL
apiref
pragma Directive
NA
reference
05/31/2018

#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)