12 std::shared_ptr<RenderPass> delegate,
13 const std::shared_ptr<const Context>& context,
21 delegate_->SetPipeline(pipeline);
27 pending_.label = std::string(label);
30 delegate_->SetCommandLabel(label);
38 delegate_->SetStencilReference(
value);
46 delegate_->SetBaseVertex(
value);
54 delegate_->SetViewport(viewport);
62 delegate_->SetScissor(scissor);
70 delegate_->SetInstanceCount(count);
77 return delegate_->SetVertexBuffer(
buffer);
84 commands_.emplace_back(std::move(pending_));
87 return delegate_->Draw();
100 return delegate_->EncodeCommands();
112 return delegate_->BindResource(stage,
type, slot, metadata,
view);
122 std::unique_ptr<ShaderMetadata> metadata,
125 return delegate_->BindDynamicResource(stage,
type, slot,
126 std::move(metadata),
view);
136 std::unique_ptr<ShaderMetadata> metadata,
137 std::shared_ptr<const Texture>
texture,
140 return delegate_->BindDynamicResource(
141 stage,
type, slot, std::move(metadata),
texture, sampler);
150 std::shared_ptr<const Texture>
texture,
153 return delegate_->BindResource(stage,
type, slot, metadata,
texture,
To do anything rendering related with Impeller, you need a context.
Render passes encode render commands directed as one specific render target into an underlying comman...
void SetBaseVertex(uint64_t value) override
RecordingRenderPass(std::shared_ptr< RenderPass > delegate, const std::shared_ptr< const Context > &context, const RenderTarget &render_target)
fml::Status Draw() override
Record the currently pending command.
void SetCommandLabel(std::string_view label) override
The debugging label to use for the command.
bool BindDynamicResource(ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, std::unique_ptr< ShaderMetadata > metadata, BufferView view) override
Bind with dynamically generated shader metadata.
void SetScissor(IRect32 scissor) override
void SetViewport(Viewport viewport) override
void SetInstanceCount(size_t count) override
bool BindResource(ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const ShaderMetadata *metadata, BufferView view) override
bool SetVertexBuffer(VertexBuffer buffer) override
Specify the vertex and index buffer to use for this command.
bool OnEncodeCommands(const Context &context) const override
void OnSetLabel(std::string_view label) override
void SetStencilReference(uint32_t value) override
void SetPipeline(PipelineRef pipeline) override
The pipeline to use for this command.
DEF_SWITCHES_START aot vmservice shared library Name of the *so containing AOT compiled Dart assets for launching the service isolate vm snapshot The VM snapshot data that will be memory mapped as read only SnapshotAssetPath must be present isolate snapshot The isolate snapshot data that will be memory mapped as read only SnapshotAssetPath must be present cache dir Path to the cache directory This is different from the persistent_cache_path in embedder which is used for Skia shader cache icu native lib Path to the library file that exports the ICU data vm service The hostname IP address on which the Dart VM Service should be served If not defaults to or::depending on whether ipv6 is specified disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set profile Make the profiler discard new samples once the profiler sample buffer is full When this flag is not the profiler sample buffer is used as a ring buffer
std::optional< IRect32 > scissor
uint32_t stencil_reference
std::optional< Viewport > viewport
Metadata required to bind a combined texture and sampler.