| 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 |
| (...skipping 19 matching lines...) Expand all Loading... |
| 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 { |
| 33 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOp
timalFlags); | 33 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOp
timalFlags); |
| 34 } | 34 } |
| 35 | 35 |
| 36 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override
{ | 36 bool isConfigRenderable(GrPixelConfig config, bool withMSAA) const override
{ |
| 37 return SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fOpt
imalFlags); | 37 return SkToBool(ConfigInfo::kRenderable_Flag & fConfigTable[config].fOpt
imalFlags); |
| 38 } | 38 } |
| 39 | 39 |
| 40 bool isConfigTexurableLinearly(GrPixelConfig config) const { | 40 bool isConfigTexturableLinearly(GrPixelConfig config) const { |
| 41 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fLi
nearFlags); | 41 return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fLi
nearFlags); |
| 42 } | 42 } |
| 43 | 43 |
| 44 bool isConfigRenderableLinearly(GrPixelConfig config, bool withMSAA) const { | 44 bool isConfigRenderableLinearly(GrPixelConfig config, bool withMSAA) const { |
| 45 return !withMSAA && SkToBool(ConfigInfo::kRenderable_Flag & | 45 return !withMSAA && SkToBool(ConfigInfo::kRenderable_Flag & |
| 46 fConfigTable[config].fLinearFlags); | 46 fConfigTable[config].fLinearFlags); |
| 47 } | 47 } |
| 48 | 48 |
| 49 bool configCanBeDstofBlit(GrPixelConfig config, bool linearTiled) const { | 49 bool configCanBeDstofBlit(GrPixelConfig config, bool linearTiled) const { |
| 50 const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags
: | 50 const uint16_t& flags = linearTiled ? fConfigTable[config].fLinearFlags
: |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 104 | 104 |
| 105 StencilFormat fPreferedStencilFormat; | 105 StencilFormat fPreferedStencilFormat; |
| 106 | 106 |
| 107 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule | 107 // Tells of if we can pass in straight GLSL string into vkCreateShaderModule |
| 108 bool fCanUseGLSLForShaderModule; | 108 bool fCanUseGLSLForShaderModule; |
| 109 | 109 |
| 110 typedef GrCaps INHERITED; | 110 typedef GrCaps INHERITED; |
| 111 }; | 111 }; |
| 112 | 112 |
| 113 #endif | 113 #endif |
| OLD | NEW |