| OLD | NEW |
| 1 | 1 |
| 2 /* | 2 /* |
| 3 * Copyright 2016 Google Inc. | 3 * Copyright 2016 Google Inc. |
| 4 * | 4 * |
| 5 * Use of this source code is governed by a BSD-style license that can be | 5 * Use of this source code is governed by a BSD-style license that can be |
| 6 * found in the LICENSE file. | 6 * found in the LICENSE file. |
| 7 */ | 7 */ |
| 8 | 8 |
| 9 #ifndef GrVkTypes_DEFINED | 9 #ifndef GrVkTypes_DEFINED |
| 10 #define GrVkTypes_DEFINED | 10 #define GrVkTypes_DEFINED |
| (...skipping 18 matching lines...) Expand all Loading... |
| 29 * Types for interacting with Vulkan resources created externally to Skia. GrBac
kendObjects for | 29 * Types for interacting with Vulkan resources created externally to Skia. GrBac
kendObjects for |
| 30 * Vulkan textures are really const GrVkTextureInfo* | 30 * Vulkan textures are really const GrVkTextureInfo* |
| 31 */ | 31 */ |
| 32 | 32 |
| 33 struct GrVkTextureInfo { | 33 struct GrVkTextureInfo { |
| 34 VkImage fImage; | 34 VkImage fImage; |
| 35 VkDeviceMemory fAlloc; // this may be null iff the texture is an RT and u
ses borrow semantics | 35 VkDeviceMemory fAlloc; // this may be null iff the texture is an RT and u
ses borrow semantics |
| 36 VkImageTiling fImageTiling; | 36 VkImageTiling fImageTiling; |
| 37 VkImageLayout fImageLayout; | 37 VkImageLayout fImageLayout; |
| 38 VkFormat fFormat; | 38 VkFormat fFormat; |
| 39 uint32_t fLevelCount; |
| 39 }; | 40 }; |
| 40 | 41 |
| 41 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*)); | 42 GR_STATIC_ASSERT(sizeof(GrBackendObject) >= sizeof(const GrVkTextureInfo*)); |
| 42 | 43 |
| 43 #endif | 44 #endif |
| OLD | NEW |