Use line and column from node on DebugLexicalBlock.
* Fix bug in TestFixture.h, debug info gets enabled when nonsemantic debug info is requested.
This commit is contained in:
parent
48f63fe4b3
commit
f69d2768e5
21 changed files with 7746 additions and 6750 deletions
|
|
@ -149,7 +149,7 @@ TEST_P(HlslNonSemanticShaderDebugInfoTest, FromFile)
|
|||
{
|
||||
loadFileCompileAndCheck(GlobalTestSettings.testRoot, GetParam().fileName,
|
||||
Source::HLSL, Semantics::Vulkan, glslang::EShTargetVulkan_1_0, glslang::EShTargetSpv_1_0,
|
||||
Target::Spv, true, GetParam().entryPoint, "/baseResults/", false, false, true);
|
||||
Target::Spv, true, GetParam().entryPoint, "/baseResults/", false, true, true);
|
||||
}
|
||||
|
||||
// clang-format off
|
||||
|
|
|
|||
|
|
@ -262,6 +262,14 @@ public:
|
|||
shader.setAutoMapLocations(true);
|
||||
shader.setAutoMapBindings(true);
|
||||
}
|
||||
|
||||
if (enableDebug) {
|
||||
shader.setDebugInfo(true);
|
||||
}
|
||||
if (enableNonSemanticShaderDebugInfo) {
|
||||
assert(enableDebug && "Debug must be on for non-semantic debug info");
|
||||
}
|
||||
|
||||
shader.setTextureSamplerTransformMode(texSampTransMode);
|
||||
#ifdef ENABLE_HLSL
|
||||
shader.setFlattenUniformArrays(flattenUniformArrays);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue