You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The --use-spaces change is a breaking change within current O3DE, as it is no longer a valid keyword.
To be able to use the current version of azslc with the current state of development of o3de, small changes are necessary.
The following patch (for o3de) introduces these fixes
diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderAssetBuilder.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderAssetBuilder.cpp
index 38cd7af751..7663c90558 100644
--- a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderAssetBuilder.cpp+++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderAssetBuilder.cpp@@ -448,8 +448,8 @@ namespace AZ
// since the register Id of the resource will not change even if the pipeline layout changes.
// We can pass in a default ShaderCompilerArguments because all we care about is whether the shaderPlatformInterface
// appends the "--use-spaces" flag.
- const auto& azslcArguments = buildArgsManager.GetCurrentArguments().m_azslcArguments;- const bool platformUsesRegisterSpaces = RHI::ShaderBuildArguments::HasArgument(azslcArguments, "--use-spaces");+ // const auto& azslcArguments = buildArgsManager.GetCurrentArguments().m_azslcArguments;+ const bool platformUsesRegisterSpaces = true; // RHI::ShaderBuildArguments::HasArgument(azslcArguments, "--use-spaces");
uint32_t supervariantIndex = 0;
for (const auto& supervariantInfo : supervariantList)
diff --git a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderVariantAssetBuilder.cpp b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderVariantAssetBuilder.cpp
index 41ef6dc7af..0d0b520f26 100644
--- a/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderVariantAssetBuilder.cpp+++ b/Gems/Atom/Asset/Shader/Code/Source/Editor/ShaderVariantAssetBuilder.cpp@@ -866,9 +866,10 @@ namespace AZ
RHI::Ptr<RHI::PipelineLayoutDescriptor> pipelineLayoutDescriptor;
if (shaderPlatformInterface->VariantCompilationRequiresSrgLayoutData())
{
- const auto& azslcArguments = buildArgsManager.GetCurrentArguments().m_azslcArguments;- const bool platformUsesRegisterSpaces = RHI::ShaderBuildArguments::HasArgument(azslcArguments, "--use-spaces");-+ // const auto& azslcArguments = buildArgsManager.GetCurrentArguments().m_azslcArguments;+ const bool platformUsesRegisterSpaces =+ true; //= RHI::ShaderBuildArguments::HasArgument(azslcArguments, "--use-spaces");+
RPI::ShaderResourceGroupLayoutList srgLayoutList;
RootConstantData rootConstantData;
if (!LoadSrgLayoutListFromShaderAssetBuilder(
diff --git a/Gems/Atom/Asset/Shader/Config/shader_build_options.json b/Gems/Atom/Asset/Shader/Config/shader_build_options.json
index df69bd17fd..f14ae106ee 100644
--- a/Gems/Atom/Asset/Shader/Config/shader_build_options.json+++ b/Gems/Atom/Asset/Shader/Config/shader_build_options.json@@ -5,7 +5,8 @@
, "-+" // C++ mode
],
"azslc": ["--full" // Always generate the *.json files with SRG and reflection info.
- , "--use-spaces"+ // ,+ // "--use-spaces"
, "--Zpr" // Row major matrices.
, "--W1" // Warning Level 1
, "--strip-unused-srgs" // Remove unreferenced SRGs.
The text was updated successfully, but these errors were encountered:
The
--use-spaces
change is a breaking change within current O3DE, as it is no longer a valid keyword.To be able to use the current version of
azslc
with the current state ofdevelopment
ofo3de
, small changes are necessary.The following patch (for
o3de
) introduces these fixesThe text was updated successfully, but these errors were encountered: