Web: Remove a few additional HLSL constructs with ENABLE_HLSL.

Saves about 3K.
This commit is contained in:
John Kessenich
2019-07-27 05:22:30 -06:00
parent 13761069b5
commit d4ed5158d1
6 changed files with 39 additions and 16 deletions

View File

@@ -996,8 +996,10 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
shader->setNanMinMaxClamp(NaNClamp);
shader->setResourceSetBinding(baseResourceSetBinding[compUnit.stage]);
#ifdef ENABLE_HLSL
if (Options & EOptionHlslIoMapping)
shader->setHlslIoMapping(true);
#endif
if (Options & EOptionAutoMapBindings)
shader->setAutoMapBindings(true);
@@ -1023,8 +1025,10 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
compUnit.stage, Client, ClientInputSemanticsVersion);
shader->setEnvClient(Client, ClientVersion);
shader->setEnvTarget(TargetLanguage, TargetVersion);
#ifdef ENABLE_HLSL
if (targetHlslFunctionality1)
shader->setEnvTargetHlslFunctionality1();
#endif
}
shaders.push_back(shader);