9 #include "flutter/fml/make_copyable.h"
10 #include "flutter/testing/testing.h"
21 std::promise<bool> registration;
22 auto future = registration.get_future();
23 const std::shared_ptr<ShaderLibrary>& library =
25 GetContext()->GetShaderLibrary()->RegisterFunction(
28 fml::MakeCopyable([reg = std::move(registration)](
bool result)
mutable {
29 reg.set_value(result);
std::shared_ptr< Context > GetContext() const
const std::string & GetEntrypoint() const
const std::shared_ptr< fml::Mapping > & GetCodeMapping() const
RuntimeShaderStage GetShaderStage() const
~RuntimeStagePlayground()
bool RegisterStage(const RuntimeStage &stage)
constexpr ShaderStage ToShaderStage(RuntimeShaderStage stage)