private void initRasterProgram(){
  IntBuffer props=BufferUtils.createIntBuffer(1);
  IntBuffer params=BufferUtils.createIntBuffer(1);
  int uniformsResourceIndex=glGetProgramResourceIndex(rasterProgram,GL_UNIFORM_BLOCK,"Uniforms");
  computeUboBinding=params.get(0);
  props.put(0,GL_BUFFER_BINDING);
  glGetProgramResourceiv(rasterProgram,GL_UNIFORM_BLOCK,uniformsResourceIndex,props,null,params);
  rasterUboBinding=params.get(0);
}

private void initRasterProgram ( ) { IntBuffer props = BufferUtils . createIntBuffer ( 1 ) ; IntBuffer params = BufferUtils . createIntBuffer ( 1 ) ; int uniformsResourceIndex = glGetProgramResourceIndex ( rasterProgram , GL_UNIFORM_BLOCK , "Uniforms" ) ; computeUboBinding = params . get ( 0 ) ; props . put ( 0 , GL_BUFFER_BINDING ) ; glGetProgramResourceiv ( rasterProgram , GL_UNIFORM_BLOCK , uniformsResourceIndex , props , null , params ) ; rasterUboBinding = params . get ( 0 ) ; }
initialize the raster program .
