#include <GrVkCommandPool.h>
Definition at line 21 of file GrVkCommandPool.h.
◆ close()
void GrVkCommandPool::close |
( |
| ) |
|
◆ Create()
Definition at line 15 of file GrVkCommandPool.cpp.
15 {
19 }
20
23 nullptr,
24 cmdPoolCreateFlags,
26 };
31 return nullptr;
32 }
33
35 if (!primaryCmdBuffer) {
37 return nullptr;
38 }
39
41}
#define GR_VK_CALL(IFACE, X)
#define GR_VK_CALL_RESULT(GPU, RESULT, X)
uint32_t queueIndex() const
const skgpu::VulkanInterface * vkInterface() const
bool protectedContext() const
static GrVkPrimaryCommandBuffer * Create(GrVkGpu *gpu, VkCommandPool cmdPool)
VkFlags VkCommandPoolCreateFlags
@ VK_COMMAND_POOL_CREATE_TRANSIENT_BIT
@ VK_COMMAND_POOL_CREATE_PROTECTED_BIT
@ VK_STRUCTURE_TYPE_COMMAND_POOL_CREATE_INFO
◆ findOrCreateSecondaryCommandBuffer()
Definition at line 52 of file GrVkCommandPool.cpp.
53 {
54 std::unique_ptr<GrVkSecondaryCommandBuffer>
result;
55 if (!fAvailableSecondaryBuffers.
empty()) {
56 result = std::move(fAvailableSecondaryBuffers.
back());
57 fAvailableSecondaryBuffers.
pop_back();
58 } else{
60 }
62}
static GrVkSecondaryCommandBuffer * Create(GrVkGpu *gpu, GrVkCommandPool *cmdPool)
◆ getPrimaryCommandBuffer()
◆ isOpen()
bool GrVkCommandPool::isOpen |
( |
| ) |
const |
|
inline |
◆ recycleSecondaryCommandBuffer()
Definition at line 64 of file GrVkCommandPool.cpp.
64 {
65 std::unique_ptr<GrVkSecondaryCommandBuffer> scb(
buffer);
66 if (fAvailableSecondaryBuffers.
size() < fMaxCachedSecondaryCommandBuffers) {
67 fAvailableSecondaryBuffers.
push_back(std::move(scb));
68 } else {
69 VkCommandBuffer vkBuffer =
buffer->vkCommandBuffer();
71 FreeCommandBuffers(
fGpu->
device(), fCommandPool, 1, &vkBuffer));
72 }
73}
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
◆ reset()
void GrVkCommandPool::reset |
( |
GrVkGpu * |
gpu | ) |
|
Definition at line 79 of file GrVkCommandPool.cpp.
79 {
82
83
84
86 ResetCommandPool(gpu->
device(), fCommandPool, 0));
88
89
90
91
92
93
94
95
96 this->releaseResources();
97
99}
SkDEBUGCODE(SK_SPI) SkThreadID SkGetThreadID()
#define TRACE_EVENT0(category_group, name)
◆ vkCommandPool()
VkCommandPool GrVkCommandPool::vkCommandPool |
( |
| ) |
const |
|
inline |
The documentation for this class was generated from the following files: