WebGLCustomLayerError

着色器编译 / 纹理加载失败时的错误对象

interface WebGLCustomLayerError {
    layer: WebGLCustomLayer;
    message: string;
    source: string;
    type: "compile" | "link" | "texture";
}

属性

出错的图层

错误描述。编译失败时是驱动的 infoLog

出错的 GLSL 源码或图片地址

错误类型