Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(223)

Unified Diff: gpu/vulkan/vulkan_descriptor_layout.h

Issue 1989013002: Added Vulkan Descriptor Sets and Samplers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Separated out descriptor layout Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/vulkan/BUILD.gn ('k') | gpu/vulkan/vulkan_descriptor_layout.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/vulkan/vulkan_descriptor_layout.h
diff --git a/gpu/vulkan/vulkan_descriptor_layout.h b/gpu/vulkan/vulkan_descriptor_layout.h
new file mode 100644
index 0000000000000000000000000000000000000000..80a3f435fd4efbc67ceaafb65452b281aaeeeaff
--- /dev/null
+++ b/gpu/vulkan/vulkan_descriptor_layout.h
@@ -0,0 +1,39 @@
+// Copyright (c) 2016 The Chromium 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 GPU_VULKAN_VULKAN_DESCRIPTOR_LAYOUT_H_
+#define GPU_VULKAN_VULKAN_DESCRIPTOR_LAYOUT_H_
+
+#include <vulkan/vulkan.h>
+
+#include <memory>
+#include <vector>
+
+#include "base/macros.h"
+#include "gpu/vulkan/vulkan_export.h"
+
+namespace gpu {
+
+class VulkanDeviceQueue;
+
+class VULKAN_EXPORT VulkanDescriptorLayout {
+ public:
+ explicit VulkanDescriptorLayout(VulkanDeviceQueue* device_queue);
+ ~VulkanDescriptorLayout();
+
+ bool Initialize(const std::vector<VkDescriptorSetLayoutBinding>& layout);
+ void Destroy();
+
+ VkDescriptorSetLayout handle() const { return handle_; }
+
+ private:
+ VulkanDeviceQueue* device_queue_ = nullptr;
+ VkDescriptorSetLayout handle_ = VK_NULL_HANDLE;
+
+ DISALLOW_COPY_AND_ASSIGN(VulkanDescriptorLayout);
+};
+
+} // namespace gpu
+
+#endif // GPU_VULKAN_VULKAN_DESCRIPTOR_LAYOUT_H_
« no previous file with comments | « gpu/vulkan/BUILD.gn ('k') | gpu/vulkan/vulkan_descriptor_layout.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698