Flutter Engine
The Flutter Engine
Loading...
Searching...
No Matches
impeller
renderer
backend
metal
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
state
AtkStateType state
Definition
fl_accessible_node.cc:10
impeller
Definition
texture.h:18
import_conformance_tests.desc
desc
Definition
import_conformance_tests.py:63
std
Definition
ref_ptr.h:256
Generated on Fri Apr 26 2024 06:14:12 for Flutter Engine by
1.9.8