/* * Copyright 2025 Google LLC * * Use of this source code is governed by a BSD-style license that can be * found in the LICENSE file. */ #ifndef skiatest_graphite_GraphiteDawnToggles_DEFINED #define skiatest_graphite_GraphiteDawnToggles_DEFINED #include "webgpu/webgpu_cpp.h" // NO_G3_REWRITE #include namespace skiatest::graphite { // Toggles to be passed when creating the wgpu::Instance. wgpu::DawnTogglesDescriptor GetInstanceToggles(); // Toggles to be passed when creating the wgpu::Adapter. wgpu::DawnTogglesDescriptor GetAdapterToggles(); // Appends preferred features that the adapter lists as available that aren't already included // in `features`. void AddPreferredFeatures(const wgpu::Adapter& adapter, std::vector& features); } // namespace skiatest::graphite #endif // skiatest_graphite_GraphiteDawnToggles_DEFINED