From c42a9faad8d84f7bd05457d5f8e1fe45d6eecfa2 Mon Sep 17 00:00:00 2001 From: Yong He Date: Tue, 8 Oct 2024 13:29:57 -0700 Subject: Overhaul docgen tool and setup CI to generate stdlib reference. (#5232) * Overhaul docgen tool and setup CI to generate stdlib reference. * Fix build error. * Write parsed doc for all decls. * fix. * fix callout. * Fix. * Fix comment. * Fix. * Delete obsolete doc tests. * Fix. * Categorize functions and types. * Fix CI. * Update comments. --- source/slang/slang-capability.cpp | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) (limited to 'source/slang/slang-capability.cpp') diff --git a/source/slang/slang-capability.cpp b/source/slang/slang-capability.cpp index 00a3b6001..bae5a1c72 100644 --- a/source/slang/slang-capability.cpp +++ b/source/slang/slang-capability.cpp @@ -568,6 +568,25 @@ void CapabilitySet::nonDestructiveJoin(const CapabilitySet& other) } } +bool CapabilitySet::operator==(CapabilitySet const& that) const +{ + for (auto set : this->m_targetSets) + { + auto thatSet = that.m_targetSets.tryGetValue(set.first); + if (!thatSet) + return false; + for (auto stageSet : set.second.shaderStageSets) + { + auto thatStageSet = thatSet->shaderStageSets.tryGetValue(stageSet.first); + if (!thatStageSet) + return false; + if (stageSet.second.atomSet != thatStageSet->atomSet) + return false; + } + } + return true; +} + CapabilitySet CapabilitySet::getTargetsThisHasButOtherDoesNot(const CapabilitySet& other) { CapabilitySet newSet{}; -- cgit v1.2.3