Index: src/gpu/vk/GrVkCaps.h |
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h |
index 649dce791886bfd887e13e9149e4357c43b60e18..fdf5443964cd6d183e58236e12130def38f9d229 100644 |
--- a/src/gpu/vk/GrVkCaps.h |
+++ b/src/gpu/vk/GrVkCaps.h |
@@ -27,7 +27,7 @@ public: |
* be called to fill out the caps. |
*/ |
GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, |
- VkPhysicalDevice device, uint32_t featureFlags); |
+ VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionFlags); |
bool isConfigTexturable(GrPixelConfig config) const override { |
SkASSERT(kGrPixelConfigCnt > config); |
@@ -49,6 +49,10 @@ public: |
return fConfigLinearTextureSupport[config]; |
} |
+ bool canUseGLSLForShaderModule() const { |
+ return fCanUseGLSLForShaderModule; |
+ } |
+ |
/** |
* Gets an array of legal stencil formats. These formats are not guaranteed to be supported by |
* the driver but are legal VK_TEXTURE_FORMATs. |
@@ -69,7 +73,7 @@ public: |
private: |
void init(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, |
- VkPhysicalDevice device, uint32_t featureFlags); |
+ VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionFlags); |
void initGrCaps(const VkPhysicalDeviceProperties&, |
const VkPhysicalDeviceMemoryProperties&, |
uint32_t featureFlags); |
@@ -92,6 +96,9 @@ private: |
SkTArray<StencilFormat, true> fLinearStencilFormats; |
SkTArray<StencilFormat, true> fStencilFormats; |
+ // Tells of if we can pass in straight GLSL string into vkCreateShaderModule |
+ bool fCanUseGLSLForShaderModule; |
+ |
typedef GrCaps INHERITED; |
}; |