This repository was archived by the owner on Feb 25, 2025. It is now read-only.
File tree 1 file changed +2
-14
lines changed
impeller/renderer/backend/metal
1 file changed +2
-14
lines changed Original file line number Diff line number Diff line change 3
3
// found in the LICENSE file.
4
4
5
5
#include " impeller/renderer/backend/metal/pipeline_library_mtl.h"
6
-
7
6
#include < Metal/Metal.h>
8
7
9
- #include " flutter/fml/build_config.h"
10
8
#include " flutter/fml/container.h"
11
9
#include " impeller/base/promise.h"
12
10
#include " impeller/renderer/backend/metal/compute_pipeline_mtl.h"
133
131
));
134
132
promise->set_value (new_pipeline);
135
133
};
136
- auto mtl_descriptor = GetMTLRenderPipelineDescriptor (descriptor);
137
- #if FML_OS_IOS
138
- [device_ newRenderPipelineStateWithDescriptor: mtl_descriptor
134
+ [device_ newRenderPipelineStateWithDescriptor: GetMTLRenderPipelineDescriptor (
135
+ descriptor)
139
136
completionHandler: completion_handler];
140
- #else // FML_OS_IOS
141
- // TODO(116919): Investigate and revert speculative fix to make MTL pipeline
142
- // state creation use a worker.
143
- NSError * error = nil ;
144
- auto render_pipeline_state =
145
- [device_ newRenderPipelineStateWithDescriptor: mtl_descriptor
146
- error: &error];
147
- completion_handler (render_pipeline_state, error);
148
- #endif // FML_OS_IOS
149
137
return pipeline_future;
150
138
}
151
139
You can’t perform that action at this time.
0 commit comments