mirror of
https://github.com/flutter/flutter.git
synced 2026-02-20 02:29:02 +08:00
[Impeller] Avoid soon to be deprecated MTLRenderPipelineDescriptor.sampleCount. (flutter/engine#36432)
This commit is contained in:
parent
2ff336a018
commit
abd415cafe
@ -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) {
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user