Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
ganesh
mtl
GrMtlTypesPriv.mm
Go to the documentation of this file.
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
#include "
src/gpu/ganesh/mtl/GrMtlTypesPriv.h
"
9
10
GrMtlSurfaceInfo
GrMtlTextureSpecToSurfaceInfo
(
const
GrMtlTextureSpec& mtlSpec,
11
uint32_t sampleCount,
12
uint32_t levelCount,
13
GrProtected
isProtected) {
14
GrMtlSurfaceInfo
info
;
15
// Shared info
16
info
.fSampleCount = sampleCount;
17
info
.fLevelCount = levelCount;
18
info
.fProtected = isProtected;
19
20
// Mtl info
21
info
.fFormat = mtlSpec.fFormat;
22
info
.fUsage = mtlSpec.fUsage;
23
info
.fStorageMode = mtlSpec.fStorageMode;
24
25
return
info
;
26
}
info
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition
DM.cpp:213
GrMtlTypesPriv.h
GrMtlTextureSpecToSurfaceInfo
GrMtlSurfaceInfo GrMtlTextureSpecToSurfaceInfo(const GrMtlTextureSpec &mtlSpec, uint32_t sampleCount, uint32_t levelCount, GrProtected isProtected)
Definition
GrMtlTypesPriv.mm:10
skgpu::Protected
Protected
Definition
GpuTypes.h:61
Generated on Fri Apr 26 2024 06:17:07 for Flutter Engine by
1.9.8