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:
parent
796379a551
commit
a30e1368b1
@ -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 {
|
bool NameSet::contains(const std::string& name) const {
|
||||||
return m_names.find(name) != m_names.end();
|
return m_names.find(name) != m_names.end();
|
||||||
}
|
}
|
||||||
|
@ -57,6 +57,12 @@ namespace dxvk::vk {
|
|||||||
*/
|
*/
|
||||||
void add(const std::string& name);
|
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
|
* \brief Checks whether an extension or layer is supported
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user