summaryrefslogtreecommitdiff
path: root/docs
diff options
context:
space:
mode:
Diffstat (limited to 'docs')
-rw-r--r--docs/user-guide/02-conventional-features.md3
1 files changed, 3 insertions, 0 deletions
diff --git a/docs/user-guide/02-conventional-features.md b/docs/user-guide/02-conventional-features.md
index b748a72c0..fe0fdb854 100644
--- a/docs/user-guide/02-conventional-features.md
+++ b/docs/user-guide/02-conventional-features.md
@@ -144,6 +144,9 @@ struct MyData
> #### Note ####
> Slang allows for a trailing semicolon (`;`) on `struct` declarations, but does not require it.
+> #### Note ####
+> Unlike C/C++, `class` is not a valid keyword for GPU code and it is reserved for CPU/host side logic.
+
Structure types can have constructors. Constructors are defined with the `__init` keyword:
```hlsl