diff options
author | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-14 22:54:45 +0200 |
---|---|---|
committer | ReinUsesLisp <reinuseslisp@airmail.cc> | 2020-04-17 02:12:32 +0200 |
commit | c96177090077a3cf4f73f83920bb067ef873bfca (patch) | |
tree | 562335891075d7fa69e615bdb8e60cee80b3c6bb /src/video_core/renderer_vulkan/vk_compute_pass.h | |
parent | Merge pull request #3600 from ReinUsesLisp/no-pointer-buf-cache (diff) | |
download | yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar.gz yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar.bz2 yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar.lz yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar.xz yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.tar.zst yuzu-c96177090077a3cf4f73f83920bb067ef873bfca.zip |
Diffstat (limited to 'src/video_core/renderer_vulkan/vk_compute_pass.h')
-rw-r--r-- | src/video_core/renderer_vulkan/vk_compute_pass.h | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/vk_compute_pass.h b/src/video_core/renderer_vulkan/vk_compute_pass.h index ec80c8683..26bf834de 100644 --- a/src/video_core/renderer_vulkan/vk_compute_pass.h +++ b/src/video_core/renderer_vulkan/vk_compute_pass.h @@ -8,6 +8,7 @@ #include <utility> #include <vector> #include "common/common_types.h" +#include "video_core/engines/maxwell_3d.h" #include "video_core/renderer_vulkan/vk_descriptor_pool.h" #include "video_core/renderer_vulkan/wrapper.h" @@ -73,4 +74,22 @@ private: VKUpdateDescriptorQueue& update_descriptor_queue; }; +class QuadIndexedPass final : public VKComputePass { +public: + explicit QuadIndexedPass(const VKDevice& device, VKScheduler& scheduler, + VKDescriptorPool& descriptor_pool, + VKStagingBufferPool& staging_buffer_pool, + VKUpdateDescriptorQueue& update_descriptor_queue); + ~QuadIndexedPass(); + + std::pair<VkBuffer, u64> Assemble(Tegra::Engines::Maxwell3D::Regs::IndexFormat index_format, + u32 num_vertices, u32 base_vertex, VkBuffer src_buffer, + u64 src_offset); + +private: + VKScheduler& scheduler; + VKStagingBufferPool& staging_buffer_pool; + VKUpdateDescriptorQueue& update_descriptor_queue; +}; + } // namespace Vulkan |