diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-06-28 19:55:42 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-28 19:55:42 -0700 |
| commit | 048c5c32d27538de7a935469c9f0d9b494622c5b (patch) | |
| tree | 4f3dc7ff990b786153200c6eb0e0724c3982eccf /docs | |
| parent | ea4ebe39663f12f6ffbe4378ed6a8c7cba6a3e8a (diff) | |
Adding a note about the keyword, class. (#4503)
Closes #4448
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/02-conventional-features.md | 3 |
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 |
