Skip to content

Commit 756cb32

Browse files
KoT3isGoodcsyonghe
andauthored
Fixed type (shader-slang#5639)
vec3x4 to mat3x4 Co-authored-by: Yong He <yonghe@outlook.com>
1 parent a2626ea commit 756cb32

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

+1-1
Original file line numberDiff line numberDiff line change
@@ -382,7 +382,7 @@ The ordinary unary and binary operators can also be applied to vectors and matri
382382

383383
> #### Note ####
384384
> In GLSL, most operators apply component-wise to vectors and matrices, but the multiplication operator `*` computes the traditional linear-algebraic product of two matrices, or a matrix and a vector.
385-
> Where a GLSL programmer would write `m * v` to multiply a `vec3x4` by a `vec3`, a Slang programmer should write `mul(v,m)` to multiply a `float3` by a `float3x4`.
385+
> Where a GLSL programmer would write `m * v` to multiply a `mat3x4` by a `vec3`, a Slang programmer should write `mul(v,m)` to multiply a `float3` by a `float3x4`.
386386
> In this example, the order of operands is reversed to account for the difference in row/column conventions.
387387
388388
### Swizzles

0 commit comments

Comments
 (0)