Skip to content

Commit

Permalink
Adding a note about the keyword, class. (#4503)
Browse files Browse the repository at this point in the history
Closes #4448
  • Loading branch information
jkwak-work authored Jun 29, 2024
1 parent ea4ebe3 commit 048c5c3
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions docs/user-guide/02-conventional-features.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 048c5c3

Please sign in to comment.