Flutter Engine
The Flutter Engine
third_party
skia
include
gpu
d3d
GrD3DBackendContext.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 GrD3DBackendContext_DEFINED
9
#define GrD3DBackendContext_DEFINED
10
11
// GrD3DTypes.h includes d3d12.h, which in turn includes windows.h, which redefines many
12
// common identifiers such as:
13
// * interface
14
// * small
15
// * near
16
// * far
17
// * CreateSemaphore
18
// * MemoryBarrier
19
//
20
// You should only include GrD3DBackendContext.h if you are prepared to rename those identifiers.
21
#include "
include/gpu/d3d/GrD3DTypes.h
"
22
23
#include "
include/gpu/GrTypes.h
"
24
25
// The BackendContext contains all of the base D3D objects needed by the GrD3DGpu. The assumption
26
// is that the client will set these up and pass them to the GrD3DGpu constructor.
27
struct
SK_API
GrD3DBackendContext
{
28
gr_cp<IDXGIAdapter1>
fAdapter
;
29
gr_cp<ID3D12Device>
fDevice
;
30
gr_cp<ID3D12CommandQueue>
fQueue
;
31
sk_sp<GrD3DMemoryAllocator>
fMemoryAllocator
;
32
GrProtected
fProtectedContext =
GrProtected::kNo
;
33
};
34
35
#endif
GrD3DTypes.h
GrTypes.h
SK_API
#define SK_API
Definition:
SkAPI.h:35
gr_cp< IDXGIAdapter1 >
sk_sp< GrD3DMemoryAllocator >
skgpu::Protected
Protected
Definition:
GpuTypes.h:61
skgpu::Protected::kNo
@ kNo
GrD3DBackendContext
Definition:
GrD3DBackendContext.h:27
GrD3DBackendContext::fDevice
gr_cp< ID3D12Device > fDevice
Definition:
GrD3DBackendContext.h:29
GrD3DBackendContext::fMemoryAllocator
sk_sp< GrD3DMemoryAllocator > fMemoryAllocator
Definition:
GrD3DBackendContext.h:31
GrD3DBackendContext::fAdapter
gr_cp< IDXGIAdapter1 > fAdapter
Definition:
GrD3DBackendContext.h:28
GrD3DBackendContext::fQueue
gr_cp< ID3D12CommandQueue > fQueue
Definition:
GrD3DBackendContext.h:30
Generated on Sun Jun 23 2024 21:56:02 for Flutter Engine by
1.9.4