From a7a7732a2b9b234261ec537a21052a2bb27869c0 Mon Sep 17 00:00:00 2001 From: mighdoll Date: Mon, 27 Nov 2023 13:44:24 -0800 Subject: typo re: global variables (#3351) Co-authored-by: Yong He --- docs/user-guide/02-conventional-features.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'docs') 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: -- cgit v1.2.3