Flutter Engine
The Flutter Engine
Classes | Functions
GrD3DTypesPriv.h File Reference
#include "include/gpu/d3d/GrD3DTypes.h"

Go to the source code of this file.

Classes

struct  GrD3DTextureResourceSpec
 

Functions

GrD3DSurfaceInfo GrD3DTextureResourceSpecToSurfaceInfo (const GrD3DTextureResourceSpec &d3dSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
 

Function Documentation

◆ GrD3DTextureResourceSpecToSurfaceInfo()

GrD3DSurfaceInfo GrD3DTextureResourceSpecToSurfaceInfo ( const GrD3DTextureResourceSpec d3dSpec,
uint32_t  sampleCount,
uint32_t  levelCount,
skgpu::Protected  isProtected 
)

Definition at line 10 of file GrD3DTypesPriv.cpp.

13 {
15 // Shared info
16 info.fSampleCount = sampleCount;
17 info.fLevelCount = levelCount;
18 info.fProtected = isProtected;
19
20 // D3D info
21 info.fFormat = d3dSpec.fFormat;
22 info.fSampleQualityPattern = d3dSpec.fSampleQualityPattern;
23
24 return info;
25}
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition: DM.cpp:213
unsigned int fSampleQualityPattern