9 #include "flutter/fml/macros.h"
10 #include "flutter/fml/time/time_delta.h"
11 #include "flutter/testing/testing.h"
20 public ::testing::TestWithParam<PlaygroundBackend> {
26 void SetUp()
override;
32 std::string asset_name)
const override;
35 const char* asset_name)
const;
42 std::shared_ptr<Context> context,
43 const std::string& label) {
46 desc.
size =
sizeof(T);
47 auto buffer = context->GetResourceAllocator()->CreateBuffer(desc);
48 buffer->SetLabel(label);
53 fml::TimeDelta start_time_;
58 #define INSTANTIATE_COMPUTE_SUITE(playground) \
59 INSTANTIATE_TEST_SUITE_P( \
60 Compute, playground, \
61 ::testing::Values(PlaygroundBackend::kMetal, \
62 PlaygroundBackend::kVulkan), \
63 [](const ::testing::TestParamInfo<ComputePlaygroundTest::ParamType>& \
64 info) { return PlaygroundBackendToString(info.param); });