#include "draw_call_perf_utils.h"
#include <vector>
#include "util/shader_utils.h"
namespace
{
constexpr char kSimpleScaleAndOffsetVS[] = …;
constexpr char kSimpleDrawVS[] = …;
constexpr char kSimpleTexCoordVS[] = …;
constexpr char kSimpleFS[] = …;
constexpr char kSimpleTextureFS[] = …;
constexpr char kDoubleTextureFS[] = …;
constexpr char kEightTextureFS[] = …;
void Generate2DTriangleData(size_t numTris, std::vector<float> *floatData)
{ … }
}
GLuint SetupSimpleScaleAndOffsetProgram()
{ … }
GLuint SetupSimpleDrawProgram()
{ … }
GLuint SetupSimpleTextureProgram()
{ … }
GLuint SetupDoubleTextureProgram()
{ … }
GLuint SetupEightTextureProgram()
{ … }
GLuint Create2DTriangleBuffer(size_t numTris, GLenum usage)
{ … }
void CreateColorFBO(GLsizei width, GLsizei height, GLuint *fbo, GLuint *texture)
{ … }