Flutter Engine
The Flutter Engine
Functions
GrMtlTypesPriv.mm File Reference
#include "src/gpu/ganesh/mtl/GrMtlTypesPriv.h"

Go to the source code of this file.

Functions

GrMtlSurfaceInfo GrMtlTextureSpecToSurfaceInfo (const GrMtlTextureSpec &mtlSpec, uint32_t sampleCount, uint32_t levelCount, GrProtected isProtected)
 

Function Documentation

◆ GrMtlTextureSpecToSurfaceInfo()

GrMtlSurfaceInfo GrMtlTextureSpecToSurfaceInfo ( const GrMtlTextureSpec &  mtlSpec,
uint32_t  sampleCount,
uint32_t  levelCount,
GrProtected  isProtected 
)

Definition at line 10 of file GrMtlTypesPriv.mm.

13 {
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}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213