Skip to content

Commit acac50d

Browse files
authored
Merge branch 'shader-slang:master' into master
2 parents ff9cbe6 + 36ac8ff commit acac50d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

docs/user-guide/02-conventional-features.md

+2
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,8 @@ The type `vector<T,N>` is a vector of `N` _elements_ (also called _components_)
8080
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>>`.
8181
For example, `float3` is a convenient name for `vector<float,3>`.
8282

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+
8385
### Matrix Types
8486

8587
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

Comments
 (0)