Flutter Impeller
pipeline_gles.h
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#pragma once
6
7
#include "flutter/fml/macros.h"
8
#include "
impeller/base/backend_cast.h
"
9
#include "
impeller/renderer/backend/gles/buffer_bindings_gles.h
"
10
#include "
impeller/renderer/backend/gles/handle_gles.h
"
11
#include "
impeller/renderer/backend/gles/reactor_gles.h
"
12
#include "
impeller/renderer/pipeline.h
"
13
14
namespace
impeller
{
15
16
class
PipelineLibraryGLES;
17
18
class
PipelineGLES
final
19
:
public
Pipeline
<PipelineDescriptor>,
20
public
BackendCast
<PipelineGLES, Pipeline<PipelineDescriptor>> {
21
public
:
22
// |Pipeline|
23
~PipelineGLES
()
override
;
24
25
const
HandleGLES
&
GetProgramHandle
()
const
;
26
27
[[nodiscard]]
bool
BindProgram
()
const
;
28
29
[[nodiscard]]
bool
UnbindProgram
()
const
;
30
31
const
BufferBindingsGLES
*
GetBufferBindings
()
const
;
32
33
[[nodiscard]]
bool
BuildVertexDescriptor
(
const
ProcTableGLES
& gl,
34
GLuint program);
35
36
private
:
37
friend
PipelineLibraryGLES
;
38
39
ReactorGLES::Ref
reactor_;
40
HandleGLES
handle_;
41
std::unique_ptr<BufferBindingsGLES> buffer_bindings_;
42
bool
is_valid_ =
false
;
43
44
// |Pipeline|
45
bool
IsValid()
const override
;
46
47
PipelineGLES
(
ReactorGLES::Ref
reactor,
48
std::weak_ptr<PipelineLibrary> library,
49
const
PipelineDescriptor
& desc);
50
51
FML_DISALLOW_COPY_AND_ASSIGN(
PipelineGLES
);
52
};
53
54
}
// namespace impeller
impeller::PipelineDescriptor
Definition:
pipeline_descriptor.h:30
impeller::Pipeline
Describes the fixed function and programmable aspects of rendering and compute operations performed b...
Definition:
compute_pipeline_descriptor.h:27
impeller::PipelineGLES::BindProgram
bool BindProgram() const
Definition:
pipeline_gles.cc:60
pipeline.h
impeller::ReactorGLES::Ref
std::shared_ptr< ReactorGLES > Ref
Definition:
reactor_gles.h:31
impeller::BufferBindingsGLES
Sets up stage bindings for single draw call in the OpenGLES backend.
Definition:
buffer_bindings_gles.h:22
impeller::PipelineGLES::~PipelineGLES
~PipelineGLES() override
Definition:
pipeline_gles.cc:23
impeller::PipelineGLES::BuildVertexDescriptor
bool BuildVertexDescriptor(const ProcTableGLES &gl, GLuint program)
Definition:
pipeline_gles.cc:42
impeller::PipelineGLES::GetProgramHandle
const HandleGLES & GetProgramHandle() const
Definition:
pipeline_gles.cc:34
backend_cast.h
impeller::HandleGLES
Definition:
handle_gles.h:34
impeller::ProcTableGLES
Definition:
proc_table_gles.h:188
buffer_bindings_gles.h
reactor_gles.h
impeller::PipelineGLES
Definition:
pipeline_gles.h:18
handle_gles.h
impeller::BackendCast
Definition:
backend_cast.h:12
impeller::PipelineGLES::GetBufferBindings
const BufferBindingsGLES * GetBufferBindings() const
Definition:
pipeline_gles.cc:38
impeller::PipelineGLES::UnbindProgram
bool UnbindProgram() const
Definition:
pipeline_gles.cc:72
impeller
Definition:
aiks_context.cc:10
impeller::PipelineLibraryGLES
Definition:
pipeline_library_gles.h:15
impeller
renderer
backend
gles
pipeline_gles.h
Generated by
1.8.17