mirror of
https://github.com/overte-org/overte.git
synced 2025-07-12 23:38:53 +02:00
29 lines
791 B
C++
29 lines
791 B
C++
//
|
|
// Created by Bradley Austin Davis on 2016/05/15
|
|
// Copyright 2013-2016 High Fidelity, Inc.
|
|
//
|
|
// Distributed under the Apache License, Version 2.0.
|
|
// See the accompanying file LICENSE or http://www.apache.org/licenses/LICENSE-2.0.html
|
|
//
|
|
#ifndef hifi_gpu_gl_GLPipeline_h
|
|
#define hifi_gpu_gl_GLPipeline_h
|
|
|
|
#include "GLShared.h"
|
|
|
|
namespace gpu { namespace gl {
|
|
|
|
class GLPipeline : public GPUObject {
|
|
public:
|
|
static GLPipeline* sync(GLBackend& backend, const Pipeline& pipeline);
|
|
|
|
GLShader* _program { nullptr };
|
|
GLState* _state { nullptr };
|
|
// Bit of a hack, any pipeline can need the camera correction buffer at execution time, so
|
|
// we store whether a given pipeline has declared the uniform buffer for it.
|
|
bool _cameraCorrection{ false };
|
|
};
|
|
|
|
} }
|
|
|
|
|
|
#endif
|