Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
d3d
GrD3DTypesPriv.cpp
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/d3d/GrD3DTypesPriv.h
"
9
10
GrD3DSurfaceInfo
GrD3DTextureResourceSpecToSurfaceInfo
(
const
GrD3DTextureResourceSpec
& d3dSpec,
11
uint32_t sampleCount,
12
uint32_t levelCount,
13
skgpu::Protected
isProtected) {
14
GrD3DSurfaceInfo
info
;
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
}
info
static void info(const char *fmt,...) SK_PRINTF_LIKE(1
Definition:
DM.cpp:213
GrD3DTextureResourceSpecToSurfaceInfo
GrD3DSurfaceInfo GrD3DTextureResourceSpecToSurfaceInfo(const GrD3DTextureResourceSpec &d3dSpec, uint32_t sampleCount, uint32_t levelCount, skgpu::Protected isProtected)
Definition:
GrD3DTypesPriv.cpp:10
GrD3DTypesPriv.h
skgpu::Protected
Protected
Definition:
GpuTypes.h:61
GrD3DSurfaceInfo
Definition:
GrD3DTypes.h:239
GrD3DTextureResourceSpec
Definition:
GrD3DTypesPriv.h:13
GrD3DTextureResourceSpec::fFormat
DXGI_FORMAT fFormat
Definition:
GrD3DTypesPriv.h:21
GrD3DTextureResourceSpec::fSampleQualityPattern
unsigned int fSampleQualityPattern
Definition:
GrD3DTypesPriv.h:22
Generated on Sun Jun 23 2024 21:56:17 for Flutter Engine by
1.9.4