| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2015 Google Inc. | 2 * Copyright 2015 Google Inc. |
| 3 * | 3 * |
| 4 * Use of this source code is governed by a BSD-style license that can be | 4 * Use of this source code is governed by a BSD-style license that can be |
| 5 * found in the LICENSE file. | 5 * found in the LICENSE file. |
| 6 */ | 6 */ |
| 7 | 7 |
| 8 #ifndef GrVkCaps_DEFINED | 8 #ifndef GrVkCaps_DEFINED |
| 9 #define GrVkCaps_DEFINED | 9 #define GrVkCaps_DEFINED |
| 10 | 10 |
| 11 #include "GrCaps.h" | 11 #include "GrCaps.h" |
| 12 #include "GrVkStencilAttachment.h" | 12 #include "GrVkStencilAttachment.h" |
| 13 #include "vk/GrVkDefines.h" | 13 #include "vk/GrVkDefines.h" |
| 14 | 14 |
| 15 struct GrVkInterface; | 15 struct GrVkInterface; |
| 16 class GrGLSLCaps; | 16 class GrGLSLCaps; |
| 17 | 17 |
| 18 /** | 18 /** |
| 19 * Stores some capabilities of a Vk backend. | 19 * Stores some capabilities of a Vk backend. |
| 20 */ | 20 */ |
| 21 class GrVkCaps : public GrCaps { | 21 class GrVkCaps : public GrCaps { |
| 22 public: | 22 public: |
| 23 typedef GrVkStencilAttachment::Format StencilFormat; | 23 typedef GrVkStencilAttachment::Format StencilFormat; |
| 24 | 24 |
| 25 /** | 25 /** |
| 26 * Creates a GrVkCaps that is set such that nothing is supported. The init f
unction should | 26 * Creates a GrVkCaps that is set such that nothing is supported. The init f
unction should |
| 27 * be called to fill out the caps. | 27 * be called to fill out the caps. |
| 28 */ | 28 */ |
| 29 GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInte
rface, | 29 GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInte
rface, |
| 30 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionF
lags); | 30 VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionF
lags); |
| 31 | 31 |
| 32 bool isConfigTexturable(GrPixelConfig config) const override { | 32 bool isConfigTexturable(GrPixelConfig config) const override { |
| (...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 96 SkTArray<StencilFormat, true> fLinearStencilFormats; | 96 SkTArray<StencilFormat, true> fLinearStencilFormats; |
| 97 SkTArray<StencilFormat, true> fStencilFormats; | 97 SkTArray<StencilFormat, true> fStencilFormats; |
| 98 | 98 |
| 99 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule | 99 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule |
| 100 bool fCanUseGLSLForShaderModule; | 100 bool fCanUseGLSLForShaderModule; |
| 101 | 101 |
| 102 typedef GrCaps INHERITED; | 102 typedef GrCaps INHERITED; |
| 103 }; | 103 }; |
| 104 | 104 |
| 105 #endif | 105 #endif |
| OLD | NEW |