[Impeller] Avoid soon to be deprecated MTLRenderPipelineDescriptor.sampleCount. (flutter/engine#36432)

This commit is contained in:
Chinmay Garde 2022-09-26 18:03:20 -07:00 committed by GitHub
parent 2ff336a018
commit abd415cafe

View File

@ -23,7 +23,7 @@ static MTLRenderPipelineDescriptor* GetMTLRenderPipelineDescriptor(
const PipelineDescriptor& desc) {
auto descriptor = [[MTLRenderPipelineDescriptor alloc] init];
descriptor.label = @(desc.GetLabel().c_str());
descriptor.sampleCount = static_cast<NSUInteger>(desc.GetSampleCount());
descriptor.rasterSampleCount = static_cast<NSUInteger>(desc.GetSampleCount());
for (const auto& entry : desc.GetStageEntrypoints()) {
if (entry.first == ShaderStage::kVertex) {