#include <shader_function_mtl.h>
Definition at line 16 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) {
27 Scalar copied_value = value;
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);
References impeller::ShaderFunction::GetName().
Referenced by impeller::GetMTLRenderPipelineDescriptor().
◆ ShaderLibraryMTL
The documentation for this class was generated from the following files: