• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 /*
2  * Copyright 2021 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 GrDawnTypesPriv_DEFINED
9 #define GrDawnTypesPriv_DEFINED
10 
11 #include "include/gpu/dawn/GrDawnTypes.h"
12 
13 struct GrDawnTextureSpec {
GrDawnTextureSpecGrDawnTextureSpec14     GrDawnTextureSpec() {}
GrDawnTextureSpecGrDawnTextureSpec15     GrDawnTextureSpec(const GrDawnSurfaceInfo& info) : fFormat(info.fFormat) {}
16 
17     wgpu::TextureFormat fFormat;
18 };
19 
20 GrDawnSurfaceInfo GrDawnTextureSpecToSurfaceInfo(const GrDawnTextureSpec& dawnSpec,
21                                                  uint32_t sampleCount,
22                                                  uint32_t levelCount,
23                                                  GrProtected isProtected);
24 
25 #endif
26 
27