Add support for VK_KHR_shader_non_semantic_info

This commit is contained in:
baldurk
2020-02-17 15:18:07 +00:00
parent 7dd38b49d7
commit 12844b9213
2 changed files with 8 additions and 2 deletions
@@ -1389,15 +1389,18 @@ rdcstr Reflector::Disassemble(const rdcstr &entryPoint) const
uint32_t inst = it.word(4);
const bool IsGLSL450 = (setname == "GLSL.std.450");
// GLSL.std.450 all parameters are Ids
const bool idParams = IsGLSL450 || setname.beginsWith("NonSemantic.");
if(IsGLSL450)
ret += StringFormat::Fmt("%s::%s(", setname.c_str(), ToStr(GLSLstd450(inst)).c_str());
else
ret += StringFormat::Fmt("%s::[%u](", setname.c_str(), inst);
for(size_t i = 5; i < it.size(); i++)
{
// GLSL.std.450 all parameters are Ids
// TODO could generate this from the instruction set grammar.
ret += IsGLSL450 ? idName(Id::fromWord(it.word(i))) : ToStr(it.word(i));
ret += idParams ? idName(Id::fromWord(it.word(i))) : ToStr(it.word(i));
if(i + 1 < it.size())
ret += ", ";
+3
View File
@@ -1111,6 +1111,9 @@ static const VkExtensionProperties supportedExtensions[] = {
{
VK_KHR_SHADER_FLOAT_CONTROLS_EXTENSION_NAME, VK_KHR_SHADER_FLOAT_CONTROLS_SPEC_VERSION,
},
{
VK_KHR_SHADER_NON_SEMANTIC_INFO_EXTENSION_NAME, VK_KHR_SHADER_NON_SEMANTIC_INFO_SPEC_VERSION,
},
{
VK_KHR_SHADER_SUBGROUP_EXTENDED_TYPES_EXTENSION_NAME,
VK_KHR_SHADER_SUBGROUP_EXTENDED_TYPES_SPEC_VERSION,