Flutter Impeller
shader_function_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 
6 
7 namespace impeller {
8 
9 ShaderFunctionMTL::ShaderFunctionMTL(UniqueID parent_library_id,
10  id<MTLFunction> function,
11  std::string name,
12  ShaderStage stage)
13  : ShaderFunction(parent_library_id, std::move(name), stage),
14  function_(function) {}
15 
17 
18 id<MTLFunction> ShaderFunctionMTL::GetMTLFunction() const {
19  return function_;
20 }
21 
22 } // namespace impeller
impeller::ShaderStage
ShaderStage
Definition: shader_types.h:20
shader_function_mtl.h
impeller::ShaderFunctionMTL::~ShaderFunctionMTL
~ShaderFunctionMTL() override
impeller::ShaderFunctionMTL::GetMTLFunction
id< MTLFunction > GetMTLFunction() const
Definition: shader_function_mtl.mm:18
std
Definition: comparable.h:98
impeller
Definition: aiks_context.cc:10