// Copyright (C) 2020 Jérôme Leclercq // This file is part of the "Nazara Engine - Shader generator" // For conditions of distribution and use, see copyright notice in Config.hpp #include #include #include namespace Nz { inline bool SpirvWriter::IsConditionEnabled(const std::string& condition) const { std::size_t conditionIndex = m_context.shader->FindConditionByName(condition); assert(conditionIndex != ShaderAst::InvalidCondition); return TestBit(m_context.states->enabledConditions, conditionIndex); } } #include