diff options
| author | Yong He <yonghe@outlook.com> | 2024-03-20 15:11:39 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-03-20 15:11:39 -0700 |
| commit | c371cceaab3f08e134b3cb005b46e5ee95f6df54 (patch) | |
| tree | 49813b1f1d6f5ba94d4d13382ddfa38a6086cc87 /docs | |
| parent | c28a22fb8b505ff48ca0814ca290ee4f698aa38b (diff) | |
Update a1-01-matrix-layout.md
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/user-guide/a1-01-matrix-layout.md | 7 |
1 files 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`. |
