From c371cceaab3f08e134b3cb005b46e5ee95f6df54 Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 20 Mar 2024 15:11:39 -0700 Subject: Update a1-01-matrix-layout.md --- docs/user-guide/a1-01-matrix-layout.md | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/docs/user-guide/a1-01-matrix-layout.md b/docs/user-guide/a1-01-matrix-layout.md index a15b9e620..194e22c07 100644 --- a/docs/user-guide/a1-01-matrix-layout.md +++ b/docs/user-guide/a1-01-matrix-layout.md @@ -150,10 +150,9 @@ globalSession->createSession(slangSessionDesc, &session); This makes Slang treat all matrices as in `column-major` layout, and for example emitting `column_major` qualifier in resulting HLSL code. -Alternatively the default layout can be set via +Alternatively the default layout can be set by -* `setMatrixLayoutMode`/`spSetMatrixLayoutMode` API calls -* `-matrix-layout-row-major` or `-matrix-layout-column-major` command line options - * or via `spProcessCommandLineArguments`/`processCommandLineArguments` +* Including a `CompilerOptionName::MatrixLayoutColumn` or `CompilerOptionName::MatrixLayoutRow` entry in `SessionDesc::compilerOptionEntries`. +* Setting `-matrix-layout-row-major` or `-matrix-layout-column-major` command line options to `slangc`. -- cgit v1.2.3