Greg Daniel | 8426165 | 2021-09-19 17:53:40 -0400 | [diff] [blame^] | 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 { |
| 14 | GrDawnTextureSpec() {} |
| 15 | 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 | |