#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
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for