[0]关于是否支持astc格式问题
我看官方的例子直接粗暴的判断是否手机直接默认支持ktx了 是否得加个接口啊 这种写法有点不负责啊
[/code]
[code]比如这种返回接口const ext = gl.getExtension('WEBGL_compressed_texture_astc');
ext.getSupportedProfiles(); // ["ldr"]
没有找到相关结果
已邀请:
要回复问题请先登录
1 个回复
1567600631用户
赞同来自:
* 判断是否支持astc格式
*/
public static get isASTC():boolean{
var str =Laya["LayaGL"].instance.getExtension('WEBGL_compressed_texture_astc');
if(str){
return true
}
return false;
}