blob: 501d1bab7ad1fe2be56401d0a5ec4b92942f9c56 (
plain)
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
|
/*
* Copyright 2011 Google Inc.
*
* Use of this source code is governed by a BSD-style license that can be
* found in the LICENSE file.
*/
#ifndef GrGLSL_DEFINED
#define GrGLSL_DEFINED
#include "GrGLInterface.h"
// Limited set of GLSL versions we build shaders for. Caller should round
// down the GLSL version to one of these enums.
enum GrGLSLGeneration {
/**
* Desktop GLSL 1.10 and ES2 shading lang (based on desktop GLSL 1.20)
*/
k110_GLSLGeneration,
/**
* Desktop GLSL 1.30
*/
k130_GLSLGeneration,
/**
* Dekstop GLSL 1.50
*/
k150_GLSLGeneration,
};
GrGLSLGeneration GetGLSLGeneration(GrGLBinding binding,
const GrGLInterface* gl);
#endif
|