| Flutter Impeller |

Public Types | Public Member Functions | List of all members
impeller::ComputePipelineT< ComputeShader_ > Class Template Reference

`#include <pipeline.h>`

## Public Types
using | ComputeShader = ComputeShader_
using | Builder = ComputePipelineBuilder< ComputeShader >

## Public Member Functions
| ComputePipelineT (const Context &context)
| ComputePipelineT (const Context &context, std::optional< ComputePipelineDescriptor > compute_desc)
| ComputePipelineT (PipelineFuture< ComputePipelineDescriptor > future)
std::shared_ptr< Pipeline< ComputePipelineDescriptor > > | WaitAndGet ()

## Detailed Description

### template<class ComputeShader_>
class impeller::ComputePipelineT< ComputeShader_ >

Definition at line 134 of file pipeline.h.

## Member Typedef Documentation

## ◆ Builder

template<class ComputeShader_ >

using impeller::ComputePipelineT< ComputeShader_ >::Builder = ComputePipelineBuilder<ComputeShader>

Definition at line 137 of file pipeline.h.

## ◆ ComputeShader

template<class ComputeShader_ >

using impeller::ComputePipelineT< ComputeShader_ >::ComputeShader = ComputeShader_

Definition at line 136 of file pipeline.h.

## Constructor & Destructor Documentation

## ◆ ComputePipelineT() [1/3]

template<class ComputeShader_ >

impeller::ComputePipelineT< ComputeShader_ >::ComputePipelineT | ( | const Context & | context | ) |
| inline explicit

Definition at line 139 of file pipeline.h.

140 : ComputePipelineT(CreatePipelineFuture(
141 context,
142 Builder::MakeDefaultPipelineDescriptor(context))) {}

## ◆ ComputePipelineT() [2/3]

template<class ComputeShader_ >

impeller::ComputePipelineT< ComputeShader_ >::ComputePipelineT | ( | const Context & | context,
|  | std::optional< ComputePipelineDescriptor > | compute_desc
| ) |  |
| inline explicit

Definition at line 144 of file pipeline.h.

147 : ComputePipelineT(CreatePipelineFuture(context, compute_desc)) {}

## ◆ ComputePipelineT() [3/3]

template<class ComputeShader_ >

impeller::ComputePipelineT< ComputeShader_ >::ComputePipelineT | ( | PipelineFuture< ComputePipelineDescriptor > | future | ) |
| inline explicit

Definition at line 149 of file pipeline.h.

150 : pipeline_future_(std::move(future)) {}

## Member Function Documentation

## ◆ WaitAndGet()

template<class ComputeShader_ >

std::shared_ptr<Pipeline<ComputePipelineDescriptor> > impeller::ComputePipelineT< ComputeShader_ >::WaitAndGet | ( |  | ) |
| inline

Definition at line 152 of file pipeline.h.

152 {
153 if (did_wait_) {
154 return pipeline_;
155 }
156 did_wait_ = true;
157 if (pipeline_future_.IsValid()) {
158 pipeline_ = pipeline_future_.Get();
159 }
160 return pipeline_;
161 }

The documentation for this class was generated from the following file:

- impeller/renderer/pipeline.h

impeller::CreatePipelineFuture
PipelineFuture< PipelineDescriptor > CreatePipelineFuture(const Context &context, std::optional< PipelineDescriptor > desc)
Definition: pipeline.cc:24
impeller::ComputePipelineBuilder::MakeDefaultPipelineDescriptor
static std::optional< ComputePipelineDescriptor > MakeDefaultPipelineDescriptor(const Context &context)
Create a default pipeline descriptor using the combination reflected shader information....
Definition: compute_pipeline_builder.h:40
impeller::ComputePipelineT::ComputePipelineT
ComputePipelineT(const Context &context)
Definition: pipeline.h:139