Tests: More broadly use automapping binding/location.
This adds or changes binding/location decorations in 100s of shaders. It also allows more output (spv.register.autoassign.rangetest.frag) due to allowing ioMap() to fail.
This commit is contained in:
@@ -75,6 +75,11 @@ TEST_P(LinkTestVulkan, FromFile)
|
||||
result.linkingOutput = program.getInfoLog();
|
||||
result.linkingError = program.getInfoDebugLog();
|
||||
|
||||
#ifndef GLSLANG_WEB
|
||||
if (success)
|
||||
program.mapIO();
|
||||
#endif
|
||||
|
||||
if (success && (controls & EShMsgSpvRules)) {
|
||||
spv::SpvBuildLogger logger;
|
||||
std::vector<uint32_t> spirv_binary;
|
||||
|
||||
@@ -253,10 +253,13 @@ public:
|
||||
glslang::TProgram program;
|
||||
program.addShader(&shader);
|
||||
success &= program.link(controls);
|
||||
|
||||
spv::SpvBuildLogger logger;
|
||||
#ifndef GLSLANG_WEB
|
||||
if (success)
|
||||
program.mapIO();
|
||||
#endif
|
||||
|
||||
if (success && (controls & EShMsgSpvRules)) {
|
||||
spv::SpvBuildLogger logger;
|
||||
std::vector<uint32_t> spirv_binary;
|
||||
options().disableOptimizer = !enableOptimizer;
|
||||
options().generateDebugInfo = enableDebug;
|
||||
@@ -313,7 +316,8 @@ public:
|
||||
|
||||
success &= program.link(controls);
|
||||
#ifndef GLSLANG_WEB
|
||||
success &= program.mapIO();
|
||||
if (success)
|
||||
program.mapIO();
|
||||
#endif
|
||||
|
||||
spv::SpvBuildLogger logger;
|
||||
@@ -356,10 +360,13 @@ public:
|
||||
glslang::TProgram program;
|
||||
program.addShader(&shader);
|
||||
success &= program.link(controls);
|
||||
|
||||
spv::SpvBuildLogger logger;
|
||||
#ifndef GLSLANG_WEB
|
||||
if (success)
|
||||
program.mapIO();
|
||||
#endif
|
||||
|
||||
if (success && (controls & EShMsgSpvRules)) {
|
||||
spv::SpvBuildLogger logger;
|
||||
std::vector<uint32_t> spirv_binary;
|
||||
glslang::GlslangToSpv(*program.getIntermediate(stage),
|
||||
spirv_binary, &logger, &options());
|
||||
|
||||
Reference in New Issue
Block a user