| Flutter Impeller |

compute_pipeline_mtl.mm
Go to the documentation of this file.
1 // Copyright 2013 The Flutter Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "impeller/renderer/backend/metal/compute_pipeline_mtl.h"
6
7 namespace impeller {
8
9 ComputePipelineMTL::ComputePipelineMTL(std::weak_ptr<PipelineLibrary> library,
10 const ComputePipelineDescriptor& desc,
11 id<MTLComputePipelineState> state)
12 : Pipeline(std::move(library), desc), pipeline_state_(state) {
13 if (!pipeline_state_) {
14 return;
15 }
16 is_valid_ = true;
17 }
18
19 ComputePipelineMTL::~ComputePipelineMTL() = default;
20
21 bool ComputePipelineMTL::IsValid() const {
22 return is_valid_;
23 }
24
25 id<MTLComputePipelineState> ComputePipelineMTL::GetMTLComputePipelineState()
26 const {
27 return pipeline_state_;
28 }
29
30 } // namespace impeller
compute_pipeline_mtl.h
impeller::ComputePipelineMTL::GetMTLComputePipelineState
id< MTLComputePipelineState > GetMTLComputePipelineState() const
Definition: compute_pipeline_mtl.mm:25
impeller::ComputePipelineMTL::~ComputePipelineMTL
~ComputePipelineMTL() override
std
Definition: comparable.h:95
impeller
Definition: aiks_blur_unittests.cc:20