Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
d3d
GrD3DTypesPriv.h
Go to the documentation of this file.
1
/*
2
* Copyright 2020 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 GrD3DTypesPriv_DEFINED
9
#define GrD3DTypesPriv_DEFINED
10
11
#include "
include/gpu/d3d/GrD3DTypes.h
"
12
13
struct
GrD3DTextureResourceSpec
{
14
GrD3DTextureResourceSpec
()
15
:
fFormat
(DXGI_FORMAT_UNKNOWN)
16
,
fSampleQualityPattern
(DXGI_STANDARD_MULTISAMPLE_QUALITY_PATTERN) {}
17
18
GrD3DTextureResourceSpec
(
const
GrD3DSurfaceInfo
&
info
)
19
:
fFormat
(
info
.
fFormat
),
fSampleQualityPattern
(
info
.
fSampleQualityPattern
) {}
20
21
DXGI_FORMAT
fFormat
;
22
unsigned
int
fSampleQualityPattern
;
23
};
24
25
GrD3DSurfaceInfo
GrD3DTextureResourceSpecToSurfaceInfo
(
const
GrD3DTextureResourceSpec
& d3dSpec,
26
uint32_t sampleCount,
27
uint32_t levelCount,
28
skgpu::Protected
isProtected);
29
30
#endif
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
GrD3DTypes.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::GrD3DTextureResourceSpec
GrD3DTextureResourceSpec(const GrD3DSurfaceInfo &info)
Definition:
GrD3DTypesPriv.h:18
GrD3DTextureResourceSpec::fSampleQualityPattern
unsigned int fSampleQualityPattern
Definition:
GrD3DTypesPriv.h:22
GrD3DTextureResourceSpec::GrD3DTextureResourceSpec
GrD3DTextureResourceSpec()
Definition:
GrD3DTypesPriv.h:14
Generated on Sun Jun 23 2024 21:56:17 for Flutter Engine by
1.9.4