diff options
Diffstat (limited to 'src/gpu/vk/GrVkCaps.h')
-rw-r--r-- | src/gpu/vk/GrVkCaps.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/gpu/vk/GrVkCaps.h b/src/gpu/vk/GrVkCaps.h index f599d22cb5..b0854867c8 100644 --- a/src/gpu/vk/GrVkCaps.h +++ b/src/gpu/vk/GrVkCaps.h @@ -29,6 +29,8 @@ public: GrVkCaps(const GrContextOptions& contextOptions, const GrVkInterface* vkInterface, VkPhysicalDevice device, uint32_t featureFlags, uint32_t extensionFlags); + int getSampleCount(int requestedCount, GrPixelConfig config) const override; + bool isConfigTexturable(GrPixelConfig config) const override { return SkToBool(ConfigInfo::kTextureable_Flag & fConfigTable[config].fOptimalFlags); } @@ -132,6 +134,7 @@ private: void init(const GrVkInterface*, VkPhysicalDevice, VkFormat); static void InitConfigFlags(VkFormatFeatureFlags, uint16_t* flags); + void initSampleCounts(const GrVkInterface*, VkPhysicalDevice, VkFormat); enum { kTextureable_Flag = 0x1, @@ -142,6 +145,8 @@ private: uint16_t fOptimalFlags; uint16_t fLinearFlags; + + SkTDArray<int> fColorSampleCounts; }; ConfigInfo fConfigTable[kGrPixelConfigCnt]; |