Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
gatherGPUInfo: function(){
if(cc._renderType === cc._RENDER_TYPE_CANVAS)
return;
if(!this._inited)
this._init();
var gl = cc._renderContext;
var locValueDict = this._valueDict;
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
gatherGPUInfo: function(){
if(cc._renderType === cc.game.RENDER_TYPE_CANVAS)
return;
if(!this._inited)
this._init();
var gl = cc._renderContext;
var locValueDict = this._valueDict;
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
gatherGPUInfo: function(){
if(cc._renderType === cc._RENDER_TYPE_CANVAS)
return;
if(!this._inited)
this._init();
var gl = cc._renderContext;
var locValueDict = this._valueDict;
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
gatherGPUInfo: function(){
if(cc._renderType === cc.game.RENDER_TYPE_CANVAS)
return;
if(!this._inited)
this._init();
var gl = cc._renderContext;
var locValueDict = this._valueDict;
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;
gatherGPUInfo: function(){
if(cc.renderContextType === cc.CANVAS)
return;
var gl = cc.renderContext;
var locValueDict = this._valueDict;
locValueDict["gl.vendor"] = gl.getParameter(gl.VENDOR);
locValueDict["gl.renderer"] = gl.getParameter(gl.RENDERER);
locValueDict["gl.version"] = gl.getParameter(gl.VERSION);
this._GlExtensions = "";
var extArr = gl.getSupportedExtensions();
for (var i = 0; i < extArr.length; i++)
this._GlExtensions += extArr[i] + " ";
this._maxTextureSize = gl.getParameter(gl.MAX_TEXTURE_SIZE);
locValueDict["gl.max_texture_size"] = this._maxTextureSize;
this._maxTextureUnits = gl.getParameter(gl.MAX_COMBINED_TEXTURE_IMAGE_UNITS);
locValueDict["gl.max_texture_units"] = this._maxTextureUnits;
this._supportsPVRTC = this.checkForGLExtension("GL_IMG_texture_compression_pvrtc");
locValueDict["gl.supports_PVRTC"] = this._supportsPVRTC;
this._supportsNPOT = false; //true;
locValueDict["gl.supports_NPOT"] = this._supportsNPOT;