diff options
| author | 2020-03-27 02:57:47 -0300 | |
|---|---|---|
| committer | 2020-03-27 03:21:04 -0300 | |
| commit | 2694552b7fead62bb4283f3438c724fd86df210f (patch) | |
| tree | edbd2cb413febc9324349b21c603dc831a981e20 | |
| parent | renderer_vulkan/wrapper: Add pool allocations owning templated class (diff) | |
| download | yuzu-2694552b7fead62bb4283f3438c724fd86df210f.tar.gz yuzu-2694552b7fead62bb4283f3438c724fd86df210f.tar.xz yuzu-2694552b7fead62bb4283f3438c724fd86df210f.zip | |
renderer_vulkan/wrapper: Add owning handles
| -rw-r--r-- | src/video_core/renderer_vulkan/wrapper.h | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/src/video_core/renderer_vulkan/wrapper.h b/src/video_core/renderer_vulkan/wrapper.h index b50e1f3c7..14dd792ed 100644 --- a/src/video_core/renderer_vulkan/wrapper.h +++ b/src/video_core/renderer_vulkan/wrapper.h | |||
| @@ -503,4 +503,22 @@ private: | |||
| 503 | const DeviceDispatch* dld = nullptr; | 503 | const DeviceDispatch* dld = nullptr; |
| 504 | }; | 504 | }; |
| 505 | 505 | ||
| 506 | using BufferView = Handle<VkBufferView, VkDevice, DeviceDispatch>; | ||
| 507 | using DebugCallback = Handle<VkDebugUtilsMessengerEXT, VkInstance, InstanceDispatch>; | ||
| 508 | using DescriptorSetLayout = Handle<VkDescriptorSetLayout, VkDevice, DeviceDispatch>; | ||
| 509 | using DescriptorUpdateTemplateKHR = Handle<VkDescriptorUpdateTemplateKHR, VkDevice, DeviceDispatch>; | ||
| 510 | using Framebuffer = Handle<VkFramebuffer, VkDevice, DeviceDispatch>; | ||
| 511 | using ImageView = Handle<VkImageView, VkDevice, DeviceDispatch>; | ||
| 512 | using Pipeline = Handle<VkPipeline, VkDevice, DeviceDispatch>; | ||
| 513 | using PipelineLayout = Handle<VkPipelineLayout, VkDevice, DeviceDispatch>; | ||
| 514 | using QueryPool = Handle<VkQueryPool, VkDevice, DeviceDispatch>; | ||
| 515 | using RenderPass = Handle<VkRenderPass, VkDevice, DeviceDispatch>; | ||
| 516 | using Sampler = Handle<VkSampler, VkDevice, DeviceDispatch>; | ||
| 517 | using Semaphore = Handle<VkSemaphore, VkDevice, DeviceDispatch>; | ||
| 518 | using ShaderModule = Handle<VkShaderModule, VkDevice, DeviceDispatch>; | ||
| 519 | using SurfaceKHR = Handle<VkSurfaceKHR, VkInstance, InstanceDispatch>; | ||
| 520 | |||
| 521 | using DescriptorSets = PoolAllocations<VkDescriptorSet, VkDescriptorPool>; | ||
| 522 | using CommandBuffers = PoolAllocations<VkCommandBuffer, VkCommandPool>; | ||
| 523 | |||
| 506 | } // namespace Vulkan::vk | 524 | } // namespace Vulkan::vk |