5#include "flutter/lib/gpu/render_pipeline.h"
7#include "flutter/lib/gpu/shader.h"
18 : vertex_shader_(
std::move(vertex_shader)),
19 fragment_shader_(
std::move(fragment_shader)) {}
25 vertex_descriptor->RegisterDescriptorSetLayouts(
28 vertex_descriptor->RegisterDescriptorSetLayouts(
31 desc.SetVertexDescriptor(vertex_descriptor);
55 auto res = fml::MakeRefCounted<flutter::gpu::RenderPipeline>(
58 res->AssociateWithDartWrapper(wrapper);
~RenderPipeline() override
RenderPipeline(fml::RefPtr< flutter::gpu::Shader > vertex_shader, fml::RefPtr< flutter::gpu::Shader > fragment_shader)
void BindToPipelineDescriptor(impeller::ShaderLibrary &library, impeller::PipelineDescriptor &desc)
An immutable collection of shaders loaded from a shader bundle asset.
bool RegisterSync(Context &context)
std::shared_ptr< impeller::VertexDescriptor > CreateVertexDescriptor() const
const std::vector< impeller::DescriptorSetLayout > & GetDescriptorSetLayouts() const
std::shared_ptr< const impeller::ShaderFunction > GetFunctionFromLibrary(impeller::ShaderLibrary &library)
struct _Dart_Handle * Dart_Handle
DART_EXPORT Dart_Handle Dart_Null(void)
IMPLEMENT_WRAPPERTYPEINFO(flutter_gpu, CommandBuffer)
Dart_Handle InternalFlutterGpu_RenderPipeline_Initialize(Dart_Handle wrapper, flutter::gpu::Context *gpu_context, flutter::gpu::Shader *vertex_shader, flutter::gpu::Shader *fragment_shader)