5#ifndef FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_RECORDING_RENDER_PASS_H_
6#define FLUTTER_IMPELLER_ENTITY_CONTENTS_TEST_RECORDING_RENDER_PASS_H_
15 const std::shared_ptr<const Context>& context,
20 const std::vector<Command>&
GetCommands()
const override {
return commands_; }
60 const std::shared_ptr<const ShaderMetadata>& metadata,
68 std::shared_ptr<const Texture>
texture,
69 const std::unique_ptr<const Sampler>& sampler)
override;
77 bool IsValid()
const override {
return true; }
81 std::shared_ptr<RenderPass> delegate_;
82 std::vector<Command> commands_;
To do anything rendering related with Impeller, you need a context.
Describes the fixed function and programmable aspects of rendering and compute operations performed b...
void SetStencilReference(uint32_t value) override
const std::vector< Command > & GetCommands() const override
Accessor for the current Commands.
void SetCommandLabel(std::string_view label) override
The debugging label to use for the command.
bool IsValid() const override
bool SetVertexBuffer(VertexBuffer buffer) override
Specify the vertex and index buffer to use for this command.
~RecordingRenderPass()=default
fml::Status Draw() override
Record the currently pending command.
void SetBaseVertex(uint64_t value) override
bool OnEncodeCommands(const Context &context) const override
void SetInstanceCount(size_t count) override
void SetViewport(Viewport viewport) override
void OnSetLabel(std::string label) override
bool BindResource(ShaderStage stage, DescriptorType type, const ShaderUniformSlot &slot, const ShaderMetadata &metadata, BufferView view) override
void SetPipeline(const std::shared_ptr< Pipeline< PipelineDescriptor > > &pipeline) override
The pipeline to use for this command.
void SetScissor(IRect scissor) override
Render passes encode render commands directed as one specific render target into an underlying comman...
static const uint8_t buffer[]
An object used to specify work to the GPU along with references to resources the GPU will used when d...
Metadata required to bind a combined texture and sampler.