5 #ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_FUNCTION_MTL_H_
6 #define FLUTTER_IMPELLER_RENDERER_BACKEND_METAL_SHADER_FUNCTION_MTL_H_
8 #include <Metal/Metal.h>
17 public BackendCast<ShaderFunctionMTL, ShaderFunction> {
32 id<MTLFunction> function_ =
nullptr;
33 id<MTLLibrary> library_ =
nullptr;
36 id<MTLFunction>
function,
37 id<MTLLibrary> library,
~ShaderFunctionMTL() override
void GetMTLFunctionSpecialized(const std::vector< Scalar > &constants, const CompileCallback &callback) const
std::function< void(id< MTLFunction >)> CompileCallback
id< MTLFunction > GetMTLFunction() const