diff options
| author | mighdoll <lee@underneath.ca> | 2023-11-27 13:44:24 -0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-11-27 13:44:24 -0800 |
| commit | a7a7732a2b9b234261ec537a21052a2bb27869c0 (patch) | |
| tree | 9e254a8794687a707173de98e16eb7a3f2314581 /docs | |
| parent | b247fc135e8a0e21f33586e61ea262de9b453a78 (diff) | |
typo re: global variables (#3351)
Co-authored-by: Yong He <yonghe@outlook.com>
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/02-conventional-features.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/docs/user-guide/02-conventional-features.md b/docs/user-guide/02-conventional-features.md index 3f2f22b57..ebf4c1ca7 100644 --- a/docs/user-guide/02-conventional-features.md +++ b/docs/user-guide/02-conventional-features.md @@ -383,7 +383,7 @@ Global Variables and Shader Parameters -------------------------------------- By default, global-scope variable declarations in Slang represent _shader parameters_ passed from host application code into GPU code. -Programmers must explicitly mark a global-scope variable with `static` for it to be treated as a shader parameter, even if the variable is marked `const`: +Programmers must explicitly mark a global-scope variable with `static` for it not to be treated as a shader parameter, even if the variable is marked `const`: ```hlsl // a shader parameter: |
