From 04ffa84c95b68ae50c25d32703fa9e6d49d2a10a Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 20 Mar 2024 13:30:31 -0700 Subject: Update a1-01-matrix-layout.md --- docs/user-guide/a1-01-matrix-layout.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'docs') diff --git a/docs/user-guide/a1-01-matrix-layout.md b/docs/user-guide/a1-01-matrix-layout.md index 9c9d0feef..a15b9e620 100644 --- a/docs/user-guide/a1-01-matrix-layout.md +++ b/docs/user-guide/a1-01-matrix-layout.md @@ -9,8 +9,8 @@ The differences between default matrix layout or storage conventions between GLS A high level summary: -* Default matrix **layout** in memory for Slang is `column-major`. - * This default is for *legacy* reasons and may change in the future. +* Default matrix **layout** in memory for Slang is `row-major`. + * Except when running the compiler through the `slangc` tool, in which case the default is `col-major`. This default is for *legacy* reasons and may change in the future. * Row-major layout is the only *portable* layout to use across targets (with significant caveats for non 4x4 matrices) * Use `setMatrixLayoutMode`/`spSetMatrixLayoutMode`/`createSession` to set the default * Use `-matrix-layout-row-major` or `-matrix-layout-column-major` for the command line -- cgit v1.2.3