// *** THIS FILE IS GENERATED - DO NOT EDIT *** // See valid_flag_values_generator.py for modifications /*************************************************************************** * * Copyright (c) 2024 The Khronos Group Inc. * Copyright (c) 2024 Valve Corporation * Copyright (c) 2024 LunarG, Inc. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. * You may obtain a copy of the License at * * http://www.apache.org/licenses/LICENSE-2.0 * * Unless required by applicable law or agreed to in writing, software * distributed under the License is distributed on an "AS IS" BASIS, * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. * See the License for the specific language governing permissions and * limitations under the License. ****************************************************************************/ // NOLINTBEGIN #include "stateless/stateless_validation.h" // For flags, we can't use the VkFlag as it can't be templated (since it all resolves to a int). // It is simpler for the caller to already check for both // - if zero is valid value or not // - if the value is even found in the API // so the this file is only focused on checking for extensions being supported vvl::Extensions StatelessValidation::IsValidFlagValue(vvl::FlagBitmask flag_bitmask, VkFlags value, const DeviceExtensions& device_extensions) const { … } vvl::Extensions StatelessValidation::IsValidFlag64Value(vvl::FlagBitmask flag_bitmask, VkFlags64 value, const DeviceExtensions& device_extensions) const { … } // NOLINTEND