1
0
mirror of https://github.com/doitsujin/dxvk.git synced 2025-01-31 14:52:11 +01:00

[dxvk] Implement name set merging

This commit is contained in:
Philip Rebohle 2018-05-16 22:26:36 +02:00
parent 796379a551
commit a30e1368b1
No known key found for this signature in database
GPG Key ID: C8CC613427A31C99
2 changed files with 12 additions and 0 deletions

View File

@ -7,6 +7,12 @@ namespace dxvk::vk {
}
void NameSet::merge(const NameSet& other) {
for (const auto& entry : other.m_names)
this->add(entry);
}
bool NameSet::contains(const std::string& name) const {
return m_names.find(name) != m_names.end();
}

View File

@ -57,6 +57,12 @@ namespace dxvk::vk {
*/
void add(const std::string& name);
/**
* \brief Merges two name sets
* \param [in] other Name set to merge
*/
void merge(const NameSet& other);
/**
* \brief Checks whether an extension or layer is supported
*