mirror of
https://github.com/baldurk/renderdoc.git
synced 2026-05-05 17:40:39 +00:00
Add query for whether extended instruction set exists
This commit is contained in:
@@ -280,6 +280,17 @@ void Editor::AddExecutionMode(const Operation &mode)
|
||||
addWords(offset, mode.size());
|
||||
}
|
||||
|
||||
Id Editor::HasExtInst(const char *setname)
|
||||
{
|
||||
for(auto it = extSets.begin(); it != extSets.end(); ++it)
|
||||
{
|
||||
if(it->second == setname)
|
||||
return it->first;
|
||||
}
|
||||
|
||||
return Id();
|
||||
}
|
||||
|
||||
Id Editor::ImportExtInst(const char *setname)
|
||||
{
|
||||
for(auto it = extSets.begin(); it != extSets.end(); ++it)
|
||||
|
||||
@@ -99,6 +99,7 @@ public:
|
||||
void AddCapability(Capability cap);
|
||||
void AddExtension(const rdcstr &extension);
|
||||
void AddExecutionMode(const Operation &mode);
|
||||
Id HasExtInst(const char *setname);
|
||||
Id ImportExtInst(const char *setname);
|
||||
Id AddType(const Operation &op);
|
||||
Id AddVariable(const Operation &op);
|
||||
|
||||
Reference in New Issue
Block a user