Change --hlsl-sampled-textures to --auto-sampled-textures
This commit is contained in:
parent
219b7b9f72
commit
ebfca6099f
@ -111,7 +111,7 @@ bool NaNClamp = false;
|
|||||||
bool stripDebugInfo = false;
|
bool stripDebugInfo = false;
|
||||||
bool beQuiet = false;
|
bool beQuiet = false;
|
||||||
bool VulkanRulesRelaxed = false;
|
bool VulkanRulesRelaxed = false;
|
||||||
bool hlslSampledTextures = false;
|
bool autoSampledTextures = false;
|
||||||
|
|
||||||
//
|
//
|
||||||
// Return codes from main/exit().
|
// Return codes from main/exit().
|
||||||
@ -656,8 +656,8 @@ void ProcessArguments(std::vector<std::unique_ptr<glslang::TWorkItem>>& workItem
|
|||||||
HlslEnable16BitTypes = true;
|
HlslEnable16BitTypes = true;
|
||||||
} else if (lowerword == "hlsl-dx9-compatible") {
|
} else if (lowerword == "hlsl-dx9-compatible") {
|
||||||
HlslDX9compatible = true;
|
HlslDX9compatible = true;
|
||||||
} else if (lowerword == "hlsl-sampled-textures") {
|
} else if (lowerword == "auto-sampled-textures") {
|
||||||
hlslSampledTextures = true;
|
autoSampledTextures = true;
|
||||||
} else if (lowerword == "invert-y" || // synonyms
|
} else if (lowerword == "invert-y" || // synonyms
|
||||||
lowerword == "iy") {
|
lowerword == "iy") {
|
||||||
Options |= EOptionInvertY;
|
Options |= EOptionInvertY;
|
||||||
@ -1192,7 +1192,7 @@ void CompileAndLinkShaderUnits(std::vector<ShaderCompUnit> compUnits)
|
|||||||
shader->setNoStorageFormat((Options & EOptionNoStorageFormat) != 0);
|
shader->setNoStorageFormat((Options & EOptionNoStorageFormat) != 0);
|
||||||
shader->setResourceSetBinding(baseResourceSetBinding[compUnit.stage]);
|
shader->setResourceSetBinding(baseResourceSetBinding[compUnit.stage]);
|
||||||
|
|
||||||
if (hlslSampledTextures)
|
if (autoSampledTextures)
|
||||||
shader->setTextureSamplerTransformMode(EShTexSampTransUpgradeTextureRemoveSampler);
|
shader->setTextureSamplerTransformMode(EShTexSampTransUpgradeTextureRemoveSampler);
|
||||||
|
|
||||||
if (Options & EOptionAutoMapBindings)
|
if (Options & EOptionAutoMapBindings)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user