From 3033b4217aac5a6d11bfeee61d896c98abf77dfc Mon Sep 17 00:00:00 2001 From: Jay Kwak <82421531+jkwak-work@users.noreply.github.com> Date: Fri, 30 Aug 2024 22:10:19 -0700 Subject: User guide page for SPIR-V target specific information (#4815) Adding a user guide page for SPIR-V specific features. --- source/slang/slang-options.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'source') 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 ", - "Places the $Globals cbuffer at descriptor set and binding ."}, + "Places the $Globals cbuffer at descriptor set and binding .\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, -- cgit v1.2.3