diff options
| author | Jay Kwak <82421531+jkwak-work@users.noreply.github.com> | 2024-08-30 22:10:19 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-08-30 22:10:19 -0700 |
| commit | 3033b4217aac5a6d11bfeee61d896c98abf77dfc (patch) | |
| tree | 8d9073015e636062c02c9015095b0afae8a12b66 /source/slang | |
| parent | ca2317a28814c2ffe6427470be57df6d778b1358 (diff) | |
User guide page for SPIR-V target specific information (#4815)
Adding a user guide page for SPIR-V specific features.
Diffstat (limited to 'source/slang')
| -rw-r--r-- | source/slang/slang-options.cpp | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index cf0dd2f20..f12a66790 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -412,7 +412,9 @@ void initCommandOptions(CommandOptions& options) "* [DXC description](https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/SPIR-V.rst#implicit-binding-number-assignment)\n" "* [GLSL wiki](https://github.com/KhronosGroup/glslang/wiki/HLSL-FAQ#auto-mapped-binding-numbers)\n" }, { OptionKind::VulkanBindGlobals, "-fvk-bind-globals", "-fvk-bind-globals <N> <descriptor-set>", - "Places the $Globals cbuffer at descriptor set <descriptor-set> and binding <N>."}, + "Places the $Globals cbuffer at descriptor set <descriptor-set> and binding <N>.\n" + "It lets you specify the descriptor for the source at a certain register.\n" + "* [DXC description](https://github.com/Microsoft/DirectXShaderCompiler/blob/main/docs/SPIR-V.rst#implicit-binding-number-assignment)\n" }, { OptionKind::VulkanInvertY, "-fvk-invert-y", nullptr, "Negates (additively inverts) SV_Position.y before writing to stage output."}, { OptionKind::VulkanUseDxPositionW, "-fvk-use-dx-position-w", nullptr, "Reciprocates (multiplicatively inverts) SV_Position.w after reading from stage input. For use in fragment shaders only."}, { OptionKind::VulkanUseEntryPointName, "-fvk-use-entrypoint-name", nullptr, "Uses the entrypoint name from the source instead of 'main' in the spirv output."}, @@ -424,7 +426,7 @@ void initCommandOptions(CommandOptions& options) { OptionKind::EmitSpirvViaGLSL, "-emit-spirv-via-glsl", nullptr, "Generate SPIR-V output by compiling generated GLSL with glslang" }, { OptionKind::EmitSpirvDirectly, "-emit-spirv-directly", nullptr, - "Generate SPIR-V output direclty (default)" }, + "Generate SPIR-V output directly (default)" }, { OptionKind::SPIRVCoreGrammarJSON, "-spirv-core-grammar", nullptr, "A path to a specific spirv.core.grammar.json to use when generating SPIR-V output" }, { OptionKind::IncompleteLibrary, "-incomplete-library", nullptr, |
