Flutter Engine
The Flutter Engine
third_party
skia
src
gpu
ganesh
d3d
GrD3DAttachment.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 GrD3DAttachment_DEFINED
9
#define GrD3DAttachment_DEFINED
10
11
#include "
src/gpu/ganesh/GrAttachment.h
"
12
13
#include "
include/gpu/d3d/GrD3DTypes.h
"
14
#include "
src/gpu/ganesh/d3d/GrD3DDescriptorHeap.h
"
15
#include "
src/gpu/ganesh/d3d/GrD3DTextureResource.h
"
16
17
class
GrD3DGpu
;
18
19
class
GrD3DAttachment
:
public
GrAttachment
,
public
GrD3DTextureResource
{
20
public
:
21
static
sk_sp<GrD3DAttachment>
MakeStencil
(
GrD3DGpu
* gpu,
22
SkISize
dimensions
,
23
int
sampleCnt,
24
DXGI_FORMAT
format
);
25
26
~GrD3DAttachment
()
override
{}
27
28
GrBackendFormat
backendFormat
()
const override
{
return
GrBackendFormat::MakeDxgi(fFormat); }
29
30
D3D12_CPU_DESCRIPTOR_HANDLE
view
()
const
{
return
fView.
fHandle
; }
31
32
protected
:
33
void
onRelease
()
override
;
34
void
onAbandon
()
override
;
35
36
private
:
37
GrD3DAttachment
(
GrD3DGpu
* gpu,
38
SkISize
dimensions
,
39
UsageFlags
supportedUsages
,
40
DXGI_FORMAT
format
,
41
const
D3D12_RESOURCE_DESC&,
42
const
GrD3DTextureResourceInfo
&,
43
sk_sp<GrD3DResourceState>
,
44
const
GrD3DDescriptorHeap::CPUHandle
&
view
,
45
std::string_view label);
46
47
GrD3DGpu
* getD3DGpu()
const
;
48
49
void
onSetLabel()
override
;
50
51
GrD3DDescriptorHeap::CPUHandle
fView;
52
DXGI_FORMAT fFormat;
53
};
54
55
#endif
GrAttachment.h
GrD3DDescriptorHeap.h
GrD3DTextureResource.h
GrD3DTypes.h
GrAttachment
Definition:
GrAttachment.h:25
GrAttachment::supportedUsages
UsageFlags supportedUsages() const
Definition:
GrAttachment.h:36
GrAttachment::UsageFlags
UsageFlags
Definition:
GrAttachment.h:27
GrBackendFormat
Definition:
GrBackendSurface.h:44
GrD3DAttachment
Definition:
GrD3DAttachment.h:19
GrD3DAttachment::backendFormat
GrBackendFormat backendFormat() const override
Definition:
GrD3DAttachment.h:28
GrD3DAttachment::onAbandon
void onAbandon() override
Definition:
GrD3DAttachment.cpp:82
GrD3DAttachment::onRelease
void onRelease() override
Definition:
GrD3DAttachment.cpp:75
GrD3DAttachment::~GrD3DAttachment
~GrD3DAttachment() override
Definition:
GrD3DAttachment.h:26
GrD3DAttachment::view
D3D12_CPU_DESCRIPTOR_HANDLE view() const
Definition:
GrD3DAttachment.h:30
GrD3DAttachment::MakeStencil
static sk_sp< GrD3DAttachment > MakeStencil(GrD3DGpu *gpu, SkISize dimensions, int sampleCnt, DXGI_FORMAT format)
Definition:
GrD3DAttachment.cpp:34
GrD3DGpu
Definition:
GrD3DGpu.h:28
GrD3DTextureResource
Definition:
GrD3DTextureResource.h:20
GrSurface::dimensions
SkISize dimensions() const
Definition:
GrSurface.h:27
sk_sp
Definition:
SkRefCnt.h:220
format
uint32_t uint32_t * format
Definition:
fl_texture_registrar_test.cc:41
GrD3DDescriptorHeap::CPUHandle
Definition:
GrD3DDescriptorHeap.h:27
GrD3DDescriptorHeap::CPUHandle::fHandle
D3D12_CPU_DESCRIPTOR_HANDLE fHandle
Definition:
GrD3DDescriptorHeap.h:28
GrD3DTextureResourceInfo
Definition:
GrD3DTypes.h:179
SkISize
Definition:
SkSize.h:16
Generated on Sun Jun 23 2024 21:56:17 for Flutter Engine by
1.9.4