#include <pipeline_library.h>
Definition at line 30 of file pipeline_library.h.
◆ ~PipelineLibrary()
| impeller::PipelineLibrary::~PipelineLibrary |
( |
| ) |
|
|
virtualdefault |
◆ PipelineLibrary()
| impeller::PipelineLibrary::PipelineLibrary |
( |
| ) |
|
|
protecteddefault |
◆ GetPipeline() [1/4]
◆ GetPipeline() [2/4]
Creates a pipeline.
- Parameters
-
| [in] | descriptor | The descriptor of the texture to create. |
| [in] | async | Whether to allow pipeline creation to be deferred. If false, pipeline creation will block on the current thread. |
| [in] | threadsafe | Whether mutations to this texture should be protected with a threadsafe barrier. |
This parameter only affects the OpenGLES rendering backend.
If any interaction with this texture (including creation) will be done on a thread other than where the OpenGLES context resides, then threadsafe, must be set to true.
◆ GetPipeline() [3/4]
Definition at line 25 of file pipeline_library.cc.
27 {
28 if (descriptor.has_value()) {
30 }
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()};
35}
PipelineFuture< PipelineDescriptor > GetPipeline(std::optional< PipelineDescriptor > descriptor, bool async=true)
References GetPipeline().
◆ GetPipeline() [4/4]
Definition at line 13 of file pipeline_library.cc.
15 {
16 if (descriptor.has_value()) {
18 }
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()};
23}
References GetPipeline().
Referenced by GetPipeline(), and GetPipeline().
◆ HasPipeline()
| virtual bool impeller::PipelineLibrary::HasPipeline |
( |
const PipelineDescriptor & |
descriptor | ) |
|
|
pure virtual |
◆ IsValid()
| virtual bool impeller::PipelineLibrary::IsValid |
( |
| ) |
const |
|
pure virtual |
◆ RemovePipelinesWithEntryPoint()
| virtual void impeller::PipelineLibrary::RemovePipelinesWithEntryPoint |
( |
std::shared_ptr< const ShaderFunction > |
function | ) |
|
|
pure virtual |
The documentation for this class was generated from the following files: