From 448e21adac9ec260d7854076a686bd506bb371ec Mon Sep 17 00:00:00 2001 From: Yong He Date: Wed, 8 May 2024 20:52:09 -0700 Subject: `slangc` tool experience improvements. (#4140) * `slangc` tool experience improvements. Fixes #4123. Fixes #4127. * Update doc. --- source/slang/slang-options.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/slang/slang-options.cpp') diff --git a/source/slang/slang-options.cpp b/source/slang/slang-options.cpp index b6fcafb61..fc2fd42c2 100644 --- a/source/slang/slang-options.cpp +++ b/source/slang/slang-options.cpp @@ -386,8 +386,8 @@ void initCommandOptions(CommandOptions& options) { OptionKind::Optimization, "-O...", "-O", "Set the optimization level."}, { OptionKind::Obfuscate, "-obfuscate", nullptr, "Remove all source file information from outputs." }, { OptionKind::GLSLForceScalarLayout, - "-force-glsl-scalar-layout", nullptr, - "Force using scalar block layout for uniform and shader storage buffers in GLSL output."}, + "-force-glsl-scalar-layout,-fvk-use-scalar-layout", nullptr, + "Make data accessed through ConstantBuffer, ParameterBlock, StructuredBuffer, ByteAddressBuffer and general pointers follow the 'scalar' layout when targeting GLSL or SPIRV."}, { OptionKind::VulkanBindShift, vkShiftNames.getBuffer(), "-fvk--shift ", "For example '-fvk-b-shift ' shifts by N the inferred binding numbers for all resources in 'b' registers of space . " "For a resource attached with :register(bX, ) but not [vk::binding(...)], " -- cgit v1.2.3