 |
Flutter Impeller
|
|
Go to the documentation of this file.
5 #ifndef FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_
6 #define FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_
33 const std::weak_ptr<const Context>&
GetContext()
const;
41 virtual bool IsValid()
const = 0;
110 virtual void OnSetLabel(std::string label) = 0;
122 #endif // FLUTTER_IMPELLER_RENDERER_RENDER_PASS_H_
An object used to specify work to the GPU along with references to resources the GPU will used when d...
const RenderTarget & GetRenderTarget() const
const Matrix & GetOrthographicTransform() const
const std::vector< Command > & GetCommands() const
Accessor for the current Commands.
RenderPass(std::weak_ptr< const Context > context, const RenderTarget &target)
const PixelFormat pixel_format_
PixelFormat
The Pixel formats supported by Impeller. The naming convention denotes the usage of the component,...
bool EncodeCommands() const
Encode the recorded commands to the underlying command buffer.
ISize GetRenderTargetSize() const
virtual bool OnEncodeCommands(const Context &context) const =0
SampleCount GetSampleCount() const
The sample count of the attached render target.
const RenderTarget render_target_
std::vector< Command > commands_
const ISize render_target_size_
Render passes encode render commands directed as one specific render target into an underlying comman...
void SetLabel(std::string label)
To do anything rendering related with Impeller, you need a context.
bool HasStencilAttachment() const
Whether the render target has an stencil attachment.
virtual void OnSetLabel(std::string label)=0
const bool has_stencil_attachment_
virtual bool IsValid() const =0
const Matrix orthographic_
const std::weak_ptr< const Context > & GetContext() const
bool AddCommand(Command &&command)
Record a command for subsequent encoding to the underlying command buffer. No work is encoded into th...
const std::weak_ptr< const Context > context_
void ReserveCommands(size_t command_count)
Reserve [command_count] commands in the HAL command buffer.
A 4x4 matrix using column-major storage.
HostBuffer & GetTransientsBuffer()
std::shared_ptr< HostBuffer > transients_buffer_
PixelFormat GetRenderTargetPixelFormat() const
The pixel format of the attached render target.
const SampleCount sample_count_