#include <pipeline_gles.h>
Definition at line 19 of file pipeline_gles.h.
◆ ~PipelineGLES()
impeller::PipelineGLES::~PipelineGLES |
( |
| ) |
|
|
override |
Definition at line 23 of file pipeline_gles.cc.
23 {
25 reactor_->CollectHandle(handle_);
26 }
27}
constexpr bool IsDead() const
◆ BindProgram()
bool impeller::PipelineGLES::BindProgram |
( |
| ) |
const |
Definition at line 60 of file pipeline_gles.cc.
60 {
62 return false;
63 }
64 auto handle = reactor_->GetGLHandle(handle_);
65 if (!handle.has_value()) {
66 return false;
67 }
68 reactor_->GetProcTable().UseProgram(handle.value());
69 return true;
70}
◆ BuildVertexDescriptor()
bool impeller::PipelineGLES::BuildVertexDescriptor |
( |
const ProcTableGLES & |
gl, |
|
|
GLuint |
program |
|
) |
| |
Definition at line 42 of file pipeline_gles.cc.
43 {
44 if (buffer_bindings_) {
45 return false;
46 }
47 auto vtx_desc = std::make_unique<BufferBindingsGLES>();
48 if (!vtx_desc->RegisterVertexStageInput(
51 return false;
52 }
53 if (!vtx_desc->ReadUniformsBindings(gl, program)) {
54 return false;
55 }
56 buffer_bindings_ = std::move(vtx_desc);
57 return true;
58}
const PipelineDescriptor & GetDescriptor() const
Get the descriptor that was responsible for creating this pipeline. It may be copied and modified to ...
◆ GetBufferBindings()
Definition at line 38 of file pipeline_gles.cc.
38 {
39 return buffer_bindings_.get();
40}
◆ GetProgramHandle()
const HandleGLES & impeller::PipelineGLES::GetProgramHandle |
( |
| ) |
const |
◆ IsValid()
bool impeller::PipelineGLES::IsValid |
( |
| ) |
const |
|
overrideprivatevirtual |
◆ UnbindProgram()
bool impeller::PipelineGLES::UnbindProgram |
( |
| ) |
const |
Definition at line 72 of file pipeline_gles.cc.
72 {
73 if (reactor_) {
74 reactor_->GetProcTable().UseProgram(0u);
75 }
76 return true;
77}
The documentation for this class was generated from the following files: