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

Unified Diff: include/gpu/vk/GrVkTypes.h

Issue 1808263002: Implement Vulkan GrBackendObject for textures. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Add GrVkTypes Created 4 years, 9 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 | « no previous file | src/gpu/vk/GrVkGpu.cpp » ('j') | src/gpu/vk/GrVkRenderTarget.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/gpu/vk/GrVkTypes.h
diff --git a/include/gpu/vk/GrVkTypes.h b/include/gpu/vk/GrVkTypes.h
new file mode 100755
index 0000000000000000000000000000000000000000..d03014ea226c7bdcdc1431eca5c1d44b31b7b5c8
--- /dev/null
+++ b/include/gpu/vk/GrVkTypes.h
@@ -0,0 +1,41 @@
+
+/*
+ * Copyright 2016 Google Inc.
+ *
+ * Use of this source code is governed by a BSD-style license that can be
+ * found in the LICENSE file.
+ */
+
+#ifndef GrVkTypes_DEFINED
+#define GrVkTypes_DEFINED
+
+#include <vulkan/vulkan.h>
+
+/**
+ * KHR_debug
+ */
+/*typedef void (GR_GL_FUNCTION_TYPE* GrVkDEBUGPROC)(GrVkenum source,
+ GrVkenum type,
+ GrVkuint id,
+ GrVkenum severity,
+ GrVksizei length,
+ const GrVkchar* message,
+ const void* userParam);*/
+
+
+
+///////////////////////////////////////////////////////////////////////////////
+/**
+ * Types for interacting with Vulkan resources created externally to Skia. GrBackendObjects for
+ * Vulkan textures are really const GrVkTextureInfo*
+ */
+
+struct GrVkTextureInfo {
+ VkImage fImage;
+ VkDeviceMemory fAlloc;
+ VkImageTiling fImageTiling;
egdaniel 2016/03/17 17:23:30 I wonder if we also will want to know the current
jvanverth1 2016/03/18 14:30:00 Done.
+};
+
+GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*));
+
+#endif
« no previous file with comments | « no previous file | src/gpu/vk/GrVkGpu.cpp » ('j') | src/gpu/vk/GrVkRenderTarget.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698