// // Copyright 2023 The ANGLE Project Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. // // SecondaryCommandPool: // A class for allocating Command Buffers for VulkanSecondaryCommandBuffer. // #ifndef LIBANGLE_RENDERER_VULKAN_SECONDARYCOMMANDPOOL_H_ #define LIBANGLE_RENDERER_VULKAN_SECONDARYCOMMANDPOOL_H_ #include "common/FixedQueue.h" #include "common/SimpleMutex.h" #include "libANGLE/renderer/vulkan/vk_command_buffer_utils.h" #include "libANGLE/renderer/vulkan/vk_wrapper.h" namespace rx { namespace vk { class Context; class VulkanSecondaryCommandBuffer; // VkCommandPool must be externally synchronized when its Command Buffers are: allocated, freed, // reset, or recorded. This class ensures that Command Buffers are freed from the thread that // recording commands (Context thread). class SecondaryCommandPool final : angle::NonCopyable { … }; } // namespace vk } // namespace rx #endif // LIBANGLE_RENDERER_VULKAN_SECONDARYCOMMANDPOOL_H_