yum-mirror/slang
Making it easier to work with shaders
git clone https://git.yummers.dev/yum-mirror/slang
e4088cd60
master
Note: This document is a work in progress. It is both incomplete and, in many cases, inaccurate.
Preprocessor
Slang supports a C-style preprocessor with the following directives:
#include#define#undef#if,#ifdef,#ifndef#else,#elif#endif#error#warning#line#pragma
Note: This section is not yet complete.
1> Note: This document is a work in progress. It is both incomplete and, in many cases, inaccurate. 2 3Preprocessor 4============ 5 6Slang supports a C-style preprocessor with the following directives: 7 8* `#include` 9* `#define` 10* `#undef` 11* `#if`, `#ifdef`, `#ifndef` 12* `#else`, `#elif` 13* `#endif` 14* `#error` 15* `#warning` 16* `#line` 17* `#pragma` 18 19> Note: This section is not yet complete.