mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-12 04:50:35 +00:00
Add support for VK_KHR_shader_non_semantic_info
This commit is contained in:
@@ -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 += ", ";
|
||||
|
||||
@@ -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,
|
||||
|
||||
Reference in New Issue
Block a user