#include <shader_function_mtl.h>
Definition at line 15 of file shader_function_mtl.h.
◆ CompileCallback
◆ ~ShaderFunctionMTL()
impeller::ShaderFunctionMTL::~ShaderFunctionMTL |
( |
| ) |
|
|
overridedefault |
◆ GetMTLFunction()
id< MTLFunction > impeller::ShaderFunctionMTL::GetMTLFunction |
( |
| ) |
const |
◆ GetMTLFunctionSpecialized()
void impeller::ShaderFunctionMTL::GetMTLFunctionSpecialized |
( |
const std::vector< Scalar > & |
constants, |
|
|
const CompileCallback & |
callback |
|
) |
| const |
Definition at line 20 of file shader_function_mtl.mm.
23 MTLFunctionConstantValues* constantValues =
24 [[MTLFunctionConstantValues alloc] init];
26 for (
const auto value : constants) {
28 [constantValues setConstantValue:&copied_value
34 [library_ newFunctionWithName:@(
GetName().data())
35 constantValues:constantValues
36 completionHandler:^(id<MTLFunction> _Nullable
function,
37 NSError* _Nullable error) {
38 callback_value(
function);
const std::string & GetName() const
std::function< void(id< MTLFunction >)> CompileCallback
References type, and value.
◆ ShaderLibraryMTL
The documentation for this class was generated from the following files: