Overte C++ Documentation
GLPipeline.h
1 //
2 // Created by Bradley Austin Davis on 2016/05/15
3 // Copyright 2013-2016 High Fidelity, Inc.
4 //
5 // Distributed under the Apache License, Version 2.0.
6 // See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
7 //
8 #ifndef hifi_gpu_gl_GLPipeline_h
9 #define hifi_gpu_gl_GLPipeline_h
10 
11 #include "GLShared.h"
12 
13 namespace gpu { namespace gl {
14 
15 class GLPipeline : public GPUObject {
16 public:
17  static GLPipeline* sync(GLBackend& backend, const Pipeline& pipeline);
18 
19  GLShader* _program { nullptr };
20  GLState* _state { nullptr };
21  // Bit of a hack, any pipeline can need the camera correction buffer at execution time, so
22  // we store whether a given pipeline has declared the uniform buffer for it.
23  bool _cameraCorrection{ false };
24 };
25 
26 } }
27 
28 
29 #endif