void GrVkCaps::initSampleCount(const VkPhysicalDeviceProperties& properties) { VkSampleCountFlags colorSamples = properties.limits.framebufferColorSampleCounts; VkSampleCountFlags stencilSamples = properties.limits.framebufferStencilSampleCounts; fMaxColorSampleCount = get_max_sample_count(colorSamples); fMaxStencilSampleCount = get_max_sample_count(stencilSamples); }
void GrVkCaps::initSampleCount(const VkPhysicalDeviceProperties& properties) { VkSampleCountFlags colorSamples = properties.limits.framebufferColorSampleCounts; VkSampleCountFlags stencilSamples = properties.limits.framebufferStencilSampleCounts; fMaxColorSampleCount = get_max_sample_count(colorSamples); if (kImagination_VkVendor == properties.vendorID) { fMaxColorSampleCount = 0; } fMaxStencilSampleCount = get_max_sample_count(stencilSamples); }