1 /* 2 * Copyright 2022 Google LLC 3 * 4 * Use of this source code is governed by a BSD-style license that can be 5 * found in the LICENSE file. 6 */ 7 8 #ifndef skgpu_graphite_DawnBackendContext_DEFINED 9 #define skgpu_graphite_DawnBackendContext_DEFINED 10 11 #include "webgpu/webgpu_cpp.h" 12 13 namespace skgpu::graphite { 14 15 // The DawnBackendContext contains all of the base Dawn objects needed by the graphite Dawn 16 // backend. The client will create this object and pass it into the Context::MakeDawn factory call 17 // when setting up Skia. 18 struct SK_API DawnBackendContext { 19 wgpu::Device fDevice; 20 wgpu::Queue fQueue; 21 }; 22 23 } // namespace skgpu::graphite 24 25 #endif // skgpu_graphite_DawnBackendContext_DEFINED 26