#include "flutter/lib/gpu/shader_library.h"#include <optional>#include <utility>#include "flutter/assets/asset_manager.h"#include "flutter/lib/gpu/shader.h"#include "flutter/lib/ui/ui_dart_state.h"#include "flutter/lib/ui/window/platform_configuration.h"#include "fml/mapping.h"#include "fml/memory/ref_ptr.h"#include "impeller/base/validation.h"#include "impeller/core/shader_types.h"#include "impeller/shader_bundle/shader_bundle_flatbuffers.h"#include "lib/gpu/context.h"Go to the source code of this file.
Namespaces | |
| namespace | flutter |
| namespace | flutter::gpu |
Functions | |
| flutter::gpu::IMPLEMENT_WRAPPERTYPEINFO (flutter_gpu, ShaderLibrary) | |
| static impeller::ShaderStage | flutter::gpu::ToShaderStage (impeller::fb::shaderbundle::ShaderStage stage) |
| static impeller::ShaderType | flutter::gpu::FromInputType (impeller::fb::shaderbundle::InputDataType input_type) |
| static impeller::ShaderType | flutter::gpu::FromUniformType (impeller::fb::shaderbundle::UniformDataType uniform_type) |
| static size_t | flutter::gpu::SizeOfInputType (impeller::fb::shaderbundle::InputDataType input_type) |
| static const impeller::fb::shaderbundle::BackendShader * | flutter::gpu::GetShaderBackend (impeller::Context::BackendType backend_type, const impeller::fb::shaderbundle::Shader *shader) |
| Dart_Handle | InternalFlutterGpu_ShaderLibrary_InitializeWithAsset (Dart_Handle wrapper, Dart_Handle asset_name) |
| Dart_Handle | InternalFlutterGpu_ShaderLibrary_GetShader (flutter::gpu::ShaderLibrary *wrapper, Dart_Handle shader_name, Dart_Handle shader_wrapper) |
| Dart_Handle InternalFlutterGpu_ShaderLibrary_GetShader | ( | flutter::gpu::ShaderLibrary * | wrapper, |
| Dart_Handle | shader_name, | ||
| Dart_Handle | shader_wrapper | ||
| ) |
Definition at line 376 of file shader_library.cc.
References FML_DCHECK, flutter::gpu::ShaderLibrary::GetShader(), tonic::StdStringFromDart(), and tonic::ToDart().
| Dart_Handle InternalFlutterGpu_ShaderLibrary_InitializeWithAsset | ( | Dart_Handle | wrapper, |
| Dart_Handle | asset_name | ||
| ) |
Exports
Definition at line 352 of file shader_library.cc.
References error, flutter::gpu::Context::GetDefaultContext(), flutter::gpu::ShaderLibrary::MakeFromAsset(), tonic::StdStringFromDart(), and tonic::ToDart().