5#ifndef FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RENDER_PASS_VK_H_
6#define FLUTTER_IMPELLER_RENDERER_BACKEND_VULKAN_RENDER_PASS_VK_H_
15#include "vulkan/vulkan_handles.hpp"
30 std::shared_ptr<CommandBufferVK> command_buffer_;
31 std::string debug_label_;
33 bool is_valid_ =
false;
35 vk::CommandBuffer command_buffer_vk_;
36 std::shared_ptr<Texture> color_image_vk_;
37 std::shared_ptr<Texture> resolve_image_vk_;
40 std::array<vk::DescriptorImageInfo, kMaxBindings> image_workspace_;
41 std::array<vk::DescriptorBufferInfo, kMaxBindings> buffer_workspace_;
42 std::array<vk::WriteDescriptorSet, kMaxBindings + kMaxBindings>
44 size_t bound_image_offset_ = 0u;
45 size_t bound_buffer_offset_ = 0u;
46 size_t descriptor_write_offset_ = 0u;
47 size_t instance_count_ = 1u;
48 size_t base_vertex_ = 0u;
49 size_t vertex_count_ = 0u;
50 bool has_index_buffer_ =
false;
51 bool has_label_ =
false;
53 bool pipeline_uses_input_attachments_ =
false;
54 std::shared_ptr<SamplerVK> immutable_sampler_;
56 RenderPassVK(
const std::shared_ptr<const Context>& context,
58 std::shared_ptr<CommandBufferVK> command_buffer);
65 void SetCommandLabel(std::string_view label)
override;
68 void SetStencilReference(uint32_t
value)
override;
71 void SetBaseVertex(uint64_t
value)
override;
74 void SetViewport(
Viewport viewport)
override;
77 void SetScissor(
IRect scissor)
override;
80 void SetInstanceCount(
size_t count)
override;
89 void ReserveCommands(
size_t command_count)
override {}
102 const std::shared_ptr<const ShaderMetadata>& metadata,
110 std::shared_ptr<const Texture>
texture,
111 const std::unique_ptr<const Sampler>& sampler)
override;
113 bool BindResource(
size_t binding,
118 bool IsValid()
const override;
121 void OnSetLabel(std::string label)
override;
124 bool OnEncodeCommands(
const Context& context)
const override;
129 const std::shared_ptr<CommandBufferVK>& command_buffer)
const;
133 const vk::RenderPass& pass)
const;
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...
static void Draw(SkCanvas *canvas, const SkRect &rect)
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 vm service A custom Dart VM Service port The default is to pick a randomly available open port disable vm Disable the Dart VM Service The Dart VM Service is never available in release mode disable vm service Disable mDNS Dart VM Service publication Bind to the IPv6 localhost address for the Dart VM Service Ignored if vm service host is set endless trace buffer
std::shared_ptr< SharedObjectVKT< T > > SharedHandleVK
Metadata required to bind a combined texture and sampler.