An immutable collection of shaders loaded from a shader bundle asset. More...
#include <shader.h>
Classes | |
| struct | TextureBinding |
| struct | UniformBinding |
Static Public Member Functions | |
| static fml::RefPtr< Shader > | Make (std::string library_id, std::string entrypoint, impeller::ShaderStage stage, std::shared_ptr< fml::Mapping > code_mapping, std::vector< impeller::ShaderStageIOSlot > inputs, std::vector< impeller::ShaderStageBufferLayout > layouts, std::unordered_map< std::string, UniformBinding > uniform_structs, std::unordered_map< std::string, TextureBinding > uniform_textures, std::vector< impeller::DescriptorSetLayout > descriptor_set_layouts) |
Additional Inherited Members | |
Public Types inherited from tonic::DartWrappable | |
| enum | DartNativeFields { kPeerIndex , kNumberOfNativeFields } |
Protected Member Functions inherited from fml::RefCountedThreadSafe< T > | |
| RefCountedThreadSafe () | |
| ~RefCountedThreadSafe () | |
Protected Member Functions inherited from fml::internal::RefCountedThreadSafeBase | |
| RefCountedThreadSafeBase () | |
| ~RefCountedThreadSafeBase () | |
| bool | Release () const |
| void | Adopt () |
Protected Member Functions inherited from tonic::DartWrappable | |
| virtual | ~DartWrappable () |
Static Protected Member Functions inherited from tonic::DartWrappable | |
| static Dart_PersistentHandle | GetTypeForWrapper (tonic::DartState *dart_state, const tonic::DartWrapperInfo &wrapper_info) |
An immutable collection of shaders loaded from a shader bundle asset.
|
overridedefault |
| std::shared_ptr< impeller::VertexDescriptor > flutter::gpu::Shader::CreateVertexDescriptor | ( | ) | const |
Definition at line 97 of file shader.cc.
Referenced by InternalFlutterGpu_RenderPipeline_Initialize().
| const std::vector< impeller::DescriptorSetLayout > & flutter::gpu::Shader::GetDescriptorSetLayouts | ( | ) | const |
Definition at line 118 of file shader.cc.
Referenced by flutter::gpu::RenderPipeline::RenderPipeline().
| std::shared_ptr< const impeller::ShaderFunction > flutter::gpu::Shader::GetFunctionFromLibrary | ( | impeller::ShaderLibrary & | library | ) |
Definition at line 67 of file shader.cc.
References impeller::ShaderLibrary::GetFunction().
Referenced by flutter::gpu::RenderPipeline::BindToPipelineDescriptor(), and IsRegistered().
| impeller::ShaderStage flutter::gpu::Shader::GetShaderStage | ( | ) | const |
Definition at line 113 of file shader.cc.
Referenced by BindUniform(), and InternalFlutterGpu_RenderPass_BindTexture().
| const std::vector< impeller::ShaderStageBufferLayout > & flutter::gpu::Shader::GetStageBufferLayouts | ( | ) | const |
| const std::vector< impeller::ShaderStageIOSlot > & flutter::gpu::Shader::GetStageInputs | ( | ) | const |
| const Shader::UniformBinding * flutter::gpu::Shader::GetUniformStruct | ( | const std::string & | name | ) | const |
Definition at line 122 of file shader.cc.
References flutter::name.
Referenced by BindUniform(), InternalFlutterGpu_Shader_GetUniformMemberOffset(), and InternalFlutterGpu_Shader_GetUniformStructSize().
| const Shader::TextureBinding * flutter::gpu::Shader::GetUniformTexture | ( | const std::string & | name | ) | const |
Definition at line 131 of file shader.cc.
References flutter::name.
Referenced by InternalFlutterGpu_RenderPass_BindTexture().
| bool flutter::gpu::Shader::IsRegistered | ( | Context & | context | ) |
Definition at line 72 of file shader.cc.
References flutter::gpu::Context::GetContext(), GetFunctionFromLibrary(), and impeller::Context::GetShaderLibrary().
Referenced by RegisterSync().
|
static |
Definition at line 39 of file shader.cc.
Referenced by flutter::gpu::ShaderLibrary::MakeFromFlatbuffer().
| bool flutter::gpu::Shader::RegisterSync | ( | Context & | context | ) |
Definition at line 77 of file shader.cc.
References flutter::gpu::Context::GetContext(), impeller::Context::GetShaderLibrary(), IsRegistered(), and fml::MakeCopyable().
Referenced by InternalFlutterGpu_RenderPipeline_Initialize().