Project

General

Profile

« Previous | Next » 

Revision 09a266a0

Added by Leszek Koltunski 3 days ago

minor

View differences:

src/main/java/org/distorted/library/main/DistortedLibrary.java
1061 1061
    GLES30.glGetIntegerv(GLES30.GL_MAX_FRAGMENT_UNIFORM_VECTORS, tmp, 0);
1062 1062
    mMaxNumberOfFraUniforms = tmp[0];
1063 1063

  
1064
    mUser.logMessage("Using OpenGL ES "+major+"."+minor);
1065
/*
1066
    mUser.logMessage("max texture size: "+mMaxTextureSize);
1067
    mUser.logMessage("max num vert: "+mMaxNumberOfVerUniforms);
1068
    mUser.logMessage("max num frag: "+mMaxNumberOfFraUniforms);
1069
*/
1064
    mUser.logMessage("Using OpenGL ES "+major+"."+minor+" texSize="+mMaxTextureSize+" maxVerUniforms: "+mMaxNumberOfVerUniforms+" maxFraUniforms: "+mMaxNumberOfFraUniforms);
1065

  
1070 1066
    mGLSL_VERSION = "#version "+mGLSL+" es\n";
1071 1067

  
1072 1068
    InternalStackFrameList.setInitialized(true);
......
1305 1301
    return EffectQueue.setMax(type.ordinal(),max);
1306 1302
    }
1307 1303

  
1304
///////////////////////////////////////////////////////////////////////////////////////////////////
1305
/**
1306
 * Return an interger - max number of uniforms one can upload to a Vertex Shader.
1307
 */
1308
  public static int getMaxVertexUniforms()
1309
    {
1310
    return mMaxNumberOfVerUniforms;
1311
    }
1312

  
1313
///////////////////////////////////////////////////////////////////////////////////////////////////
1314
/**
1315
 * Return an interger - max number of uniforms one can upload to a Fragment Shader.
1316
 */
1317
  public static int getMaxFragmentUniforms()
1318
    {
1319
    return mMaxNumberOfFraUniforms;
1320
    }
1321

  
1308 1322
///////////////////////////////////////////////////////////////////////////////////////////////////
1309 1323
/**
1310 1324
 * Return a String defining the vendor of the graphics driver.
src/main/java/org/distorted/library/program/DistortedProgram.java
106 106
        throw new LinkingException(error);
107 107
        }
108 108

  
109
      final int[] numberOfUniforms = new int[1];
110
      GLES30.glGetProgramiv(programHandle, GLES30.GL_ACTIVE_UNIFORMS, numberOfUniforms, 0);
111

  
109
      //final int[] numberOfUniforms = new int[1];
110
      //GLES30.glGetProgramiv(programHandle, GLES30.GL_ACTIVE_UNIFORMS, numberOfUniforms, 0);
112 111
      //DistortedLibrary.logMessage("DistortedProgram: number of active uniforms="+numberOfUniforms[0]);
113 112
      }
114 113

  

Also available in: Unified diff