Flutter Engine
The Flutter Engine
Namespaces | Functions
render_pipeline.cc File Reference
#include "flutter/lib/gpu/render_pipeline.h"
#include "flutter/lib/gpu/shader.h"
#include "impeller/renderer/pipeline_descriptor.h"

Go to the source code of this file.

Namespaces

namespace  flutter
 
namespace  flutter::gpu
 

Functions

 flutter::gpu::IMPLEMENT_WRAPPERTYPEINFO (flutter_gpu, RenderPipeline)
 
Dart_Handle InternalFlutterGpu_RenderPipeline_Initialize (Dart_Handle wrapper, flutter::gpu::Context *gpu_context, flutter::gpu::Shader *vertex_shader, flutter::gpu::Shader *fragment_shader)
 

Function Documentation

◆ InternalFlutterGpu_RenderPipeline_Initialize()

Dart_Handle InternalFlutterGpu_RenderPipeline_Initialize ( Dart_Handle  wrapper,
flutter::gpu::Context gpu_context,
flutter::gpu::Shader vertex_shader,
flutter::gpu::Shader fragment_shader 
)

Exports

Definition at line 46 of file render_pipeline.cc.

50 {
51 // Lazily register the shaders synchronously if they haven't been already.
52 vertex_shader->RegisterSync(*gpu_context);
53 fragment_shader->RegisterSync(*gpu_context);
54
55 auto res = fml::MakeRefCounted<flutter::gpu::RenderPipeline>(
56 fml::RefPtr<flutter::gpu::Shader>(vertex_shader), //
57 fml::RefPtr<flutter::gpu::Shader>(fragment_shader));
58 res->AssociateWithDartWrapper(wrapper);
59
60 return Dart_Null();
61}
bool RegisterSync(Context &context)
Definition: shader.cc:70
DART_EXPORT Dart_Handle Dart_Null(void)