You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: docs/user-guide/02-conventional-features.md
+2
Original file line number
Diff line number
Diff line change
@@ -80,6 +80,8 @@ The type `vector<T,N>` is a vector of `N` _elements_ (also called _components_)
80
80
As a convenience, pre-defined vector types exist for each scalar type and valid element count, with a name using the formula `<<scalar-type>><<element-count>>`.
81
81
For example, `float3` is a convenient name for `vector<float,3>`.
82
82
83
+
> Note: Slang doesn't support vectors longer than 4 elements. They map to native vector types on many platforms, including CUDA, and none of these platforms support vectors longer than 4 elements. If needed, you can use an array like `float myArray[8]`.
84
+
83
85
### Matrix Types
84
86
85
87
Matrix types can be written as `matrix<T,R,C>` where `T` is a scalar type and both `R` and `C` are integers from 2 to 4 (inclusive).
0 commit comments