Hash :
06411d16
Author :
Date :
2023-09-06T13:23:34
GL: Use the executable instead of program In a few places, the program was still being directly referenced instead of the executable (in particular when dealing with multiview). Bug: angleproject:8297 Change-Id: I15d0865bf58376a9f85efeec739dd93b49ceaea7 Reviewed-on: https://chromium-review.googlesource.com/c/angle/angle/+/4846475 Reviewed-by: Geoff Lang <geofflang@chromium.org> Commit-Queue: Shahbaz Youssefi <syoussefi@chromium.org>
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60
//
// Copyright 2023 The ANGLE Project Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
//
// ProgramExecutableGL.h: Implementation of ProgramExecutableImpl.
#ifndef LIBANGLE_RENDERER_GL_PROGRAMEXECUTABLEGL_H_
#define LIBANGLE_RENDERER_GL_PROGRAMEXECUTABLEGL_H_
#include "libANGLE/ProgramExecutable.h"
#include "libANGLE/renderer/ProgramExecutableImpl.h"
namespace angle
{
struct FeaturesGL;
} // namespace angle
namespace rx
{
class FunctionsGL;
class ProgramExecutableGL : public ProgramExecutableImpl
{
public:
ProgramExecutableGL(const gl::ProgramExecutable *executable);
~ProgramExecutableGL() override;
void destroy(const gl::Context *context) override;
void updateEnabledClipDistances(uint8_t enabledClipDistancesPacked) const;
void enableLayeredRenderingPath(int baseViewIndex) const;
private:
friend class ProgramGL;
void reset();
void postLink(const FunctionsGL *functions,
const angle::FeaturesGL &features,
GLuint programID);
std::vector<GLint> mUniformRealLocationMap;
std::vector<GLuint> mUniformBlockRealLocationMap;
bool mHasAppliedTransformFeedbackVaryings;
GLint mClipDistanceEnabledUniformLocation;
GLint mMultiviewBaseViewLayerIndexUniformLocation;
// The program for which the executable was built
GLuint mProgramID;
const FunctionsGL *mFunctions;
};
} // namespace rx
#endif // LIBANGLE_RENDERER_GL_PROGRAMEXECUTABLEGL_H_