1 Star 0 Fork 0

ly-code/engine

加入 Gitee
与超过 1400万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
vulkan_command_buffer.h 1.54 KB
一键复制 编辑 原始数据 按行查看 历史
// Copyright 2013 The Flutter Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef FLUTTER_VULKAN_VULKAN_COMMAND_BUFFER_H_
#define FLUTTER_VULKAN_VULKAN_COMMAND_BUFFER_H_
#include "flutter/fml/macros.h"
#include "flutter/vulkan/procs/vulkan_handle.h"
namespace vulkan {
class VulkanProcTable;
class VulkanCommandBuffer {
public:
VulkanCommandBuffer(const VulkanProcTable& vk,
const VulkanHandle<VkDevice>& device,
const VulkanHandle<VkCommandPool>& pool);
~VulkanCommandBuffer();
bool IsValid() const;
VkCommandBuffer Handle() const;
[[nodiscard]] bool Begin() const;
[[nodiscard]] bool End() const;
[[nodiscard]] bool InsertPipelineBarrier(
VkPipelineStageFlagBits src_stage_flags,
VkPipelineStageFlagBits dest_stage_flags,
uint32_t /* mask of VkDependencyFlagBits */ dependency_flags,
uint32_t memory_barrier_count,
const VkMemoryBarrier* memory_barriers,
uint32_t buffer_memory_barrier_count,
const VkBufferMemoryBarrier* buffer_memory_barriers,
uint32_t image_memory_barrier_count,
const VkImageMemoryBarrier* image_memory_barriers) const;
private:
const VulkanProcTable& vk_;
const VulkanHandle<VkDevice>& device_;
const VulkanHandle<VkCommandPool>& pool_;
VulkanHandle<VkCommandBuffer> handle_;
bool valid_;
FML_DISALLOW_COPY_AND_ASSIGN(VulkanCommandBuffer);
};
} // namespace vulkan
#endif // FLUTTER_VULKAN_VULKAN_COMMAND_BUFFER_H_
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/ly-code/engine.git
git@gitee.com:ly-code/engine.git
ly-code
engine
engine
main

搜索帮助