#include <array>
#include "dawn/common/Assert.h"
#include "dawn/common/Log.h"
#include "dawn/native/Toggles.h"
#include "dawn/native/dawn_platform.h"
#include "dawn/native/stream/Stream.h"
namespace dawn::native {
namespace {
struct ToggleEnumAndInfo { … };
ToggleEnumAndInfoList;
static constexpr ToggleEnumAndInfoList kToggleNameAndInfoList = …;
}
void TogglesSet::Set(Toggle toggle, bool enabled) { … }
bool TogglesSet::Has(Toggle toggle) const { … }
size_t TogglesSet::Count() const { … }
TogglesSet::Iterator TogglesSet::Iterate() const { … }
TogglesState::TogglesState(ToggleStage stage) : … { … }
TogglesState TogglesState::CreateFromTogglesDescriptor(const DawnTogglesDescriptor* togglesDesc,
ToggleStage requiredStage) { … }
TogglesState& TogglesState::InheritFrom(const TogglesState& inheritedToggles) { … }
void TogglesState::Default(Toggle toggle, bool enabled) { … }
void TogglesState::ForceSet(Toggle toggle, bool enabled) { … }
TogglesState& TogglesState::SetForTesting(Toggle toggle, bool enabled, bool forced) { … }
bool TogglesState::IsSet(Toggle toggle) const { … }
bool TogglesState::IsEnabled(Toggle toggle) const { … }
ToggleStage TogglesState::GetStage() const { … }
std::vector<const char*> TogglesState::GetEnabledToggleNames() const { … }
std::vector<const char*> TogglesState::GetDisabledToggleNames() const { … }
void StreamIn(stream::Sink* s, const TogglesState& togglesState) { … }
const char* ToggleEnumToName(Toggle toggle) { … }
std::vector<const ToggleInfo*> TogglesInfo::AllToggleInfos() { … }
TogglesInfo::TogglesInfo() = default;
TogglesInfo::~TogglesInfo() = default;
const ToggleInfo* TogglesInfo::GetToggleInfo(const char* toggleName) { … }
const ToggleInfo* TogglesInfo::GetToggleInfo(Toggle toggle) { … }
Toggle TogglesInfo::ToggleNameToEnum(const char* toggleName) { … }
void TogglesInfo::EnsureToggleNameToEnumMapInitialized() { … }
}