25 using Map = std::map<RuntimeStageBackend, std::shared_ptr<RuntimeStage>>;
27 const std::shared_ptr<fml::Mapping>& payload);
29 static absl::StatusOr<RuntimeStage>
Create(
30 const fb::RuntimeStage* runtime_stage,
31 const std::shared_ptr<fml::Mapping>& payload);
39 const std::vector<RuntimeUniformDescription>&
GetUniforms()
const;
65 explicit RuntimeStage(std::shared_ptr<fml::Mapping> payload);
67 std::shared_ptr<fml::Mapping> payload_;
69 std::string entrypoint_;
70 std::shared_ptr<fml::Mapping> code_mapping_;
71 std::vector<RuntimeUniformDescription> uniforms_;
72 std::vector<DescriptorSetLayout> descriptor_set_layouts_;
73 std::string library_id_;
74 bool is_dirty_ =
true;
78 static std::unique_ptr<RuntimeStage> RuntimeStageIfPresent(
79 const fb::RuntimeStage* runtime_stage,
80 const std::shared_ptr<fml::Mapping>& payload);