#include <shader_function_mtl.h>
Public Types | |
| using | CompileCallback = std::function< void(id< MTLFunction >)> |
Public Member Functions | |
| ~ShaderFunctionMTL () override | |
| id< MTLFunction > | GetMTLFunction () const |
| void | GetMTLFunctionSpecialized (const std::vector< Scalar > &constants, const CompileCallback &callback) const |
Public Member Functions inherited from impeller::ShaderFunction | |
| virtual | ~ShaderFunction () |
| ShaderStage | GetStage () const |
| const std::string & | GetName () const |
| std::size_t | GetHash () const override |
| bool | IsEqual (const ShaderFunction &other) const override |
Public Member Functions inherited from impeller::Comparable< ShaderFunction > | |
| virtual std::size_t | GetHash () const=0 |
Friends | |
| class | ShaderLibraryMTL |
Additional Inherited Members | |
Static Public Member Functions inherited from impeller::BackendCast< ShaderFunctionMTL, ShaderFunction > | |
| static ShaderFunctionMTL & | Cast (ShaderFunction &base) |
| static const ShaderFunctionMTL & | Cast (const ShaderFunction &base) |
| static ShaderFunctionMTL * | Cast (ShaderFunction *base) |
| static const ShaderFunctionMTL * | Cast (const ShaderFunction *base) |
Protected Member Functions inherited from impeller::ShaderFunction | |
| ShaderFunction (UniqueID parent_library_id, std::string name, ShaderStage stage) | |
Definition at line 15 of file shader_function_mtl.h.
| using impeller::ShaderFunctionMTL::CompileCallback = std::function<void(id<MTLFunction>)> |
Definition at line 24 of file shader_function_mtl.h.
|
overridedefault |
| id< MTLFunction > impeller::ShaderFunctionMTL::GetMTLFunction | ( | ) | const |
Definition at line 42 of file shader_function_mtl.mm.
Referenced by impeller::GetMTLComputePipelineDescriptor(), and impeller::GetMTLRenderPipelineDescriptor().
| void impeller::ShaderFunctionMTL::GetMTLFunctionSpecialized | ( | const std::vector< Scalar > & | constants, |
| const CompileCallback & | callback | ||
| ) | const |
Definition at line 20 of file shader_function_mtl.mm.
References impeller::ShaderFunction::GetName(), and type.
Referenced by impeller::GetMTLRenderPipelineDescriptor().
|
friend |
Definition at line 30 of file shader_function_mtl.h.