Provide friendly names for shader ballot BuiltIns

This commit is contained in:
David Neto 2016-09-19 10:13:04 -04:00
parent bf467da9c9
commit 12b5777912
2 changed files with 10 additions and 0 deletions

View File

@ -152,6 +152,11 @@ void FriendlyNameMapper::SaveBuiltInName(uint32_t target_id,
CASE(SubgroupLocalInvocationId)
GLCASE(VertexIndex)
GLCASE(InstanceIndex)
CASE(SubgroupEqMaskKHR)
CASE(SubgroupGeMaskKHR)
CASE(SubgroupGtMaskKHR)
CASE(SubgroupLeMaskKHR)
CASE(SubgroupLtMaskKHR)
default:
break;
}

View File

@ -269,6 +269,11 @@ INSTANTIATE_TEST_CASE_P(
BuiltInCase("SubgroupLocalInvocationId"),
BuiltInGLCase("VertexIndex"),
BuiltInGLCase("InstanceIndex"),
BuiltInCase("SubgroupEqMaskKHR"),
BuiltInCase("SubgroupGeMaskKHR"),
BuiltInCase("SubgroupGtMaskKHR"),
BuiltInCase("SubgroupLeMaskKHR"),
BuiltInCase("SubgroupLtMaskKHR"),
}), );
INSTANTIATE_TEST_CASE_P(DebugNameOverridesBuiltin, FriendlyNameTest,