#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.
22 {
23 MTLFunctionConstantValues* constantValues =
24 [[MTLFunctionConstantValues alloc]
init];
25 size_t index = 0;
26 for (
const auto value : constants) {
28 [constantValues setConstantValue:&copied_value
30 atIndex:index];
31 index++;
32 }
34 [library_ newFunctionWithName:@(
GetName().data())
35 constantValues:constantValues
36 completionHandler:^(id<MTLFunction> _Nullable
function,
37 NSError* _Nullable
error) {
39 }];
40}
std::function< void(id< MTLFunction >)> CompileCallback
const std::string & GetName() const
FlKeyEvent uint64_t FlKeyResponderAsyncCallback callback
const uint8_t uint32_t uint32_t GError ** error
Dart_NativeFunction function
◆ ShaderLibraryMTL
The documentation for this class was generated from the following files: