OLD | NEW |
---|---|
(Empty) | |
1 | |
2 /* | |
3 * Copyright 2016 Google Inc. | |
4 * | |
5 * Use of this source code is governed by a BSD-style license that can be | |
6 * found in the LICENSE file. | |
7 */ | |
8 | |
9 #ifndef GrVkTypes_DEFINED | |
10 #define GrVkTypes_DEFINED | |
11 | |
12 #include <vulkan/vulkan.h> | |
13 | |
14 /** | |
15 * KHR_debug | |
16 */ | |
17 /*typedef void (GR_GL_FUNCTION_TYPE* GrVkDEBUGPROC)(GrVkenum source, | |
18 GrVkenum type, | |
19 GrVkuint id, | |
20 GrVkenum severity, | |
21 GrVksizei length, | |
22 const GrVkchar* message, | |
23 const void* userParam);*/ | |
24 | |
25 | |
26 | |
27 /////////////////////////////////////////////////////////////////////////////// | |
28 /** | |
29 * Types for interacting with Vulkan resources created externally to Skia. GrBac kendObjects for | |
30 * Vulkan textures are really const GrVkTextureInfo* | |
31 */ | |
32 | |
33 struct GrVkTextureInfo { | |
34 VkImage fImage; | |
35 VkDeviceMemory fAlloc; | |
36 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.
| |
37 }; | |
38 | |
39 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*)); | |
40 | |
41 #endif | |
OLD | NEW |