blob: 5eacf2ea2d2639408008521e622749f56e706680 [file] [log] [blame]
Greg Daniel84261652021-09-19 17:53:40 -04001/*
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
13struct GrDawnTextureSpec {
14 GrDawnTextureSpec() {}
15 GrDawnTextureSpec(const GrDawnSurfaceInfo& info) : fFormat(info.fFormat) {}
16
17 wgpu::TextureFormat fFormat;
18};
19
20GrDawnSurfaceInfo GrDawnTextureSpecToSurfaceInfo(const GrDawnTextureSpec& dawnSpec,
21 uint32_t sampleCount,
22 uint32_t levelCount,
23 GrProtected isProtected);
24
25#endif
26