14 std::optional<PipelineDescriptor> descriptor,
16 if (descriptor.has_value()) {
19 auto promise = std::make_shared<
20 std::promise<std::shared_ptr<Pipeline<PipelineDescriptor>>>>();
21 promise->set_value(
nullptr);
22 return {descriptor, promise->get_future()};
26 std::optional<ComputePipelineDescriptor> descriptor,
28 if (descriptor.has_value()) {
31 auto promise = std::make_shared<
32 std::promise<std::shared_ptr<Pipeline<ComputePipelineDescriptor>>>>();
33 promise->set_value(
nullptr);
34 return {descriptor, promise->get_future()};
virtual ~PipelineLibrary()
PipelineFuture< PipelineDescriptor > GetPipeline(std::optional< PipelineDescriptor > descriptor, bool async=true)