gfx/angle/src/compiler/CompilerUniform.h

changeset 0
6474c204b198
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/gfx/angle/src/compiler/CompilerUniform.h	Wed Dec 31 06:09:35 2014 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +//
     1.5 +// Copyright (c) 2013 The ANGLE Project Authors. All rights reserved.
     1.6 +// Use of this source code is governed by a BSD-style license that can be
     1.7 +// found in the LICENSE file.
     1.8 +//
     1.9 +
    1.10 +#ifndef COMPILER_UNIFORM_H_
    1.11 +#define COMPILER_UNIFORM_H_
    1.12 +
    1.13 +#include <string>
    1.14 +#include <vector>
    1.15 +
    1.16 +#define GL_APICALL
    1.17 +#include <GLES2/gl2.h>
    1.18 +
    1.19 +namespace sh
    1.20 +{
    1.21 +
    1.22 +struct Uniform
    1.23 +{
    1.24 +    Uniform(GLenum type, GLenum precision, const char *name, int arraySize, int registerIndex);
    1.25 +
    1.26 +    GLenum type;
    1.27 +    GLenum precision;
    1.28 +    std::string name;
    1.29 +    unsigned int arraySize;
    1.30 +    
    1.31 +    int registerIndex;
    1.32 +};
    1.33 +
    1.34 +typedef std::vector<Uniform> ActiveUniforms;
    1.35 +
    1.36 +}
    1.37 +
    1.38 +#endif   // COMPILER_UNIFORM_H_

mercurial