Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
third_party
skia
src
gpu
ganesh
vk
GrVkDescriptorSet.h
Go to the documentation of this file.
1
/*
2
* Copyright 2016 Google Inc.
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 GrVkDescriptorSet_DEFINED
9
#define GrVkDescriptorSet_DEFINED
10
11
#include "
include/gpu/vk/GrVkTypes.h
"
12
#include "
src/gpu/ganesh/vk/GrVkDescriptorSetManager.h
"
13
#include "
src/gpu/ganesh/vk/GrVkManagedResource.h
"
14
15
#include <cinttypes>
16
17
class
GrVkDescriptorPool
;
18
class
GrVkGpu
;
19
20
class
GrVkDescriptorSet
:
public
GrVkRecycledResource
{
21
public
:
22
GrVkDescriptorSet
(
GrVkGpu
* gpu,
23
VkDescriptorSet descSet,
24
GrVkDescriptorPool
*
pool
,
25
GrVkDescriptorSetManager::Handle handle);
26
27
~GrVkDescriptorSet
()
override
{}
28
29
const
VkDescriptorSet*
descriptorSet
()
const
{
return
&fDescSet; }
30
31
#ifdef SK_TRACE_MANAGED_RESOURCES
32
void
dumpInfo()
const override
{
33
SkDebugf
(
"GrVkDescriptorSet: %"
PRIdPTR
" (%d refs)\n"
, (intptr_t)fDescSet,
34
this->getRefCnt());
35
}
36
#endif
37
38
private
:
39
void
freeGPUData
()
const override
;
40
void
onRecycle
()
const override
;
41
42
VkDescriptorSet fDescSet;
43
SkDEBUGCODE
(
mutable
)
GrVkDescriptorPool
* fPool;
44
GrVkDescriptorSetManager
::Handle fHandle;
45
46
using INHERITED =
GrVkRecycledResource
;
47
};
48
49
#endif
pool
AutoreleasePool pool
Definition
BazelBenchmarkTestRunner.cpp:313
GrVkDescriptorSetManager.h
GrVkManagedResource.h
GrVkTypes.h
SkDebugf
void SK_SPI SkDebugf(const char format[],...) SK_PRINTF_LIKE(1
SkDEBUGCODE
#define SkDEBUGCODE(...)
Definition
SkDebug.h:23
GrVkDescriptorPool
Definition
GrVkDescriptorPool.h:23
GrVkDescriptorSetManager
Definition
GrVkDescriptorSetManager.h:26
GrVkDescriptorSet
Definition
GrVkDescriptorSet.h:20
GrVkDescriptorSet::~GrVkDescriptorSet
~GrVkDescriptorSet() override
Definition
GrVkDescriptorSet.h:27
GrVkDescriptorSet::freeGPUData
void freeGPUData() const override
Definition
GrVkDescriptorSet.cpp:25
GrVkDescriptorSet::descriptorSet
const VkDescriptorSet * descriptorSet() const
Definition
GrVkDescriptorSet.h:29
GrVkDescriptorSet::onRecycle
void onRecycle() const override
Definition
GrVkDescriptorSet.cpp:29
GrVkGpu
Definition
GrVkGpu.h:42
GrVkRecycledResource
Definition
GrVkManagedResource.h:27
Generated on Fri Apr 26 2024 06:17:14 for Flutter Engine by
1.9.8